src/base/cs_defs.c File Reference

| programmer's documentation

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Variables
cs_defs.c File Reference
`#include "cs_defs.h"`
Include dependency graph for cs_defs.c:

## Variables
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}

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