Thyra Package Browser (Single Doxygen Collection) Version of the Day
Public Types | Private Types | Private Member Functions | Private Attributes | Related Functions
Thyra::EpetraModelEvaluator Class Reference

Concrete Adapter subclass that takes an EpetraExt::ModelEvaluator object and wraps it as a Thyra::ModelEvaluator object. More...

#include <Thyra_EpetraModelEvaluator.hpp>

Inheritance diagram for Thyra::EpetraModelEvaluator:
Inheritance graph
[legend]

List of all members.

Public Types

enum  EStateFunctionScaling { STATE_FUNC_SCALING_NONE, STATE_FUNC_SCALING_ROW_SUM }

Private Types

typedef Teuchos::Array< RCP
< const Epetra_Map > > 
p_map_t
typedef Teuchos::Array< RCP
< const Epetra_Map > > 
g_map_t
typedef std::vector< bool > p_map_is_local_t
typedef std::vector< bool > g_map_is_local_t
typedef Teuchos::Array< RCP
< const VectorSpaceBase
< double > > > 
p_space_t
typedef Teuchos::Array< RCP
< const VectorSpaceBase
< double > > > 
g_space_t

Private Member Functions

void convertInArgsFromEpetraToThyra (const EpetraExt::ModelEvaluator::InArgs &epetraInArgs, ModelEvaluatorBase::InArgs< double > *inArgs) const
 
void convertInArgsFromThyraToEpetra (const ModelEvaluatorBase::InArgs< double > &inArgs, EpetraExt::ModelEvaluator::InArgs *epetraInArgs) const
 
void convertOutArgsFromThyraToEpetra (const ModelEvaluatorBase::OutArgs< double > &outArgs, EpetraExt::ModelEvaluator::OutArgs *epetraUnscaledOutArgs, RCP< LinearOpWithSolveBase< double > > *W, RCP< LinearOpBase< double > > *W_op, RCP< const LinearOpBase< double > > *fwdW, RCP< EpetraLinearOp > *efwdW, RCP< Epetra_Operator > *eW) const
 
void preEvalScalingSetup (EpetraExt::ModelEvaluator::InArgs *epetraInArgs, EpetraExt::ModelEvaluator::OutArgs *epetraUnscaledOutArgs, const RCP< Teuchos::FancyOStream > &out, const Teuchos::EVerbosityLevel verbLevel) const
 
void postEvalScalingSetup (const EpetraExt::ModelEvaluator::OutArgs &epetraUnscaledOutArgs, const RCP< Teuchos::FancyOStream > &out, const Teuchos::EVerbosityLevel verbLevel) const
 
void finishConvertingOutArgsFromEpetraToThyra (const EpetraExt::ModelEvaluator::OutArgs &epetraOutArgs, RCP< LinearOpWithSolveBase< double > > &W, RCP< LinearOpBase< double > > &W_op, RCP< const LinearOpBase< double > > &fwdW, RCP< EpetraLinearOp > &efwdW, RCP< Epetra_Operator > &eW, const ModelEvaluatorBase::OutArgs< double > &outArgs) const
 
void updateNominalValuesAndBounds () const
 
void updateInArgsOutArgs () const
 
RCP< EpetraLinearOpcreate_epetra_W_op () const
 

Private Attributes

