Go to the documentation of this file.
17 #ifndef __ESCRIPT_PARAMS_H__
18 #define __ESCRIPT_PARAMS_H__
20 #include <boost/python/list.hpp>
23 #include <unordered_set>
30 typedef std::unordered_set<std::string>
FeatureSet;
35 int getInt(
const std::string& name,
int sentinel = 0)
const;
36 void setInt(
const std::string& name,
int value);
46 bool hasFeature(
const std::string& name)
const;
95 inline bool hasFeature(
const std::string& name)
111 #endif // __ESCRIPT_PARAMS_H__
int resolveCollective
Definition: EscriptParams.h:79
boost::python::list listEscriptParams() const
Definition: EscriptParams.cpp:165
int getResolveCollective() const
Definition: EscriptParams.h:65
int getTooManyLevels() const
Definition: EscriptParams.h:66
int tooManyLines
Definition: EscriptParams.h:81
int getEscriptParamInt(const std::string &name, int sentinel=0)
get the value of a named parameter. See listEscriptParams() for available parameters.
Definition: EscriptParams.h:88
boost::python::list listFeatures() const
Definition: EscriptParams.cpp:193
boost::python::list listFeatures()
returns a list of features escript was compiled with.
Definition: EscriptParams.h:115
boost::python::list listEscriptParams()
describe available parameters.
Definition: EscriptParams.h:97
EscriptParams()
Definition: EscriptParams.cpp:42
#define MPI_COMM_WORLD
Definition: EsysMPI.h:46
Definition: EscriptParams.h:39
int autoLazy
Definition: EscriptParams.h:76
bool hasFeature(const std::string &name) const
Definition: EscriptParams.cpp:177
int getLazyVerbose() const
Definition: EscriptParams.h:64
int tooManyLevels
Definition: EscriptParams.h:80
void setInt(const std::string &name, int value)
Definition: EscriptParams.cpp:147
EscriptParams escriptParams
Definition: EscriptParams.cpp:39
int getLazyStrFmt() const
Definition: EscriptParams.h:63
int lazyVerbose
Definition: EscriptParams.h:78
void setEscriptParamInt(const std::string &name, int value)
Set the value of a named parameter. See listEscriptParams() for available parameters.
Definition: EscriptParams.h:79
std::unordered_set< std::string > FeatureSet
Definition: EscriptParams.h:53
Definition: AbstractContinuousDomain.cpp:22
FeatureSet features
Definition: EscriptParams.h:73
int getAutoLazy() const
Definition: EscriptParams.h:62
int getTooManyLines() const
Definition: EscriptParams.h:67
bool hasFeature(const std::string &name)
returns true if escript was compiled with the feature name, false otherwise.
Definition: EscriptParams.h:106
int lazyStrFmt
Definition: EscriptParams.h:77
int getInt(const std::string &name, int sentinel=0) const
Definition: EscriptParams.cpp:128
An exception class that signals an invalid argument value.
Definition: EsysException.h:99