#include <ParameterParser.h>
Public Member Functions | |
ParameterParser (const GrrProperties &props) | |
Creates a parameter parser using a property map. | |
void | parse () throw (InitCond::Exception&, IllegalArgumentException&, IOException&) |
Parses parameters. | |
GReal_t | getTmax () const throw (InitCond::Exception&) |
Returns the maximum time parameter for the simulation. | |
string | getTimeFormatString () const throw (InitCond::Exception&) |
Returns a format string suitable for printing the time coordinate. | |
PDE * | disownPDE () |
Deny the ownership of the PDE object. | |
InitCond & | getInitCond () const |
Deny the ownership of the initial condition object. | |
Integrator * | disownIntegrator () |
Deny the ownership of the time integrator. | |
AMError * | disownAMError () |
Deny the ownership of the numerical error calculator. | |
Regridder * | disownRegridder () |
Deny the ownership of the regridder. | |
Public Attributes | |
bool | debug |
Debug messages enabled. | |
bool | constraintForced |
Constraints equations enforced on each time slice. | |
string | dtdx |
Courant factor dt/dx. | |
int | maxi |
Maximum grid point index on base grid. | |
int | numPointsAboveMaxX |
Number of "non-physical" points above maximum x. | |
int | maxLevel |
The maximum refinement level. | |
int | refinementRatio |
The refinement ratio. | |
GReal_t | errorTolerance |
Error tolerance. | |
int | errorCheckFreq |
Error checking frequency. | |
int | regridFreq |
Regridding frequency. | |
int | bufferZoneSize |
Size of the buffer zone. | |
int | fileNo |
int | maxBDataSize |
string | dtwrite |
Inverse frequency of data writing. | |
string | tmax_str |
Simulation must stop at the specified time. | |
bool | endless |
Simulation never stops if enabled. | |
int | maxRuntime |
int | blankLines |
Number of blank lines between two time slices in case of text output. | |
string | dataFormat |
Data line format string in case of text output. | |
string | energyFormatStr |
Energy format string in case of text output. | |
bool | energyWritten |
Energy is saved if true. | |
bool | writeIntq |
Write an intq file if enabled. | |
string | intqHeaderFormat |
Format string for the header of the intq file. | |
string | intqFormat |
Format string for the intq file. | |
bool | writeMarker |
string | markerHeaderFormat |
string | markerFormat |
Protected Member Functions | |
string | getParameter (string key) const |
Gets a parameter. |
gridripper::amr1d::ParameterParser::ParameterParser | ( | const GrrProperties & | props | ) |
Creates a parameter parser using a property map.
props | the property map |
GReal_t gridripper::amr1d::ParameterParser::getTmax | ( | ) | const throw (InitCond::Exception&) |
Returns the maximum time parameter for the simulation.
string gridripper::amr1d::ParameterParser::getTimeFormatString | ( | ) | const throw (InitCond::Exception&) |
Returns a format string suitable for printing the time coordinate.
PDE* gridripper::amr1d::ParameterParser::disownPDE | ( | ) |
InitCond& gridripper::amr1d::ParameterParser::getInitCond | ( | ) | const |
Deny the ownership of the initial condition object.
Integrator* gridripper::amr1d::ParameterParser::disownIntegrator | ( | ) |
Deny the ownership of the time integrator.
AMError* gridripper::amr1d::ParameterParser::disownAMError | ( | ) |
Regridder* gridripper::amr1d::ParameterParser::disownRegridder | ( | ) |
string gridripper::amr1d::ParameterParser::getParameter | ( | string | key | ) | const [protected] |
Gets a parameter.
key | the parameter name |
Debug messages enabled.
Constraints equations enforced on each time slice.
Courant factor dt/dx.
Maximum grid point index on base grid.
Number of "non-physical" points above maximum x.
The maximum refinement level.
The refinement ratio.
Error tolerance.
A mesh point needs refinement if error is larger than this value.
Error checking frequency.
Numerical error is checked in every n-th step, where n is the specified value.
Regridding frequency.
Regridding always perform in every n-th step (or earlier), where n is the specified value.
Simulation never stops if enabled.
Number of blank lines between two time slices in case of text output.
Data line format string in case of text output.
Energy format string in case of text output.
Energy is saved if true.
Write an intq file if enabled.
Format string for the header of the intq file.
Format string for the intq file.