26 #ifndef GENERALDEFINE_H
27 #define GENERALDEFINE_H
37 #define MERCURYDPM_DEPRECATED [[deprecated]]
39 #define UNUSED __attribute__ ((__unused__))
43 const Mdouble NaN = std::numeric_limits<Mdouble>::quiet_NaN();
44 const Mdouble inf = std::numeric_limits<Mdouble>::infinity();
45 const int intMax = std::numeric_limits<int>::max();
46 const unsigned unsignedMax = std::numeric_limits<unsigned>::max();
58 #ifdef MERCURYDPM_USE_MPI
59 #define NUMBER_OF_PROCESSORS static_cast<unsigned>(MPIContainer::Instance().getNumberOfProcessors())
60 #define PROCESSOR_ID MPIContainer::Instance().getProcessorID()
62 #define NUMBER_OF_PROCESSORS 1
63 #define PROCESSOR_ID 0
66 #ifdef MERCURYDPM_USE_OMP
67 #define OMP_THREAD_NUM omp_get_thread_num()
69 #define OMP_THREAD_NUM 0
Direction
An enum that indicates the direction in Cartesian coordinates.
Definition: GeneralDefine.h:77
@ YAXIS
Definition: GeneralDefine.h:78
@ XAXIS
Definition: GeneralDefine.h:78
@ ZAXIS
Definition: GeneralDefine.h:78
double Mdouble
Definition: GeneralDefine.h:34
Definition: GeneralDefine.h:42
const Mdouble NaN
Definition: GeneralDefine.h:43
const unsigned unsignedMax
Definition: GeneralDefine.h:46
const Mdouble inf
Definition: GeneralDefine.h:44
const int intMax
Definition: GeneralDefine.h:45