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:37
Definition: AbstractContinuousDomain.cpp:22
void resolveGroup(bp::object obj)
Definition: Utils.cpp:613
int runMPIProgram(bp::list args)
Definition: Utils.cpp:305
int getMPISizeWorld()
returns the total number of available MPI processes for MPI_COMM_WORLD
Definition: Utils.cpp:88
int getMPIWorldSum(int val)
returns sum of an integer over all processors with MPI_COMM_WORLD
Definition: Utils.cpp:118
int getNumberOfThreads()
returns the number of threads
Definition: Utils.cpp:79
void saveDataCSV(const std::string &filename, bp::dict arg, const std::string &sep, const std::string &csep, bool append)
Definition: Utils.cpp:381
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:29
double getMachinePrecision()
returns the machine precision
Definition: Utils.cpp:360
void printParallelThreadCnt()
print a message about how many MPI CPUs and OpenMP threads we're using
Definition: Utils.cpp:130
int getMPIWorldMax(int val)
returns the maximum value of an integer over all processors within MPI_COMM_WORLD ...
Definition: Utils.cpp:106
void setNumberOfThreads(int num_threads)
set the number of threads
Definition: Utils.cpp:72
double getMaxFloat()
Definition: Utils.cpp:365
int getMPIRankWorld()
returns the MPI processor number within MPI_COMM_WORLD
Definition: Utils.cpp:97
void MPIBarrierWorld()
performs a barrier synchronization across all processors.
Definition: Utils.cpp:370