#include "cs_config.h"
#include <libintl.h>
#include <mpi.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <stdbool.h>
Go to the source code of this file.
#define _ |
( |
|
String | ) |
dgettext(PACKAGE, String) |
#define __STDC_VERSION__ 1989 |
#define CS_ABS |
( |
|
a | ) |
((a) < 0 ? -(a) : (a)) /* Absolute value of a */ |
#define CS_ARGF_SUPP_CHAINE , ... |
#define CS_MAX |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) > (b) ? (a) : (b)) /* Maximum of a et b */ |
#define CS_MIN |
( |
|
a, |
|
|
|
b |
|
) |
| ((a) < (b) ? (a) : (b)) /* Minimum of a et b */ |
#define CS_MPI_COORD MPI_DOUBLE /* MPI type for cs_coord_t type */ |
#define CS_MPI_GNUM MPI_UNSIGNED_LONG |
#define CS_MPI_INT MPI_INT /* If cs_int_t is an int */ |
#define CS_MPI_LNUM MPI_INT /* MPI type for cs_lnum_t type */ |
#define CS_MPI_REAL MPI_DOUBLE /* If cs_real_t is a double */ |
#define CS_PROCF |
( |
|
x, |
|
|
|
y |
|
) |
| x##_ |
#define N_ |
( |
|
String | ) |
String |
typedef double cs_coord_3_t[3] |
global mesh entity number
Global mesh-entity numbers are strictly positive (1 to n based) integers, so they are declared as a form of unsigned integer. Such a number is unique across MPI ranks; 2 mesh elements on different ranks share the same number if and only if they are local instances of the same global element (such as shared faces or vertices on rank boundaries). A value of 0 is commonly used to mark undefined (or not yet defined) element ids in various pre or post-processing stages.
Fortran-compatible integer.
- Deprecated:
- Currently, this integer type is necessarily of the same type as cs_lnum_t, but it should only be used in Fortran wrapper function definitions. Moving to ISO_C_BINDINGS, and converting more code to C, this type should eventually disappear.
vector of 2 local mesh-entity ids
local mesh entity id
Local mesh-entity ids are signed integers, and be either 0 to n-1 or 1 to n based. When 0-based, the id prefix or postfix is preferred for associated variable names, while num is preferred when 1-based. In C code, using this type is recommended over using simple int
integers, as 64-bit variants could be used in the future for shared-memory machines with large memory. This type should not be used to declare identifiers which are not mesh entities, such as groups, fields, or any other entity whose count does not depend on mesh size, so as not to pollute the readability and comprehensibility of the code.
vector of 2 floating-point values
vector of 2 3x3 matrices of floating-point values
3x3 matrix of floating-point values
vector of 3 floating-point values
vector of 4 floating-point values
6x6 matrix of floating-point values
vector of 6 floating-point values
Enumerator |
---|
CS_DATATYPE_NULL |
|
CS_CHAR |
|
CS_FLOAT |
|
CS_DOUBLE |
|
CS_INT32 |
|
CS_INT64 |
|
CS_UINT32 |
|
CS_UINT64 |
|
Enumerator |
---|
CS_INTERLACE |
|
CS_NO_INTERLACE |
|
const char* cs_datatype_name[] |
const size_t cs_datatype_size[] |
MPI_Datatype cs_datatype_to_mpi[] |
MPI_Comm cs_glob_mpi_comm |