NOX
Development
|
Concrete instantiation of a NOX::LineSearch::UserDefinedFactory object that uses the base objects only for constuction. More...
#include <NOX_LineSearch_UserDefinedFactoryT.H>
Public Member Functions | |
UserDefinedFactoryT () | |
Constructor. | |
~UserDefinedFactoryT () | |
Destructor. | |
Teuchos::RCP < NOX::LineSearch::Generic > | buildLineSearch (const Teuchos::RCP< NOX::GlobalData > &gd, Teuchos::ParameterList ¶ms) const |
Builds a user defined line search object. More... | |
Public Member Functions inherited from NOX::LineSearch::UserDefinedFactory | |
UserDefinedFactory () | |
Constructor. | |
virtual | ~UserDefinedFactory () |
Destructor. | |
Concrete instantiation of a NOX::LineSearch::UserDefinedFactory object that uses the base objects only for constuction.
If the user writes their own line search and that object has the same constructor arguments as the nox line searches (the gd
and params
as in the buildDirection method), then users can use this object instead of having to write their own factory.
For example, if a user writes their own line search object:
They can build that object using this factory and do not have to write their own factory
It is critical that the user defined factory be set in the parameter list as a base class type object: NOX::LineSearch::UserDefinedFactory.
|
inlinevirtual |
Builds a user defined line search object.
gd | A global data pointer that contains the top level parameter list. Without storing this inside the line searchobject, there is no guarantee that the second parameter params will still exist. It can be deleted by the top level RCP. |
params | Sublist with line search construction parameters. |
Implements NOX::LineSearch::UserDefinedFactory.
References rcp().