programmer's documentation
Variables
cs_defs.c File Reference
#include "cs_defs.h"
Include dependency graph for cs_defs.c:

Variables

const cs_real_t cs_defs_epzero = 1.e-12
 
const cs_real_t cs_defs_infinite_r = 1.e30
 
const cs_real_t cs_defs_big_r = 1.e12
 
const cs_real_t cs_defs_pi = 3.141592653589793
 
const size_t cs_datatype_size []
 
const char * cs_datatype_name []
 
MPI_Datatype cs_datatype_to_mpi []
 
int cs_glob_n_threads = 1
 
int cs_glob_rank_id = -1
 
int cs_glob_n_ranks = 1
 
MPI_Comm cs_glob_mpi_comm = MPI_COMM_NULL
 

Detailed Description

Base macro and typedef definitions for system portability.

Variable Documentation

const char* cs_datatype_name[]
Initial value:
= {"",
"char",
"float",
"double",
"int32",
"int64",
"uint32",
"uint64"}
const size_t cs_datatype_size[]
Initial value:
= {0,
1,
sizeof(float),
sizeof(double),
4,
8,
4,
8}
MPI_Datatype cs_datatype_to_mpi[]
Initial value:
= {MPI_DATATYPE_NULL,
MPI_CHAR,
MPI_FLOAT,
MPI_DOUBLE,
MPI_INT,
MPI_LONG_INT,
MPI_UNSIGNED,
MPI_UNSIGNED_LONG}
const cs_real_t cs_defs_big_r = 1.e12

big value $ 10^{+12}$

const cs_real_t cs_defs_epzero = 1.e-12

epsilon $ 10^{-12}$

const cs_real_t cs_defs_infinite_r = 1.e30

infinite $ 10^{+30}$

const cs_real_t cs_defs_pi = 3.141592653589793

$ \pi $ value with 16 digits

MPI_Comm cs_glob_mpi_comm = MPI_COMM_NULL
int cs_glob_n_ranks = 1
int cs_glob_n_threads = 1
int cs_glob_rank_id = -1