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) |
Resets the solver, sets a new status test, and sets a new initial guess. | |
virtual void | reset (const NOX::Abstract::Vector &initialGuess) |
Resets the solver and sets a new initial guess. | |
virtual void | reset () |
Resets the solver for another solve. This resets the counters and status only. Uses the final solution from the last solve as the initial guess for the next solve. More... | |
virtual NOX::StatusTest::StatusType | getStatus () |
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. | |
Public Member Functions inherited from NOX::Solver::Generic | |
Generic () | |
Constructor (does nothing) | |
virtual | ~Generic () |
Destructor (does nothing) | |
virtual NOX::StatusTest::StatusType | getStatus () const =0 |
Returns the current status of the solver. | |
virtual Teuchos::RCP< const NOX::SolverStats > | getSolverStatistics () const =0 |
Return a RCP to the solver statistics. | |
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 | ||
) |
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 |
Resets the solver for another solve. This resets the counters and status only. Uses the final solution from the last solve as the initial guess for the next solve.
NOTE: All NOX solvers will call reset() automatically at teh beginning of the solve() method. We add the reset() method to the solver interface for the application to call in case the application needs to reset counters and status manually before the next call to solve() is made.
Implements NOX::Solver::Generic.
Referenced by Manager().
|
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.