#include <ctrls.h>
Public Types | |
typedef std::vector< std::string > | TInputFiles |
Type used to describe the list of input files specified in the *.run file with the key InputFiles . | |
Public Member Functions | |
Structors | |
TRuntimeControls (const char *name) | |
Loads default controls. | |
TRuntimeControls (const char *name, const char *runFileName) throw (SPARK::XInitialization) | |
Loads controls from file "runFileName". | |
~TRuntimeControls () throw () | |
Trivial destructor. | |
Access methods | |
const char * | GetName () const |
Returns name of runtime controls as const char* . | |
const char * | GetRunFileName () const |
Returns name of the *.run file as const char* . | |
const char * | GetInitialSnapshotFileName () const |
Returns the name of the initial snapshot file as const char* . | |
void | SetInitialSnapshotFileName (const char *str) |
Sets the name of the initial snapshot file to str . | |
const char * | GetFinalSnapshotFileName () const |
Returns the name of the final snapshot file as const char* . | |
void | SetFinalSnapshotFileName (const char *str) |
Sets the name of the final snapshot file to str . | |
TInputFiles & | GetInputFiles () |
Returns a reference to the TInputFiles object that contains the list of the input files specified in the *.run file. | |
const TInputFiles & | GetInputFiles () const |
Returns a const reference to the TInputFiles object that contains the list of the input files specified in the *.run file. | |
const char * | GetOutputFileName () const |
Returns the name of the output file as const char* where the variables tagged with the REPORT keyword are reported. | |
void | SetOutputFileName (const char *filename) |
Sets the name of the output file to filename where the variables tagged with the REPORT keyword will be reported. | |
const char * | GetInitialWallClock () const |
Returns the string describing the initial wall clock as const char* . | |
void | SetInitialWallClock (const char *str) |
Sets the string describing the initial wall clock to str . | |
const char * | GetTimeUnit () const |
Returns the string describing the time unit used in the physical model as const char* . | |
void | SetTimeUnit (const char *str) |
Sets the string describing the time unit used in the physical model to str . | |
unsigned | GetNumPastValues () const |
Returns the number of successive past values that the problem simulator keeps track of as unsigned . | |
void | SetNumPastValues (unsigned numPastValues) |
Sets the number of successive past values that the problem simulator keeps track of to numPastValues . | |
unsigned | GetDiagnosticLevel () const |
Returns the diagnostic level as unsigned . | |
void | SetDiagnosticLevel (unsigned level) |
Sets the diagnostic level to level . | |
double | GetInitialTime () const |
Returns the initial time value as double . | |
void | SetInitialTime (double initialTime) |
Sets the initial time value to initialTime . | |
double | GetFinalTime () const |
Returns the final time value as double . | |
void | SetFinalTime (double finalTime) |
Sets the final time value to finalTime . | |
void | SetInfiniteFinalTime () |
Sets the final time value to infinity. | |
double | GetInitialTimeStep () const |
Returns the value of the intial time step as double . | |
void | SetInitialTimeStep (double initialTimeStep) |
Sets the value of the initial time step to initialTimeStep . | |
double | GetMinTimeStep () const |
Returns the value for the minimum time step allowed as double . | |
void | SetMinTimeStep (double minTimeStep) |
Sets the value for the minimum time step allowed to minTimeStep . | |
double | GetMaxTimeStep () const |
Returns the value for the maximum time step allowed as double . | |
void | SetMaxTimeStep (double maxTimeStep) |
Sets the value for the maximum time step allowed to maxTimeStep . | |
double | GetFirstReport () const |
Returns the time for the first report to be generated as double . | |
void | SetFirstReport (double firstReport) |
Sets the time of the first report to firstReport . | |
double | GetReportCycle () const |
Returns the time step used to generate the reports as double . | |
void | SetReportCycle (double reportCycle) |
Sets the time step used to generate the reports to reportCycle . | |
unsigned | GetVariableTimeStep () const |
Returns the flag that controls whether variable time stepping operation is on or off as unsigned . | |
void | SetVariableTimeStep (unsigned flag) |
Sets the flag taht controls whether variable time stepping operation is on or off to flag . | |
unsigned | GetConsistentInitialCalculation () const |
Returns the flag that controls whether or not to perform an initial consistent calculation for the first step of the simulation as unsigned . | |
void | SetConsistentInitialCalculation (unsigned flag) |
I/O Operations | |
void | Write (std::ostream &os, const std::string &before) const |
Writes the runtime controls to os . | |
Misc operation | |
unsigned | ValidateControls (std::ostream &os) const |
Checks specified controls and returns the number of invalid controls. | |
void | Reset () |
Resets all controls to the default values. |
|
Type used to describe the list of input files specified in the *.run file with the key
|
|
Loads default controls.
|
|
Loads controls from file "runFileName".
|
|
Trivial destructor.
|
|
Returns name of runtime controls as
|
|
Returns name of the *.run file as
|
|
Returns the name of the initial snapshot file as
|
|
Sets the name of the initial snapshot file to
|
|
Returns the name of the final snapshot file as
|
|
Sets the name of the final snapshot file to
|
|
Returns a reference to the TInputFiles object that contains the list of the input files specified in the *.run file.
|
|
Returns a const reference to the TInputFiles object that contains the list of the input files specified in the *.run file.
|
|
Returns the name of the output file as
|
|
Sets the name of the output file to
|
|
Returns the string describing the initial wall clock as The format of the initial wall clock string follows: "mm/dd/yyyy hh:mm:ss"
|
|
Sets the string describing the initial wall clock to
|
|
Returns the string describing the time unit used in the physical model as
|
|
Sets the string describing the time unit used in the physical model to
|
|
Returns the number of successive past values that the problem simulator keeps track of as
|
|
Sets the number of successive past values that the problem simulator keeps track of to
|
|
Returns the diagnostic level as The possible values for the diagnostic level are defined in TProblem::DiagnosticTypes
|
|
Sets the diagnostic level to
|
|
Returns the initial time value as
|
|
Sets the initial time value to
|
|
Returns the final time value as
|
|
Sets the final time value to
|
|
Sets the final time value to infinity.
The problem simulator will not stopped unless a stop request, abort request or a set stop time request is posted. This is equivalent to specifying |
|
Returns the value of the intial time step as
|
|
Sets the value of the initial time step to
|
|
Returns the value for the minimum time step allowed as
|
|
Sets the value for the minimum time step allowed to
|
|
Returns the value for the maximum time step allowed as
|
|
Sets the value for the maximum time step allowed to
|
|
Returns the time for the first report to be generated as
|
|
Sets the time of the first report to
|
|
Returns the time step used to generate the reports as
This report time step is independent from the simulation time step. However, if the simulation supports variable time stepping, then the simultation time step will be adapted to synchronize with the
|
|
Sets the time step used to generate the reports to
|
|
Returns the flag that controls whether variable time stepping operation is on or off as
|
|
Sets the flag taht controls whether variable time stepping operation is on or off to
|
|
Returns the flag that controls whether or not to perform an initial consistent calculation for the first step of the simulation as
|
|
Sets the flag that controls whether or not to perform an initial consistent calculation for the first step of the simulation to |
|
Writes the runtime controls to
|
|
Checks specified controls and returns the number of invalid controls.
|
|
Resets all controls to the default values. See namespace SPARK::DefaultRuntimeControls for the list of the default controls. |