18 #ifndef __ESCRIPT_UTILS_H__
19 #define __ESCRIPT_UTILS_H__
22 #include <boost/python/dict.hpp>
24 #ifdef ESYS_HAVE_BOOST_NUMPY
25 #include <boost/python/numpy.hpp>
107 boost::python::dict arg,
108 const std::string& sep,
109 const std::string& csep,
113 #ifdef ESYS_HAVE_BOOST_NUMPY
119 #ifdef ESYS_HAVE_BOOST_NUMPY
129 #ifdef ESYS_HAVE_BOOST_NUMPY
Data represents a collection of datapoints.
Definition: Data.h:64
Definition: FunctionSpace.h:36
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:30
Definition: AbstractContinuousDomain.cpp:23
int getMPIWorldMax(int val)
returns the maximum value of an integer over all processors within MPI_COMM_WORLD
Definition: Utils.cpp:114
void saveDataCSV(const std::string &filename, bp::dict arg, const std::string &sep, const std::string &csep, bool refid, bool append)
Definition: Utils.cpp:390
int getNumberOfThreads()
returns the number of threads
Definition: Utils.cpp:87
void MPIBarrierWorld()
performs a barrier synchronization across all processors.
Definition: Utils.cpp:379
int runMPIProgram(bp::list args)
Definition: Utils.cpp:314
int getMPIWorldSum(int val)
returns sum of an integer over all processors with MPI_COMM_WORLD
Definition: Utils.cpp:126
int getMPISizeWorld()
returns the total number of available MPI processes for MPI_COMM_WORLD
Definition: Utils.cpp:96
void resolveGroup(bp::object obj)
Definition: Utils.cpp:996
void getNumpy(bp::dict arg)
Definition: Utils.cpp:930
double getMaxFloat()
Definition: Utils.cpp:374
int getSvnVersion()
some functions
Definition: Utils.cpp:45
void convertToNumpy(escript::Data data)
Definition: Utils.cpp:991
void printParallelThreadCnt()
print a message about how many MPI CPUs and OpenMP threads we're using
Definition: Utils.cpp:138
void setNumberOfThreads(int num_threads)
set the number of threads
Definition: Utils.cpp:80
int getMPIRankWorld()
returns the MPI processor number within MPI_COMM_WORLD
Definition: Utils.cpp:105
double getMachinePrecision()
returns the machine precision
Definition: Utils.cpp:369