35#ifndef NEKTAR_LIB_UTILITIES_COMMDATATYPE_H
36#define NEKTAR_LIB_UTILITIES_COMMDATATYPE_H
49#elif NEKTAR_USING_PETSC
68#define MPI_CHAR ((CommDataType)0x4c000101)
72#define MPI_INT ((CommDataType)0x4c000405)
76#define MPI_UNSIGNED ((CommDataType)0x4c000406)
80#define MPI_LONG ((CommDataType)0x4c000807)
83#ifndef MPI_UNSIGNED_LONG
84#define MPI_UNSIGNED_LONG ((CommDataType)0x4c000808)
88#define MPI_LONG_LONG ((CommDataType)0x4c000809)
91#ifndef MPI_UNSIGNED_LONG_LONG
92#define MPI_UNSIGNED_LONG_LONG ((CommDataType)0x4c000819)
96#define MPI_FLOAT ((CommDataType)0x4c00040a)
100#define MPI_DOUBLE ((CommDataType)0x4c00080b)
103#ifndef MPI_LONG_DOUBLE
104#define MPI_LONG_DOUBLE ((CommDataType)0x4c00100c)
112template <
typename Dim,
typename DataType>
class Array;
114namespace LibUtilities
152 "Vector cannot be empty when trying to use GetPointer to "
153 "access a pointer to the first element.");
159 "Vector cannot be empty when trying to use GetPointer to "
160 "access a pointer to the first element.");
163 static size_t GetCount(
const std::vector<elemT> &val)
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
#define LIB_UTILITIES_EXPORT
static void * GetPointer(Array< OneD, elemT > &val)
static CommDataType & GetDataType()
static const void * GetPointer(const Array< OneD, elemT > &val)
static size_t GetCount(const Array< OneD, elemT > &val)
static CommDataType & GetDataType()
static size_t GetCount(const std::vector< elemT > &val)
static const void * GetPointer(const std::vector< elemT > &val)
static void * GetPointer(std::vector< elemT > &val)
static void * GetPointer(T &val)
static const void * GetPointer(const T &val)
static int GetCount(const T &val)
static CommDataType & GetDataType()
unsigned int CommDataType
int CommDataTypeGetSize(CommDataType dt)
Return the size in bytes of a data type dt.