LOCA::Epetra::ModelEvaluatorInterface Class Reference

Wrapper for an EpetraExt::ModelEvaluator. More...

#include <LOCA_Epetra_ModelEvaluatorInterface.H>

Inheritance diagram for LOCA::Epetra::ModelEvaluatorInterface:

Inheritance graph
[legend]
Collaboration diagram for LOCA::Epetra::ModelEvaluatorInterface:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModelEvaluatorInterface (const Teuchos::RCP< LOCA::GlobalData > &global_data, const Teuchos::RefCountPtr< EpetraExt::ModelEvaluator > &m, double perturb=1.0e-6)
 Constructor.
virtual ~ModelEvaluatorInterface ()
 Destructor.
const ParameterVectorgetLOCAParameterVector () const
 Return LOCA parameter vector.
virtual bool computeF (const Epetra_Vector &x, Epetra_Vector &F, const FillType fillFlag)
virtual bool computeJacobian (const Epetra_Vector &x, Epetra_Operator &Jac)
virtual bool computePreconditioner (const Epetra_Vector &x, Epetra_Operator &M, Teuchos::ParameterList *precParams=0)
 Computes a user defined preconditioner.
virtual void setParameters (const ParameterVector &p)
 Set parameters in the user's application.
virtual bool computeShiftedMatrix (double alpha, double beta, const Epetra_Vector &x, Epetra_Operator &A)
 Call user routine for computing the shifted matrix $\alpha J + \beta M$ where $J$ is the Jacobian matrix and $M$ is the mass matrix.
 ModelEvaluatorInterface (const ModelEvaluatorInterface &)
 Copy constructor.
virtual Teuchos::RCP< DerivUtilsclone (NOX::CopyType type=NOX::DeepCopy) const
 Clone.
virtual NOX::Abstract::Group::ReturnType computeDfDp (LOCA::MultiContinuation::AbstractGroup &grp, const vector< int > &param_ids, NOX::Abstract::MultiVector &result, bool isValidF) const
 Compute derivative of f with respect to parameter, identified by param_id.

Protected Attributes

Epetra_Vector param_vec
 Parameter vector as an Epetra_Vector.
LOCA::ParameterVector loca_param_vec
 LOCA parameter vector.
Epetra_Vectorx_dot
 Epetra vector storing x_dot, filled with zeros.

Detailed Description

Wrapper for an EpetraExt::ModelEvaluator.

If an application interfaces their code to solvers using the EpetraExt::ModelEvaluator, this class provides a wrapper so that the model evaluator can be used instead of having the user write concrete versions of the LOCA::Epetra::Interface objects.


Member Function Documentation

bool LOCA::Epetra::ModelEvaluatorInterface::computeJacobian ( const Epetra_Vector x,
Epetra_Operator Jac 
) [virtual]

Compute Jacobian given the specified input vector x. Returns true if computation was successful.

Reimplemented from NOX::Epetra::ModelEvaluatorInterface.

void LOCA::Epetra::ModelEvaluatorInterface::setParameters ( const ParameterVector p  )  [virtual]

Set parameters in the user's application.

Should be called prior to calling one of the compute functions.

Implements LOCA::Epetra::Interface::Required.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:46:30 2009 for NOX by doxygen 1.4.7