AMR 1D parameter parser. More...
#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. |
AMR 1D parameter parser.
gridripper::amr1d::ParameterParser::ParameterParser | ( | const GrrProperties & | props | ) |
Creates a parameter parser using a property map.
props | the property map |
AMError* gridripper::amr1d::ParameterParser::disownAMError | ( | ) |
Deny the ownership of the numerical error calculator.
Integrator* gridripper::amr1d::ParameterParser::disownIntegrator | ( | ) |
Deny the ownership of the time integrator.
PDE* gridripper::amr1d::ParameterParser::disownPDE | ( | ) |
Regridder* gridripper::amr1d::ParameterParser::disownRegridder | ( | ) |
Deny the ownership of the regridder.
InitCond& gridripper::amr1d::ParameterParser::getInitCond | ( | ) | const |
Deny the ownership of the initial condition object.
string gridripper::amr1d::ParameterParser::getParameter | ( | string | key | ) | const [protected] |
Gets a parameter.
key | the parameter name |
string gridripper::amr1d::ParameterParser::getTimeFormatString | ( | ) | const throw (InitCond::Exception&) |
Returns a format string suitable for printing the time coordinate.
GReal_t gridripper::amr1d::ParameterParser::getTmax | ( | ) | const throw (InitCond::Exception&) |
Returns the maximum time parameter for the simulation.
Number of blank lines between two time slices in case of text output.
Constraints equations enforced on each time slice.
Data line format string in case of text output.
Debug messages enabled.
Courant factor dt/dx.
Simulation never stops if enabled.
Energy format string in case of text output.
Energy is saved if true.
Error checking frequency.
Numerical error is checked in every n-th step, where n is the specified value.
Error tolerance.
A mesh point needs refinement if error is larger than this value.
Format string for the intq file.
Format string for the header of the intq file.
Maximum grid point index on base grid.
The maximum refinement level.
Number of "non-physical" points above maximum x.
The refinement ratio.
Regridding frequency.
Regridding always perform in every n-th step (or earlier), where n is the specified value.
Write an intq file if enabled.