My Project
programmer's documentation
Variables
cs_defs.c File Reference
#include "cs_defs.h"
#include <math.h>
#include <float.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

◆ cs_datatype_name

const char* cs_datatype_name[]
Initial value:
= {"",
"char",
"float",
"double",
"flag",
"int32",
"int64",
"uint32",
"uint64"}

◆ cs_datatype_size

const size_t cs_datatype_size[]
Initial value:
= {0,
1,
sizeof(float),
sizeof(double),
sizeof(unsigned short int),
4,
8,
4,
8}

◆ cs_datatype_to_mpi

MPI_Datatype cs_datatype_to_mpi[]
Initial value:
= {MPI_DATATYPE_NULL,
MPI_CHAR,
MPI_FLOAT,
MPI_DOUBLE,
MPI_UNSIGNED_SHORT,
MPI_INT,
MPI_LONG_INT,
MPI_UNSIGNED,
MPI_UNSIGNED_LONG}

◆ cs_glob_mpi_comm

MPI_Comm cs_glob_mpi_comm = MPI_COMM_NULL

◆ cs_glob_n_ranks

int cs_glob_n_ranks = 1

◆ cs_glob_n_threads

int cs_glob_n_threads = 1

◆ cs_glob_rank_id

int cs_glob_rank_id = -1