Namespaces | Functions

Utils.cpp File Reference

#include <fstream>
#include <string.h>
#include <boost/python.hpp>
#include <boost/scoped_ptr.hpp>
#include "Data.h"
#include "Utils.h"
#include "DataVector.h"
#include <unistd.h>

Namespaces

namespace  escript

Functions

int escript::getSvnVersion ()
 some functions
int escript::get_core_id ()
void escript::printParallelThreadCnt ()
 print a message about how many MPI CPUs and OpenMP threads we're using
void escript::setNumberOfThreads (const int num_threads)
 set the number of threads
int escript::getNumberOfThreads ()
 returns the number of threads
ESCRIPT_DLL_API int escript::getMPISizeWorld ()
 returns the total number of available MPI processes for MPI_COMM_WORLD
ESCRIPT_DLL_API int escript::getMPIRankWorld ()
 returns the MPI processor number within MPI_COMM_WORLD
ESCRIPT_DLL_API int escript::getMPIWorldMax (const int val)
 returns the maximum value of an integer over all processors within MPI_COMM_WORLD
ESCRIPT_DLL_API int escript::getMPIWorldSum (const int val)
 returns sum of an integer over all processors with MPI_COMM_WORLD
ESCRIPT_DLL_API int escript::runMPIProgram (const boost::python::list args)
 uses MPI_Comm_spawn to run an external MPI program safely.
ESCRIPT_DLL_API double escript::getMachinePrecision ()
 returns machine precision
ESCRIPT_DLL_API double escript::getMaxFloat ()
ESCRIPT_DLL_API void escript::MPIBarrierWorld ()
 performs a barrier synchronization across all processors.
ESCRIPT_DLL_API void escript::saveDataCSV (const std::string &filename, boost::python::dict arg, const std::string &sep, const std::string &csep, bool append)
void escript::resolveGroup (boost::python::object obj)