5 #ifndef GENERALDEFINE_H
6 #define GENERALDEFINE_H
16 #define MERCURYDPM_DEPRECATED [[deprecated]]
18 #define UNUSED __attribute__ ((__unused__))
22 const Mdouble NaN = std::numeric_limits<Mdouble>::quiet_NaN();
23 const Mdouble inf = std::numeric_limits<Mdouble>::infinity();
37 #ifdef MERCURYDPM_USE_MPI
38 #define NUMBER_OF_PROCESSORS static_cast<unsigned>(MPIContainer::Instance().getNumberOfProcessors())
39 #define PROCESSOR_ID MPIContainer::Instance().getProcessorID()
41 #define NUMBER_OF_PROCESSORS 1
42 #define PROCESSOR_ID 0
45 #ifdef MERCURYDPM_USE_OMP
46 #define OMP_THREAD_NUM omp_get_thread_num()
48 #define OMP_THREAD_NUM 0
Direction
An enum that indicates the direction in Cartesian coordinates.
Definition: GeneralDefine.h:56
@ YAXIS
Definition: GeneralDefine.h:57
@ XAXIS
Definition: GeneralDefine.h:57
@ ZAXIS
Definition: GeneralDefine.h:57
double Mdouble
Definition: GeneralDefine.h:13
#define max(a, b)
Definition: datatypes.h:23
Definition: GeneralDefine.h:21
const Mdouble NaN
Definition: GeneralDefine.h:22
const unsigned unsignedMax
Definition: GeneralDefine.h:25
const Mdouble inf
Definition: GeneralDefine.h:23
const int intMax
Definition: GeneralDefine.h:24