14 #ifndef _SIM_OPTIONS_H_
15 #define _SIM_OPTIONS_H_
23 namespace tinyxml2 {
class XMLElement; }
62 bool dumpHDF5(
const char* defaultName);
108 DGL2, CGL2, CGL2_INT, SCR };
Various enums for linear algebra scope.
Class for encapsulation of general simulation options.
Definition: SIMoptions.h:37
int ncv
Number of Arnoldi vectors.
Definition: SIMoptions.h:82
bool parseRestartTag(const tinyxml2::XMLElement *elem)
Parses the restart XML-tag.
Definition: SIMoptions.C:230
int saveInc
Number of load/time increments between each result output.
Definition: SIMoptions.h:88
bool saveLog
If true, export the log.
Definition: SIMoptions.h:93
std::string vtf
Prefix for VTF-file.
Definition: SIMoptions.h:96
int format
VTF-file format (-1=NONE, 0=ASCII, 1=BINARY)
Definition: SIMoptions.h:86
std::string hdf5
Prefix for HDF5-file.
Definition: SIMoptions.h:95
bool parseOutputTag(const tinyxml2::XMLElement *elem)
Parses a subelement of the resultoutput XML-tag.
Definition: SIMoptions.C:156
ASM::Discretization discretization
Spatial discretization option.
Definition: SIMoptions.h:73
bool parseProjectionMethod(const char *ptype, int version=1)
Parses a projection method XML-tag.
Definition: SIMoptions.C:389
static bool ignoreOldOptions(int argc, char **argv, int &i)
Returns true if the i'th argument is obsolete.
Definition: SIMoptions.C:414
double dtSave
Time interval between each result output.
Definition: SIMoptions.h:89
bool validateGroups
Flag validation of the generated threading groups.
Definition: SIMoptions.h:76
bool saveTrac
If true, save gauss point traction values.
Definition: SIMoptions.h:91
int printPid
PID to print info to screen for.
Definition: SIMoptions.h:103
LinAlg::MatrixType solver
The linear equation solver to use.
Definition: SIMoptions.h:74
void setLinearSolver(const std::string &eqsolver)
Defines the linear equation solver to be used.
Definition: SIMoptions.C:65
int num_threads_SLU
Number of threads for SuperLU_MT.
Definition: SIMoptions.h:77
int eig
Eigensolver method (1,...,5)
Definition: SIMoptions.h:80
utl::LogStream & print(utl::LogStream &os, bool addBlankLine=false) const
Prints out the simulation options to the given stream.
Definition: SIMoptions.C:421
int nViz[3]
Number of visualization points over each knot-span.
Definition: SIMoptions.h:87
double shift
Eigenvalue shift.
Definition: SIMoptions.h:83
ProjectionMap project
The projection methods to use.
Definition: SIMoptions.h:112
std::map< ProjectionMethod, std::string > ProjectionMap
Projection method name mapping.
Definition: SIMoptions.h:110
int restartInc
Number of increments between each restart output.
Definition: SIMoptions.h:99
int nev
Number of eigenvalues/vectors.
Definition: SIMoptions.h:81
SIMoptions()
The constructor initializes the default input options.
Definition: SIMoptions.C:35
std::string restartFile
File to read restart state data from.
Definition: SIMoptions.h:101
bool dumpHDF5(const char *defaultName)
Returns whether HDF5 output is requested or not.
Definition: SIMoptions.C:274
std::string log_prefix
Prefix for process log files.
Definition: SIMoptions.h:104
bool parseEigSolTag(const tinyxml2::XMLElement *elem)
Parses a subelement of the eigensolver XML-tag.
Definition: SIMoptions.C:84
int restartStep
Index to the actual state to restart from.
Definition: SIMoptions.h:100
ProjectionMethod
Enum defining the available projection methods.
Definition: SIMoptions.h:107
bool parseConsoleTag(const tinyxml2::XMLElement *elem)
Parses a subelement of the console XML-tag.
Definition: SIMoptions.C:242
bool pSolOnly
If true, don't save secondary solution variables.
Definition: SIMoptions.h:90
bool parseOldOptions(int argc, char **argv, int &i)
Parses obsolete command-line arguments (backward compatibility).
Definition: SIMoptions.C:298
bool saveNorms
If true, save element norms.
Definition: SIMoptions.h:92
bool parseDiscretizationTag(const tinyxml2::XMLElement *elem)
Parses a subelement of the discretization XML-tag.
Definition: SIMoptions.C:100
int nGauss[2]
Gaussian quadrature rules.
Definition: SIMoptions.h:71
Logging stream class.
Definition: LogStream.h:26
Discretization
Enum defining the available discretization methods.
Definition: ASMenums.h:22
MatrixType
The available system matrix formats and associated solvers.
Definition: LinAlgenums.h:22
General utility classes and functions.
Definition: SIMoptions.h:22