RCP< const
EpetraExt::ModelEvaluator > 
epetraModel_
RCP< Teuchos::ParameterList > paramList_
RCP
< LinearOpWithSolveFactoryBase
< double > > 
W_factory_
RCP< const Epetra_Map > x_map_
p_map_t p_map_
g_map_t g_map_
p_map_is_local_t p_map_is_local_
p_map_is_local_t g_map_is_local_
RCP< const Epetra_Map > f_map_
RCP< const VectorSpaceBase
< double > > 
x_space_
p_space_t p_space_
RCP< const VectorSpaceBase
< double > > 
f_space_
g_space_t g_space_
ModelEvaluatorBase::InArgs
< double > 
nominalValues_
ModelEvaluatorBase::InArgs
< double > 
lowerBounds_
ModelEvaluatorBase::InArgs
< double > 
upperBounds_
bool nominalValuesAndBoundsAreUpdated_
ModelEvaluatorBase::InArgs
< double > 
finalPoint_
EStateFunctionScaling stateFunctionScaling_
RCP< const Epetra_Vector > stateFunctionScalingVec_
RCP< const Epetra_Vector > stateVariableScalingVec_
RCP< const Epetra_Vector > invStateVariableScalingVec_
EpetraExt::ModelEvaluator::InArgs epetraInArgsScaling_
EpetraExt::ModelEvaluator::OutArgs epetraOutArgsScaling_
RCP< Epetra_Vector > x_unscaled_
RCP< Epetra_Vector > x_dot_unscaled_
ModelEvaluatorBase::InArgs
< double > 
prototypeInArgs_
ModelEvaluatorBase::OutArgs
< double > 
prototypeOutArgs_
bool currentInArgsOutArgs_
bool finalPointWasSolved_

Related Functions

(Note that these are not member functions.)

RCP< EpetraModelEvaluatorepetraModelEvaluator (const RCP< const EpetraExt::ModelEvaluator > &epetraModel, const RCP< LinearOpWithSolveFactoryBase< double > > &W_factory)
 
ModelEvaluatorBase::EDerivativeMultiVectorOrientation convert (const EpetraExt::ModelEvaluator::EDerivativeMultiVectorOrientation &mvOrientation)
 
EpetraExt::ModelEvaluator::EDerivativeMultiVectorOrientation convert (const ModelEvaluatorBase::EDerivativeMultiVectorOrientation &mvOrientation)
 
ModelEvaluatorBase::DerivativeProperties convert (const EpetraExt::ModelEvaluator::DerivativeProperties &derivativeProperties)
 
ModelEvaluatorBase::DerivativeSupport convert (const EpetraExt::ModelEvaluator::DerivativeSupport &derivativeSupport)
 
EpetraExt::ModelEvaluator::Derivative convert (const ModelEvaluatorBase::Derivative< double > &derivative, const RCP< const Epetra_Map > &fnc_map, const RCP< const Epetra_Map > &var_map)
 

Constructors/initializers/accessors/utilities.

 EpetraModelEvaluator ()
 
 EpetraModelEvaluator (const RCP< const EpetraExt::ModelEvaluator > &epetraModel, const RCP< LinearOpWithSolveFactoryBase< double > > &W_factory)
 
void initialize (const RCP< const EpetraExt::ModelEvaluator > &epetraModel, const RCP< LinearOpWithSolveFactoryBase< double > > &W_factory)
 
RCP< const
EpetraExt::ModelEvaluator > 
getEpetraModel () const
 
void setNominalValues (const ModelEvaluatorBase::InArgs< double > &nominalValues)
 Set the nominal values.
void setStateVariableScalingVec (const RCP< const Epetra_Vector > &stateVariableScalingVec)
 Set the state variable scaling vector s_x (see above).
RCP< const Epetra_Vector > getStateVariableInvScalingVec () const
 Get the state variable scaling vector s_x (see above).
RCP< const Epetra_Vector > getStateVariableScalingVec () const
 Get the inverse state variable scaling vector inv_s_x (see above).
void setStateFunctionScalingVec (const RCP< const Epetra_Vector > &stateFunctionScalingVec)
 Set the state function scaling vector s_f (see above).
RCP< const Epetra_Vector > getStateFunctionScalingVec () const
 Get the state function scaling vector s_f (see above).
void uninitialize (RCP< const EpetraExt::ModelEvaluator > *epetraModel=NULL, RCP< LinearOpWithSolveFactoryBase< double > > *W_factory=NULL)
 
const
ModelEvaluatorBase::InArgs
< double > & 
getFinalPoint () const
 
bool finalPointWasSolved () const
 

Public functions overridden from Teuchos::Describable.

std::string description () const
 

Overridden from ParameterListAcceptor

void setParameterList (RCP< Teuchos::ParameterList > const &paramList)
 
RCP< Teuchos::ParameterList > getNonconstParameterList ()
 
RCP< Teuchos::ParameterList > unsetParameterList ()
 
RCP< const Teuchos::ParameterList > getParameterList () const
 
RCP< const Teuchos::ParameterList > getValidParameters () const
 

Public functions overridden from ModelEvaulator.

int Np () const
 
int Ng () const
 
RCP< const VectorSpaceBase
< double > > 
get_x_space () const
 
RCP< const VectorSpaceBase
< double > > 
get_f_space () const
 
RCP< const VectorSpaceBase
< double > > 
get_p_space (int l) const
 
RCP< const Teuchos::Array
< std::string > > 
get_p_names (int l) const
 
RCP< const VectorSpaceBase
< double > > 
get_g_space (int j) const
 
ModelEvaluatorBase::InArgs
< double > 
getNominalValues () const
 
ModelEvaluatorBase::InArgs
< double > 
getLowerBounds () const
 
ModelEvaluatorBase::InArgs
< double > 
getUpperBounds () const
 
RCP< LinearOpWithSolveBase
< double > > 
create_W () const
 
RCP< LinearOpBase< double > > create_W_op () const
 
RCP< const
LinearOpWithSolveFactoryBase
< double > > 
get_W_factory () const
ModelEvaluatorBase::InArgs
< double > 
createInArgs () const
 
void reportFinalPoint (const ModelEvaluatorBase::InArgs< double > &finalPoint, const bool wasSolved)
 

Private functions overridden from ModelEvaulatorDefaultBase.

RCP< LinearOpBase< double > > create_DfDp_op_impl (int l) const
 
RCP< LinearOpBase< double > > create_DgDx_dot_op_impl (int j) const
 
RCP< LinearOpBase< double > > create_DgDx_op_impl (int j) const
 
RCP< LinearOpBase< double > > create_DgDp_op_impl (int j, int l) const
 
ModelEvaluatorBase::OutArgs
< double > 
createOutArgsImpl () const
 
void evalModelImpl (const ModelEvaluatorBase::InArgs< double > &inArgs, const ModelEvaluatorBase::OutArgs< double > &outArgs) const
 

Detailed Description

Concrete Adapter subclass that takes an EpetraExt::ModelEvaluator object and wraps it as a Thyra::ModelEvaluator object.

This class takes care of the basic details of wrapping and unwrapping Epetra from Thyra objects. This class is highly configurable and will be maintained and modified in the future as the basic link between the Epetra world and the Thyra world for nonlinear models and nonlinear algorithms.

Scaling

This class can handle scaling of the state function f(...) and of the state variables x and all of the affected derivatives.

The scaling for the state function can be set manually using setStateFunctionScalingVec() or can be computed automatically using the parameter "State Function Scaling" (see documentation output from this->getValidParameters()->print(...)) in the input parameter list set by setParameterList(). Reguardless of how the state function scaling is computed, it will compute a positive vector s_f that defines a diagonal matrix S_f = diag(s_f) that transforms the state function:


    f(...) = S_f * f_orig(...)

 

where f_orig(...) is the original state function as computed by the underlying EpetraExt::ModelEvaluator object and f(...) is the state function as computed by evalModel().

The scaling for the state variables must be set manually using Thyra::setStateVariableScalingVec(). The vector that is set s_x>/tt> defines a diagonal scaling matrix S_x = diag(s_x) that transforms the variables as:


    x = S_x * x_orig

 

where x_orig is the original unscaled state variable vector as defined by the underlying EpetraExt::ModelEvaluator object and x is the scaled state varaible vector as returned from getNominalValues() and as accepted by evalModel(). Note that when the scaled variables x are passed into evalModel that they are unscaled as:


    x_orig = inv(S_x) * x

 

where inv(S_x) is the inverse of the diagonals of S_x which is stored as a vector inv_s_x.

Note how these scalings affect the state function:


    f(x,...) = S_f * f_orig( inv(S_x)*x...)

 

which as the state/state Jacobian:


    W = d(f)/d(x) = S_f * d(f_orig)/d(x_orig) * inv(S_x)

 

Currently, this class does not handle scalings of the parameters p(l) or of the auxilary response functions g(j)(...).

The state varaible and state function scaling gives the following scaled quantities:


    f = S_f * f_orig

    W = S_f * W_orig * inv(S_x)

    DfDp(l) = S_f * DfDp_orig(l)

    g(j) = g_orig(j)

    DgDx_dot(j) = DgDx_dot_orig(j) * inv(S_x)

    DgDx(j) = DgDx_orig(j) * inv(S_x)
    
    DgDp(j,l) = DgDp_orig(j,l)

 

Since the scaling is done explicitly, the client never even sees the orginal scaling and the linear solver (and contained preconditioner) are computed from the scaled W shown above.

ToDo: Describe how scaling affects the Hessian-vector products an how you just need to scale the Lagrange mutipliers as:


  u^T * f(...) = u^T * (S_f * f_orig(...)) = u_f^T * f_orig(...)

 

where u_f = S_f * u.

ToDo: Finish documentation!

Definition at line 162 of file Thyra_EpetraModelEvaluator.hpp.


Member Typedef Documentation

typedef Teuchos::Array<RCP<const Epetra_Map> > Thyra::EpetraModelEvaluator::p_map_t [private]

Definition at line 337 of file Thyra_EpetraModelEvaluator.hpp.

typedef Teuchos::Array<RCP<const Epetra_Map> > Thyra::EpetraModelEvaluator::g_map_t [private]

Definition at line 338 of file Thyra_EpetraModelEvaluator.hpp.

typedef std::vector<bool> Thyra::EpetraModelEvaluator::p_map_is_local_t [private]

Definition at line 339 of file Thyra_EpetraModelEvaluator.hpp.

typedef std::vector<bool> Thyra::EpetraModelEvaluator::g_map_is_local_t [private]

Definition at line 340 of file Thyra_EpetraModelEvaluator.hpp.

typedef Teuchos::Array<RCP<const VectorSpaceBase<double> > > Thyra::EpetraModelEvaluator::p_space_t [private]

Definition at line 343 of file Thyra_EpetraModelEvaluator.hpp.

typedef Teuchos::Array<RCP<const VectorSpaceBase<double> > > Thyra::EpetraModelEvaluator::g_space_t [private]

Definition at line 345 of file Thyra_EpetraModelEvaluator.hpp.


Member Enumeration Documentation

Enumerator:
STATE_FUNC_SCALING_NONE 
STATE_FUNC_SCALING_ROW_SUM 

Definition at line 307 of file Thyra_EpetraModelEvaluator.hpp.


Constructor & Destructor Documentation

Thyra::EpetraModelEvaluator::EpetraModelEvaluator ( )

Definition at line 110 of file Thyra_EpetraModelEvaluator.cpp.

Thyra::EpetraModelEvaluator::EpetraModelEvaluator ( const RCP< const EpetraExt::ModelEvaluator > &  epetraModel,
const RCP< LinearOpWithSolveFactoryBase< double > > &  W_factory 
)

Definition at line 116 of file Thyra_EpetraModelEvaluator.cpp.

References initialize().


Member Function Documentation

void Thyra::EpetraModelEvaluator::initialize ( const RCP< const EpetraExt::ModelEvaluator > &  epetraModel,
const RCP< LinearOpWithSolveFactoryBase< double > > &  W_factory 
)
RCP< const EpetraExt::ModelEvaluator > Thyra::EpetraModelEvaluator::getEpetraModel ( ) const

Definition at line 184 of file Thyra_EpetraModelEvaluator.cpp.

References epetraModel_.

void Thyra::EpetraModelEvaluator::setNominalValues ( const ModelEvaluatorBase::InArgs< double > &  nominalValues)

Set the nominal values.

Warning, if scaling is being used, these must be according to the scaled values, not the original unscaled values.

Definition at line 190 of file Thyra_EpetraModelEvaluator.cpp.

References nominalValues_, and Thyra::ModelEvaluatorBase::InArgs< Scalar >::setArgs().

void Thyra::EpetraModelEvaluator::setStateVariableScalingVec ( const RCP< const Epetra_Vector > &  stateVariableScalingVec)

Set the state variable scaling vector s_x (see above).

This function must be called after intialize() or the constructur in order to set the scaling vector correctly!

ToDo: Move this into an external strategy class object!

Definition at line 199 of file Thyra_EpetraModelEvaluator.cpp.

References createInArgs(), invStateVariableScalingVec_, nominalValuesAndBoundsAreUpdated_, and stateVariableScalingVec_.

RCP< const Epetra_Vector > Thyra::EpetraModelEvaluator::getStateVariableInvScalingVec ( ) const

Get the state variable scaling vector s_x (see above).

Definition at line 221 of file Thyra_EpetraModelEvaluator.cpp.

References invStateVariableScalingVec_, and updateNominalValuesAndBounds().

RCP< const Epetra_Vector > Thyra::EpetraModelEvaluator::getStateVariableScalingVec ( ) const

Get the inverse state variable scaling vector inv_s_x (see above).

Definition at line 214 of file Thyra_EpetraModelEvaluator.cpp.

References stateVariableScalingVec_.

void Thyra::EpetraModelEvaluator::setStateFunctionScalingVec ( const RCP< const Epetra_Vector > &  stateFunctionScalingVec)

Set the state function scaling vector s_f (see above).

Definition at line 228 of file Thyra_EpetraModelEvaluator.cpp.

References stateFunctionScalingVec_.

RCP< const Epetra_Vector > Thyra::EpetraModelEvaluator::getStateFunctionScalingVec ( ) const

Get the state function scaling vector s_f (see above).

Definition at line 237 of file Thyra_EpetraModelEvaluator.cpp.

References stateFunctionScalingVec_.

void Thyra::EpetraModelEvaluator::uninitialize ( RCP< const EpetraExt::ModelEvaluator > *  epetraModel = NULL,
RCP< LinearOpWithSolveFactoryBase< double > > *  W_factory = NULL 
)
const ModelEvaluatorBase::InArgs< double > & Thyra::EpetraModelEvaluator::getFinalPoint ( ) const

Definition at line 260 of file Thyra_EpetraModelEvaluator.cpp.

References finalPoint_.

bool Thyra::EpetraModelEvaluator::finalPointWasSolved ( ) const

Definition at line 266 of file Thyra_EpetraModelEvaluator.cpp.

References finalPointWasSolved_.

std::string Thyra::EpetraModelEvaluator::description ( ) const

Definition at line 275 of file Thyra_EpetraModelEvaluator.cpp.

References epetraModel_, and W_factory_.

Referenced by updateInArgsOutArgs().

void Thyra::EpetraModelEvaluator::setParameterList ( RCP< Teuchos::ParameterList > const &  paramList)
RCP< Teuchos::ParameterList > Thyra::EpetraModelEvaluator::getNonconstParameterList ( )

Definition at line 318 of file Thyra_EpetraModelEvaluator.cpp.

References paramList_.

RCP< Teuchos::ParameterList > Thyra::EpetraModelEvaluator::unsetParameterList ( )

Definition at line 325 of file Thyra_EpetraModelEvaluator.cpp.

References paramList_.

RCP< const Teuchos::ParameterList > Thyra::EpetraModelEvaluator::getParameterList ( ) const

Definition at line 334 of file Thyra_EpetraModelEvaluator.cpp.

References paramList_.

RCP< const Teuchos::ParameterList > Thyra::EpetraModelEvaluator::getValidParameters ( ) const
int Thyra::EpetraModelEvaluator::Np ( ) const [virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 390 of file Thyra_EpetraModelEvaluator.cpp.

References p_space_.

Referenced by get_p_names(), and get_p_space().

int Thyra::EpetraModelEvaluator::Ng ( ) const [virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 396 of file Thyra_EpetraModelEvaluator.cpp.

References g_space_.

Referenced by get_g_space().

RCP< const VectorSpaceBase< double > > Thyra::EpetraModelEvaluator::get_x_space ( ) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 403 of file Thyra_EpetraModelEvaluator.cpp.

References x_space_.

Referenced by create_epetra_W_op().

RCP< const VectorSpaceBase< double > > Thyra::EpetraModelEvaluator::get_f_space ( ) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 410 of file Thyra_EpetraModelEvaluator.cpp.

References f_space_.

Referenced by create_epetra_W_op().

RCP< const VectorSpaceBase< double > > Thyra::EpetraModelEvaluator::get_p_space ( int  l) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 417 of file Thyra_EpetraModelEvaluator.cpp.

References Np(), and p_space_.

RCP< const Teuchos::Array< std::string > > Thyra::EpetraModelEvaluator::get_p_names ( int  l) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 427 of file Thyra_EpetraModelEvaluator.cpp.

References epetraModel_, and Np().

RCP< const VectorSpaceBase< double > > Thyra::EpetraModelEvaluator::get_g_space ( int  j) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 437 of file Thyra_EpetraModelEvaluator.cpp.

References g_space_, and Ng().

ModelEvaluatorBase::InArgs< double > Thyra::EpetraModelEvaluator::getNominalValues ( ) const [virtual]
ModelEvaluatorBase::InArgs< double > Thyra::EpetraModelEvaluator::getLowerBounds ( ) const [virtual]
ModelEvaluatorBase::InArgs< double > Thyra::EpetraModelEvaluator::getUpperBounds ( ) const [virtual]
RCP< LinearOpWithSolveBase< double > > Thyra::EpetraModelEvaluator::create_W ( ) const [virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 469 of file Thyra_EpetraModelEvaluator.cpp.

References W_factory_.

RCP< LinearOpBase< double > > Thyra::EpetraModelEvaluator::create_W_op ( ) const [virtual]

Implements Thyra::ModelEvaluator< double >.

Definition at line 484 of file Thyra_EpetraModelEvaluator.cpp.

References create_epetra_W_op().

RCP< const LinearOpWithSolveFactoryBase< double > > Thyra::EpetraModelEvaluator::get_W_factory ( ) const [virtual]

.

Implements Thyra::ModelEvaluator< double >.

Definition at line 491 of file Thyra_EpetraModelEvaluator.cpp.

References W_factory_.

ModelEvaluatorBase::InArgs< double > Thyra::EpetraModelEvaluator::createInArgs ( ) const [virtual]
void Thyra::EpetraModelEvaluator::reportFinalPoint ( const ModelEvaluatorBase::InArgs< double > &  finalPoint,
const bool  wasSolved 
) [virtual]
RCP< LinearOpBase< double > > Thyra::EpetraModelEvaluator::create_DfDp_op_impl ( int  l) const [private, virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 520 of file Thyra_EpetraModelEvaluator.cpp.

RCP< LinearOpBase< double > > Thyra::EpetraModelEvaluator::create_DgDx_dot_op_impl ( int  j) const [private, virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 528 of file Thyra_EpetraModelEvaluator.cpp.

RCP< LinearOpBase< double > > Thyra::EpetraModelEvaluator::create_DgDx_op_impl ( int  j) const [private, virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 536 of file Thyra_EpetraModelEvaluator.cpp.

RCP< LinearOpBase< double > > Thyra::EpetraModelEvaluator::create_DgDp_op_impl ( int  j,
int  l 
) const [private, virtual]

Reimplemented from Thyra::ModelEvaluatorDefaultBase< double >.

Definition at line 544 of file Thyra_EpetraModelEvaluator.cpp.

ModelEvaluatorBase::OutArgs< double > Thyra::EpetraModelEvaluator::createOutArgsImpl ( ) const [private, virtual]
void Thyra::EpetraModelEvaluator::evalModelImpl ( const ModelEvaluatorBase::InArgs< double > &  inArgs,
const ModelEvaluatorBase::OutArgs< double > &  outArgs 
) const [private, virtual]
void Thyra::EpetraModelEvaluator::convertInArgsFromEpetraToThyra ( const EpetraExt::ModelEvaluator::InArgs &  epetraInArgs,
ModelEvaluatorBase::InArgs< double > *  inArgs 
) const [private]
void Thyra::EpetraModelEvaluator::convertInArgsFromThyraToEpetra ( const ModelEvaluatorBase::InArgs< double > &  inArgs,
EpetraExt::ModelEvaluator::InArgs *  epetraInArgs 
) const [private]
void Thyra::EpetraModelEvaluator::convertOutArgsFromThyraToEpetra ( const ModelEvaluatorBase::OutArgs< double > &  outArgs,
EpetraExt::ModelEvaluator::OutArgs *  epetraUnscaledOutArgs,
RCP< LinearOpWithSolveBase< double > > *  W,
RCP< LinearOpBase< double > > *  W_op,
RCP< const LinearOpBase< double > > *  fwdW,
RCP< EpetraLinearOp > *  efwdW,
RCP< Epetra_Operator > *  eW 
) const [private]
void Thyra::EpetraModelEvaluator::preEvalScalingSetup ( EpetraExt::ModelEvaluator::InArgs *  epetraInArgs,
EpetraExt::ModelEvaluator::OutArgs *  epetraUnscaledOutArgs,
const RCP< Teuchos::FancyOStream > &  out,
const Teuchos::EVerbosityLevel  verbLevel 
) const [private]
void Thyra::EpetraModelEvaluator::postEvalScalingSetup ( const EpetraExt::ModelEvaluator::OutArgs &  epetraUnscaledOutArgs,
const RCP< Teuchos::FancyOStream > &  out,
const Teuchos::EVerbosityLevel  verbLevel 
) const [private]
void Thyra::EpetraModelEvaluator::finishConvertingOutArgsFromEpetraToThyra ( const EpetraExt::ModelEvaluator::OutArgs &  epetraOutArgs,
RCP< LinearOpWithSolveBase< double > > &  W,
RCP< LinearOpBase< double > > &  W_op,
RCP< const LinearOpBase< double > > &  fwdW,
RCP< EpetraLinearOp > &  efwdW,
RCP< Epetra_Operator > &  eW,
const ModelEvaluatorBase::OutArgs< double > &  outArgs 
) const [private]

Definition at line 1188 of file Thyra_EpetraModelEvaluator.cpp.

References W_factory_.

Referenced by evalModelImpl().

void Thyra::EpetraModelEvaluator::updateNominalValuesAndBounds ( ) const [private]
void Thyra::EpetraModelEvaluator::updateInArgsOutArgs ( ) const [private]

Definition at line 1297 of file Thyra_EpetraModelEvaluator.cpp.

References convert(), currentInArgsOutArgs_, description(), epetraModel_, Thyra::ModelEvaluatorBase::IN_ARG_alpha, Thyra::ModelEvaluatorBase::IN_ARG_beta, Thyra::ModelEvaluatorBase::IN_ARG_t, Thyra::ModelEvaluatorBase::IN_ARG_x, Thyra::ModelEvaluatorBase::IN_ARG_x_dot, Thyra::ModelEvaluatorBase::IN_ARG_x_dot_poly, Thyra::ModelEvaluatorBase::IN_ARG_x_poly, Thyra::ModelEvaluatorBase::OUT_ARG_DfDp, Thyra::ModelEvaluatorBase::OUT_ARG_DgDp, Thyra::ModelEvaluatorBase::OUT_ARG_DgDx, Thyra::ModelEvaluatorBase::OUT_ARG_DgDx_dot, Thyra::ModelEvaluatorBase::OUT_ARG_f, Thyra::ModelEvaluatorBase::OUT_ARG_f_poly, Thyra::ModelEvaluatorBase::OUT_ARG_W, Thyra::ModelEvaluatorBase::OUT_ARG_W_op, prototypeInArgs_, prototypeOutArgs_, Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DfDp_properties(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDp_properties(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDx_dot_properties(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_DgDx_properties(), Thyra::ModelEvaluatorBase::InArgsSetup< Scalar >::set_Np(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_Np_Ng(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::set_W_properties(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setModelEvalDescription(), Thyra::ModelEvaluatorBase::InArgsSetup< Scalar >::setModelEvalDescription(), Thyra::ModelEvaluatorBase::OutArgsSetup< Scalar >::setSupports(), Thyra::ModelEvaluatorBase::InArgsSetup< Scalar >::setSupports(), Thyra::ModelEvaluatorBase::InArgs< Scalar >::supports(), Thyra::ModelEvaluatorBase::OutArgs< Scalar >::supports(), and W_factory_.

Referenced by createInArgs(), and createOutArgsImpl().

RCP< EpetraLinearOp > Thyra::EpetraModelEvaluator::create_epetra_W_op ( ) const [private]

Friends And Related Function Documentation

RCP< EpetraModelEvaluator > epetraModelEvaluator ( const RCP< const EpetraExt::ModelEvaluator > &  epetraModel,
const RCP< LinearOpWithSolveFactoryBase< double > > &  W_factory 
) [related]

ModelEvaluatorBase::EDerivativeMultiVectorOrientation convert ( const EpetraExt::ModelEvaluator::EDerivativeMultiVectorOrientation &  mvOrientation) [related]
EpetraExt::ModelEvaluator::EDerivativeMultiVectorOrientation convert ( const ModelEvaluatorBase::EDerivativeMultiVectorOrientation mvOrientation) [related]

ModelEvaluatorBase::DerivativeProperties convert ( const EpetraExt::ModelEvaluator::DerivativeProperties &  derivativeProperties) [related]

ModelEvaluatorBase::DerivativeSupport convert ( const EpetraExt::ModelEvaluator::DerivativeSupport &  derivativeSupport) [related]

EpetraExt::ModelEvaluator::Derivative convert ( const ModelEvaluatorBase::Derivative< double > &  derivative,
const RCP< const Epetra_Map > &  fnc_map,
const RCP< const Epetra_Map > &  var_map 
) [related]


Member Data Documentation

RCP<const EpetraExt::ModelEvaluator> Thyra::EpetraModelEvaluator::epetraModel_ [private]
RCP<Teuchos::ParameterList> Thyra::EpetraModelEvaluator::paramList_ [private]
RCP<const Epetra_Map> Thyra::EpetraModelEvaluator::x_map_ [private]

Definition at line 358 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by convertOutArgsFromThyraToEpetra(), and initialize().

Definition at line 359 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by initialize().

Definition at line 360 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by initialize().

RCP<const Epetra_Map> Thyra::EpetraModelEvaluator::f_map_ [private]

Definition at line 361 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by convertOutArgsFromThyraToEpetra(), and initialize().

Definition at line 365 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by get_f_space(), and initialize().

Definition at line 366 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by get_g_space(), initialize(), and Ng().

Definition at line 369 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by getLowerBounds(), and updateNominalValuesAndBounds().

Definition at line 370 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by getUpperBounds(), and updateNominalValuesAndBounds().

Definition at line 373 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by getFinalPoint(), and reportFinalPoint().

RCP<const Epetra_Vector> Thyra::EpetraModelEvaluator::stateFunctionScalingVec_ [mutable, private]
RCP<const Epetra_Vector> Thyra::EpetraModelEvaluator::stateVariableScalingVec_ [private]
RCP<const Epetra_Vector> Thyra::EpetraModelEvaluator::invStateVariableScalingVec_ [mutable, private]
EpetraExt::ModelEvaluator::InArgs Thyra::EpetraModelEvaluator::epetraInArgsScaling_ [mutable, private]
EpetraExt::ModelEvaluator::OutArgs Thyra::EpetraModelEvaluator::epetraOutArgsScaling_ [mutable, private]

Definition at line 381 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by evalModelImpl(), initialize(), and postEvalScalingSetup().

RCP<Epetra_Vector> Thyra::EpetraModelEvaluator::x_unscaled_ [mutable, private]

Definition at line 383 of file Thyra_EpetraModelEvaluator.hpp.

RCP<Epetra_Vector> Thyra::EpetraModelEvaluator::x_dot_unscaled_ [mutable, private]

Definition at line 384 of file Thyra_EpetraModelEvaluator.hpp.

Definition at line 386 of file Thyra_EpetraModelEvaluator.hpp.

Referenced by createInArgs(), and updateInArgsOutArgs().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines