NOX
Development
|
Factory to build a set of status tests from a parameter list. More...
#include <NOX_StatusTest_Factory.H>
Public Member Functions | |
Factory () | |
Constructor. | |
virtual | ~Factory () |
Destructor. | |
Teuchos::RCP < NOX::StatusTest::Generic > | buildStatusTests (const std::string &file_name, const NOX::Utils &utils, std::map< std::string, Teuchos::RCP< NOX::StatusTest::Generic > > *tagged_tests=nullptr) const |
Returns a status test set from a parameter list xml file. | |
Teuchos::RCP < NOX::StatusTest::Generic > | buildStatusTests (Teuchos::ParameterList &p, const NOX::Utils &utils, std::map< std::string, Teuchos::RCP< NOX::StatusTest::Generic > > *tagged_tests=nullptr) const |
Returns a status test set from a parameter list. | |
Related Functions | |
(Note that these are not member functions.) | |
Teuchos::RCP < NOX::StatusTest::Generic > | buildStatusTests (const std::string &file_name, const NOX::Utils &utils, std::map< std::string, Teuchos::RCP< NOX::StatusTest::Generic > > *tagged_tests=nullptr) |
Nonmember helper function for the NOX::StatusTest::Factory. | |
Teuchos::RCP < NOX::StatusTest::Generic > | buildStatusTests (Teuchos::ParameterList &p, const NOX::Utils &utils, std::map< std::string, Teuchos::RCP< NOX::StatusTest::Generic > > *tagged_tests=nullptr) |
Nonmember helper function for the NOX::StatusTest::Factory. | |
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) |
Nonmember helper function for the NOX::StatusTest::Factory. | |
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) |
Nonmember helper function for the NOX::StatusTest::Factory. | |
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 NOX::Solver 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 (NOX::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 Norm F test (NOX::StatusTest::NormF):
Additional parameters valid for a Norm Update test (NOX::StatusTest::NormUpdate):
Additional parameters valid for a Norm WRMS test (NOX::StatusTest::NormWRMS):
Additional parameters valid for a Maximum Iterations test (NOX::StatusTest::MaxIters):
Additional parameters valid for a Finite Value test (NOX::StatusTest::FiniteValue):
Additional parameters valid for a Divergence test (NOX::StatusTest::Divergence):
Additional parameters valid for a Stagnation test (NOX::StatusTest::Stagnation):
Additional parameters valid for a RelativeNormF test (NOX::StatusTest::RelativeNormF):
Additional parameters valid for a NStep test (NOX::StatusTest::NStep):
Additional parameters valid for a "User Defined" test:
Example usage: