17 #ifndef __ESCRIPT_UTILS_H__ 18 #define __ESCRIPT_UTILS_H__ 21 #include <boost/python/dict.hpp> 102 boost::python::dict arg,
103 const std::string& sep,
104 const std::string& csep,
bool append=
false);
118 #endif // __ESCRIPT_UTILS_H__ int getSvnVersion()
some functions
Definition: Utils.cpp:47
Definition: AbstractContinuousDomain.cpp:24
void resolveGroup(bp::object obj)
Definition: Utils.cpp:638
int runMPIProgram(bp::list args)
Definition: Utils.cpp:314
int getMPISizeWorld()
returns the total number of available MPI processes for MPI_COMM_WORLD
Definition: Utils.cpp:98
int getMPIWorldSum(int val)
returns sum of an integer over all processors with MPI_COMM_WORLD
Definition: Utils.cpp:128
int getNumberOfThreads()
returns the number of threads
Definition: Utils.cpp:89
void saveDataCSV(const std::string &filename, bp::dict arg, const std::string &sep, const std::string &csep, bool append)
Definition: Utils.cpp:406
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:54
double getMachinePrecision()
returns the machine precision
Definition: Utils.cpp:385
void printParallelThreadCnt()
print a message about how many MPI CPUs and OpenMP threads we're using
Definition: Utils.cpp:140
int getMPIWorldMax(int val)
returns the maximum value of an integer over all processors within MPI_COMM_WORLD ...
Definition: Utils.cpp:116
void setNumberOfThreads(int num_threads)
set the number of threads
Definition: Utils.cpp:82
double getMaxFloat()
Definition: Utils.cpp:390
int getMPIRankWorld()
returns the MPI processor number within MPI_COMM_WORLD
Definition: Utils.cpp:107
void MPIBarrierWorld()
performs a barrier synchronization across all processors.
Definition: Utils.cpp:395