NOX
Development
|
Factory to build a set of status tests from a parameter list. More...
#include <LOCA_StatusTest_Factory.H>
Public Member Functions | |
Factory () | |
Constructor. | |
virtual | ~Factory () |
Destructor. | |
Teuchos::RCP < LOCA::StatusTest::Abstract > | buildStatusTests (const std::string &file_name, const Teuchos::RCP< const LOCA::GlobalData > &globalData, std::map< std::string, Teuchos::RCP< LOCA::StatusTest::Abstract > > *tagged_tests=0) const |
Returns a status test set from a parameter list xml file. | |
Teuchos::RCP < LOCA::StatusTest::Abstract > | buildStatusTests (Teuchos::ParameterList &p, const Teuchos::RCP< const LOCA::GlobalData > &globalData, std::map< std::string, Teuchos::RCP< LOCA::StatusTest::Abstract > > *tagged_tests=0) const |
Returns a status test set from a parameter list. | |
Factory to build a set of status tests from a parameter list.
This object takes either an XML file name or a Teuchos::ParameterList and generates an entire set (a tree) of status tests for use in a LOCA::Stepper derived object.
The tagged_tests field in the constructors allows users to store tests from the tree in a flat list in case they want to change the tolerance values during a run. The tagged_tests flag is optional.
Please use the related nonmember functions instead of calling the factory directly (See example below).
Valid parameters are as follows:
"Test Type" <std::string> Type of test this list contains. Valid tests include:
"Tag" <std::string> A unique identifier that will place the test in the map for tagged_tests. This allows users to access individual tests to change tolerances on the fly or query values while still using the factory to build objects.
Additional parameters valid for a Combo test (LOCA::StatusTest::Combo):
"Combo Type" <std:string> Type of combo to use. Valid options are:
"Number of Tests" <int> Number of sublists that contain tests to be added to this combo test. The sublists must be named "Test X" where "X" represents the test number starting with 0 and preceeding to "Number of Tests - 1".
Additional parameters valid for a Maximum Iterations test (NOX::StatusTest::MaxIters):
Additional parameters valid for a "User Defined" test:
Example usage: