EpetraModelEval2DSim Class Reference

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

#include <EpetraModelEval2DSim.hpp>

Inheritance diagram for EpetraModelEval2DSim:

[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)

Private Attributes

double d_
bool showGetInvalidArg_
bool isInitialized_
Teuchos::RefCountPtr< const
Epetra_Comm
epetra_comm_
Teuchos::RefCountPtr< const
Epetra_Map
map_x_
Teuchos::RefCountPtr< Epetra_Vectorx0_
Teuchos::RefCountPtr< Epetra_Vectorp_
Teuchos::RefCountPtr< Epetra_CrsGraphW_graph_

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 [virtual]
 

Implements EpetraExt::ModelEvaluator.

Definition at line 91 of file EpetraModelEval2DSim.cpp.


Member Data Documentation

double EpetraModelEval2DSim::d_ [private]
 

Definition at line 59 of file EpetraModelEval2DSim.hpp.

bool EpetraModelEval2DSim::showGetInvalidArg_ [private]
 

Definition at line 60 of file EpetraModelEval2DSim.hpp.

bool EpetraModelEval2DSim::isInitialized_ [private]
 

Definition at line 63 of file EpetraModelEval2DSim.hpp.

Teuchos::RefCountPtr<const Epetra_Comm> EpetraModelEval2DSim::epetra_comm_ [private]
 

Definition at line 65 of file EpetraModelEval2DSim.hpp.

Teuchos::RefCountPtr<const Epetra_Map> EpetraModelEval2DSim::map_x_ [private]
 

Definition at line 66 of file EpetraModelEval2DSim.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraModelEval2DSim::x0_ [private]
 

Definition at line 68 of file EpetraModelEval2DSim.hpp.

Teuchos::RefCountPtr<Epetra_Vector> EpetraModelEval2DSim::p_ [private]
 

Definition at line 69 of file EpetraModelEval2DSim.hpp.

Teuchos::RefCountPtr<Epetra_CrsGraph> EpetraModelEval2DSim::W_graph_ [private]
 

Definition at line 71 of file EpetraModelEval2DSim.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Sep 18 12:32:05 2008 for EpetraExt Package Browser (Single Doxygen Collection) by doxygen 1.3.9.1