Escript
Revision_4320
Main Page
Namespaces
Classes
Files
File List
File Members
escript
src
Utils.h
Go to the documentation of this file.
1
2
/*****************************************************************************
3
*
4
* Copyright (c) 2003-2013 by University of Queensland
5
* http://www.uq.edu.au
6
*
7
* Primary Business: Queensland, Australia
8
* Licensed under the Open Software License version 3.0
9
* http://www.opensource.org/licenses/osl-3.0.php
10
*
11
* Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12
* Development since 2012 by School of Earth Sciences
13
*
14
*****************************************************************************/
15
16
17
#if !defined escript_Utils_H
18
#define escript_Utils_H
19
#include "
system_dep.h
"
20
21
namespace
escript {
22
34
ESCRIPT_DLL_API
int
getSvnVersion
();
35
40
ESCRIPT_DLL_API
void
printParallelThreadCnt
();
41
47
ESCRIPT_DLL_API
void
setNumberOfThreads
(
const
int
num_threads);
48
53
ESCRIPT_DLL_API
int
getNumberOfThreads
();
54
59
ESCRIPT_DLL_API
int
getMPISizeWorld
();
60
65
ESCRIPT_DLL_API
int
getMPIRankWorld
();
70
ESCRIPT_DLL_API
int
getMPIWorldMax
(
const
int
val);
71
75
ESCRIPT_DLL_API
int
getMPIWorldSum
(
const
int
val);
76
80
ESCRIPT_DLL_API
void
MPIBarrierWorld
();
81
85
ESCRIPT_DLL_API
int
runMPIProgram
(
const
boost::python::list args);
86
91
ESCRIPT_DLL_API
double
getMachinePrecision
();
92
/*
93
\brief
94
return largest positive float
95
*/
96
ESCRIPT_DLL_API
double
getMaxFloat
();
97
98
ESCRIPT_DLL_API
99
void
100
saveDataCSV
(
const
std::string& filename, boost::python::dict arg,
const
std::string& sep,
const
std::string& csep,
101
bool
append=
false
);
102
103
110
ESCRIPT_DLL_API
111
void
112
resolveGroup
(boost::python::object obj);
113
114
}
// end of namespace
115
#endif
Generated on Fri Mar 15 2013 14:07:51 for Escript by
1.8.1.2