35 #ifndef NEKTAR_LIB_UTILITIES_COMMDATATYPE_H
36 #define NEKTAR_LIB_UTILITIES_COMMDATATYPE_H
38 #include <boost/core/ignore_unused.hpp>
48 namespace LibUtilities
54 #elif NEKTAR_USING_PETSC
58 namespace LibUtilities
68 namespace LibUtilities
73 #define MPI_CHAR ((CommDataType)0x4c000101)
77 #define MPI_INT ((CommDataType)0x4c000405)
81 #define MPI_UNSIGNED ((CommDataType)0x4c000406)
85 #define MPI_LONG ((CommDataType)0x4c000807)
88 #ifndef MPI_UNSIGNED_LONG
89 #define MPI_UNSIGNED_LONG ((CommDataType)0x4c000808)
93 #define MPI_LONG_LONG ((CommDataType)0x4c000809)
96 #ifndef MPI_UNSIGNED_LONG_LONG
97 #define MPI_UNSIGNED_LONG_LONG ((CommDataType)0x4c000819)
101 #define MPI_FLOAT ((CommDataType)0x4c00040a)
105 #define MPI_DOUBLE ((CommDataType)0x4c00080b)
108 #ifndef MPI_LONG_DOUBLE
109 #define MPI_LONG_DOUBLE ((CommDataType)0x4c00100c)
117 template <
typename Dim,
typename DataType>
class Array;
119 namespace LibUtilities
138 boost::ignore_unused(val);
158 "Vector cannot be empty when trying to use GetPointer to "
159 "access a pointer to the first element.");
165 "Vector cannot be empty when trying to use GetPointer to "
166 "access a pointer to the first element.");
169 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 const void * GetPointer(const Array< OneD, elemT > &val)
static CommDataType & GetDataType()
static size_t GetCount(const Array< OneD, elemT > &val)
static CommDataType & GetDataType()
static void * GetPointer(std::vector< elemT > &val)
static size_t GetCount(const std::vector< elemT > &val)
static const void * GetPointer(const 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.
The above copyright notice and this permission notice shall be included.