38 #ifdef NEKTAR_USING_PETSC
44 namespace LibUtilities
58 MPI_Type_size(dt, &size);
60 #elif NEKTAR_USING_PETSC
66 return sizeof(unsigned);
70 return sizeof(
unsigned long);
72 return sizeof(
long long);
74 return sizeof(
unsigned long long);
78 return sizeof(double);
80 return sizeof(
long double);
90 return sizeof(unsigned);
94 return sizeof(
unsigned long);
96 return sizeof(
long long);
98 return sizeof(
unsigned long long);
100 return sizeof(float);
102 return sizeof(double);
104 return sizeof(
long double);
106 ASSERTL0(
false,
"Unrecognised datatype!");
#define MPI_UNSIGNED_LONG_LONG
#define MPI_UNSIGNED_LONG
#define ASSERTL0(condition, msg)
static CommDataType & GetDataType()
unsigned int CommDataType
int CommDataTypeGetSize(CommDataType dt)
Return the size in bytes of a data type dt.
The above copyright notice and this permission notice shall be included.