NOX::EpetraNew::Interface::Required Class Reference

Supplies NOX with the set nonlinear equations. More...

#include <NOX_EpetraNew_Interface_Required.H>

Inheritance diagram for NOX::EpetraNew::Interface::Required:

[legend]
List of all members.

Public Types

enum  FillType {
  Residual, Jac, Prec, FD_Res,
  MF_Res, MF_Jac, User
}
 Type of fill that a computeF() method is used for. More...

Public Member Functions

 Required ()
 Constructor.
virtual ~Required ()
 Destructor.
virtual bool computeF (const Epetra_Vector &x, Epetra_Vector &F, const FillType fillFlag)=0
 Compute the function, F, given the specified input vector x. Returns true if computation was successful.

Detailed Description

Supplies NOX with the set nonlinear equations.

This is the minimum required information to solve a nonlinear problem using the NOX::EpetraNew objects for the linear algebra implementation. Used by NOX::EpetraNew::Group to provide a link to the external code for residual fills.


Member Enumeration Documentation

enum NOX::EpetraNew::Interface::Required::FillType
 

Type of fill that a computeF() method is used for.

computeF() can be called for a variety of reasons:

  • To evaluate the function residuals.
  • To be used in an approximation to the Jacobian (finite difference or directional derivative).
  • To be used in an approximation to the preconditioner.

This flag tells computeF() what the evaluation is used for. This allows the user to change the fill process to eliminate costly terms. For example, sometimes, terms in the function are very expensive and can be ignored in a Jacobian calculation. The user can query this flag and determine not to recompute such terms if the computeF() is used in a Jacobian calculation.

Enumeration values:
Residual  The exact residual (F) is being calculated.
Jac  The Jacobian matrix is being estimated.
Prec  The preconditioner matrix is being estimated.
FD_Res  The fill context is from a FD approximation (includes FDC).
MF_Res  The fill context is from a MF approximation.
MF_Jac  The fill context is from a MF computeJacobian() approximation.
User  A user defined estimation is being performed.


The documentation for this class was generated from the following file:
Generated on Thu Sep 18 12:40:50 2008 for NOX by doxygen 1.3.9.1