EpetraModelEval2DSim Class Reference

Simple example ModelEvaluator subclass for a 2x2 set of parameterized nonlinear equations. More...

#include <EpetraModelEval2DSim.hpp>

Inheritance diagram for EpetraModelEval2DSim:

Inheritance graph
[legend]
List of all members.

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RefCountPtr< const
Epetra_Map
get_x_map () const
 
Teuchos::RefCountPtr< const
Epetra_Map
get_f_map () const
 
Teuchos::RefCountPtr< const
Epetra_Vector
get_x_init () const
 
Teuchos::RefCountPtr< Epetra_Operatorcreate_W () const
 
InArgs createInArgs () const
 
OutArgs createOutArgs () const
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 

Public Member Functions

 EpetraModelEval2DSim (const double d=10.0, const double p0=2.0, const double p1=0.0, const double x00=1.0, const double x01=1.0, const bool showGetInvalidArg=false)
 

Detailed Description

Simple example ModelEvaluator subclass for a 2x2 set of parameterized nonlinear equations.

The equations modeled are:

    f[0] =       x[0]      + x[1]*x[1] - p[0];
    f[1] = d * ( x[0]*x[0] - x[1]      - p[1] );

 

Definition at line 21 of file EpetraModelEval2DSim.hpp.


Constructor & Destructor Documentation

EpetraModelEval2DSim::EpetraModelEval2DSim ( const double  d = 10.0,
const double  p0 = 2.0,
const double  p1 = 0.0,
const double  x00 = 1.0,
const double  x01 = 1.0,
const bool  showGetInvalidArg = false 
)

Definition at line 6 of file EpetraModelEval2DSim.cpp.


Member Function Documentation

Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval2DSim::get_x_map (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 42 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< const Epetra_Map > EpetraModelEval2DSim::get_f_map (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 48 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< const Epetra_Vector > EpetraModelEval2DSim::get_x_init (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 54 of file EpetraModelEval2DSim.cpp.

Teuchos::RefCountPtr< Epetra_Operator > EpetraModelEval2DSim::create_W (  )  const [virtual]

Reimplemented from EpetraExt::ModelEvaluator.

Definition at line 60 of file EpetraModelEval2DSim.cpp.

EpetraExt::ModelEvaluator::InArgs EpetraModelEval2DSim::createInArgs (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 66 of file EpetraModelEval2DSim.cpp.

EpetraExt::ModelEvaluator::OutArgs EpetraModelEval2DSim::createOutArgs (  )  const [virtual]

Implements EpetraExt::ModelEvaluator.

Definition at line 75 of file EpetraModelEval2DSim.cpp.

void EpetraModelEval2DSim::evalModel ( const InArgs &  inArgs,
const OutArgs &  outArgs 
) const

Definition at line 91 of file EpetraModelEval2DSim.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:45:33 2009 for EpetraExt by doxygen 1.4.7