26 #ifndef GENERALDEFINE_H
27 #define GENERALDEFINE_H
37 #define MERCURY_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 MERCURY_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 MERCURY_USE_OMP
67 #define OMP_THREAD_NUM omp_get_thread_num()
69 #define OMP_THREAD_NUM 0
const unsigned unsignedMax
Direction
An enum that indicates the direction in Cartesian coordinates.