NOX::Petsc::Interface Class Reference

Used by NOX::Petsc::Group to provide a link to the external code for F and Jacobian evaluations (if needed). More...

#include <NOX_Petsc_Interface.H>

List of all members.

Public Member Functions

 Interface ()
 Constructor.
virtual ~Interface ()
 Destructor.
virtual bool computeF (const Vec &x, Vec &RHS)=0
 Compute F given the specified input vector, x. Returns true if computation was successful.
virtual bool computeJacobian (const Vec &x, Mat &Jac)=0
 Compute Jacobian given the specified input vector, x. Returns true if computation was successful.
virtual bool computePreconditioner (Mat &M)=0
 Compute the matrix M that will be used as the preconditioner. Returns true if computation was successful.
virtual bool preconditionVector (Vec &y)=0
 Return the action of the preconditioner on a vector. Returns true if computation was successful.


Detailed Description

Used by NOX::Petsc::Group to provide a link to the external code for F and Jacobian evaluations (if needed).

At a minimum the user must supply a computeF(). If the user is supplying their own Petsc Mat for the Jacobian, then they must supply a computeJacobian(). Preconditioning functions are only needed if the user wishes to supply their own preconditioner. Otherwise Petsc SLES has built-in preconditioners to use.

Definition at line 58 of file NOX_Petsc_Interface.H.


Constructor & Destructor Documentation

NOX::Petsc::Interface::Interface (  )  [inline]

Constructor.

Definition at line 63 of file NOX_Petsc_Interface.H.

virtual NOX::Petsc::Interface::~Interface (  )  [inline, virtual]

Destructor.

Definition at line 66 of file NOX_Petsc_Interface.H.


Member Function Documentation

virtual bool NOX::Petsc::Interface::computeF ( const Vec &  x,
Vec &  RHS 
) [pure virtual]

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

Referenced by NOX::Petsc::Group::computeF().

virtual bool NOX::Petsc::Interface::computeJacobian ( const Vec &  x,
Mat &  Jac 
) [pure virtual]

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

Referenced by NOX::Petsc::Group::computeJacobian().

virtual bool NOX::Petsc::Interface::computePreconditioner ( Mat &  M  )  [pure virtual]

Compute the matrix M that will be used as the preconditioner. Returns true if computation was successful.

virtual bool NOX::Petsc::Interface::preconditionVector ( Vec &  y  )  [pure virtual]

Return the action of the preconditioner on a vector. Returns true if computation was successful.


The documentation for this class was generated from the following file:

Generated on Thu Dec 17 11:03:08 2009 for Nonlinear Solver Project by  doxygen 1.5.9