18 #if !defined escript_Utils_H
19 #define escript_Utils_H
101 saveDataCSV(
const std::string& filename, boost::python::dict arg,
const std::string& sep,
const std::string& csep,
void saveDataCSV(const std::string &filename, boost::python::dict arg, const std::string &sep, const std::string &csep, bool append)
Definition: Utils.cpp:220
int getSvnVersion()
some functions
Definition: Utils.cpp:45
int getMPISizeWorld()
returns the total number of available MPI processes for MPI_COMM_WORLD
Definition: Utils.cpp:128
int getMPIWorldSum(const int val)
returns sum of an integer over all processors with MPI_COMM_WORLD
Definition: Utils.cpp:155
void resolveGroup(boost::python::object obj)
Definition: Utils.cpp:560
int getNumberOfThreads()
returns the number of threads
Definition: Utils.cpp:118
int runMPIProgram(boost::python::list args)
uses MPI_Comm_spawn to run an external MPI program safely.
Definition: Utils.cpp:166
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:64
double getMachinePrecision()
returns machine precision
Definition: Utils.cpp:198
void printParallelThreadCnt()
print a message about how many MPI CPUs and OpenMP threads we're using
Definition: Utils.cpp:79
int getMPIWorldMax(const int val)
returns the maximum value of an integer over all processors within MPI_COMM_WORLD ...
Definition: Utils.cpp:144
void setNumberOfThreads(const int num_threads)
set the number of threads
Definition: Utils.cpp:109
double getMaxFloat()
Definition: Utils.cpp:201
int getMPIRankWorld()
returns the MPI processor number within MPI_COMM_WORLD
Definition: Utils.cpp:136
void MPIBarrierWorld()
performs a barrier synchronization across all processors.
Definition: Utils.cpp:204