ESScript  Revision_4488
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 
35 
41 
47  ESCRIPT_DLL_API void setNumberOfThreads(const int num_threads);
48 
54 
60 
70  ESCRIPT_DLL_API int getMPIWorldMax(const int val);
71 
75  ESCRIPT_DLL_API int getMPIWorldSum(const int val);
76 
81 
85  ESCRIPT_DLL_API int runMPIProgram(const boost::python::list args);
86 
92  /*
93  \brief
94  return largest positive float
95  */
97 
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 
111  void
112  resolveGroup(boost::python::object obj);
113 
114 } // end of namespace
115 #endif