NOX
Development
|
Manager class to control the instantiation of the objects derived from the NOX::Solver::Generic object. More...
#include <NOX_Multiphysics_Solver_Manager.H>
Public Member Functions | |
Manager () | |
Empty constructor - reset called later to really construct it. | |
Manager (const Teuchos::RCP< std::vector< Teuchos::RCP< NOX::Solver::Generic > > > &solvers, const Teuchos::RCP< NOX::Multiphysics::DataExchange::Interface > &i, const Teuchos::RCP< NOX::StatusTest::Generic > &t, const Teuchos::RCP< Teuchos::ParameterList > &p) | |
Constructor. More... | |
Manager (const Teuchos::RCP< NOX::Abstract::Group > &grp, const Teuchos::RCP< NOX::StatusTest::Generic > &t, const Teuchos::RCP< Teuchos::ParameterList > &p) | |
Constructor. More... | |
virtual | ~Manager () |
Destructor. | |
virtual bool | reset (const Teuchos::RCP< std::vector< Teuchos::RCP< NOX::Solver::Generic > > > &solvers, const Teuchos::RCP< NOX::Multiphysics::DataExchange::Interface > &i, const Teuchos::RCP< NOX::StatusTest::Generic > &tests, const Teuchos::RCP< Teuchos::ParameterList > ¶ms) |
virtual void | reset (const NOX::Abstract::Vector &initialGuess, const Teuchos::RCP< NOX::StatusTest::Generic > &tests) |
virtual void | reset (const NOX::Abstract::Vector &initialGuess) |
Resets the solver and sets a new initial guess. | |
virtual NOX::StatusTest::StatusType | getStatus () |
Check current convergence and failure status. | |
virtual NOX::StatusTest::StatusType | step () |
Do one nonlinear step in the iteration sequence and return status. | |
virtual NOX::StatusTest::StatusType | solve () |
Solve the nonlinear problem and return final status. More... | |
virtual const NOX::Abstract::Group & | getSolutionGroup () const |
Return a reference to the current solution group. | |
virtual const NOX::Abstract::Group & | getPreviousSolutionGroup () const |
Return a reference to the previous solution group. | |
virtual int | getNumIterations () const |
Get number of iterations. | |
virtual const Teuchos::ParameterList & | getList () const |
Return a reference to the solver parameters. | |
virtual Teuchos::RCP< const NOX::Abstract::Group > | getSolutionGroupPtr () const |
Return a RCP to the solution group. | |
virtual Teuchos::RCP< const NOX::Abstract::Group > | getPreviousSolutionGroupPtr () const |
Return a RCP to the previous solution group. | |
virtual Teuchos::RCP< const Teuchos::ParameterList > | getListPtr () const |
Return a RCP to the solver parameters. | |
![]() | |
Generic () | |
Constructor (does nothing) | |
virtual | ~Generic () |
Destructor (does nothing) | |
virtual void | reset (const NOX::Abstract::Vector &initial_guess, const Teuchos::RCP< NOX::StatusTest::Generic > &test)=0 |
Resets the solver, sets a new status test, and sets a new initial guess. | |
Protected Attributes | |
NOX::Multiphysics::Solver::Generic * | cplPtr |
Pointer to the coupling solver object. | |
Manager class to control the instantiation of the objects derived from the NOX::Solver::Generic object.
Parameters
The following entries may be specified in the parameter list.
NOX::Multiphysics::Solver::Manager::Manager | ( | const Teuchos::RCP< std::vector< Teuchos::RCP< NOX::Solver::Generic > > > & | solvers, |
const Teuchos::RCP< NOX::Multiphysics::DataExchange::Interface > & | i, | ||
const Teuchos::RCP< NOX::StatusTest::Generic > & | t, | ||
const Teuchos::RCP< Teuchos::ParameterList > & | p | ||
) |
Constructor.
See reset() for a full description.
NOX::Multiphysics::Solver::Manager::Manager | ( | const Teuchos::RCP< NOX::Abstract::Group > & | grp, |
const Teuchos::RCP< NOX::StatusTest::Generic > & | t, | ||
const Teuchos::RCP< Teuchos::ParameterList > & | p | ||
) |
Constructor.
See reset() for a full description.
|
virtual |
Solve the nonlinear problem and return final status.
By "solve", we call iterate() until the NOX::StatusTest value is either NOX::StatusTest::Converged or NOX::StatusTest::Failed.
Implements NOX::Solver::Generic.
References cplPtr, and NOX::Solver::Generic::solve().