Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
Stokhos::SGInverseModelEvaluator Class Reference

Nonlinear, inverse stochastic Galerkin ModelEvaluator. More...

#include <Stokhos_SGInverseModelEvaluator.hpp>

Inherits ModelEvaluator.

Public Member Functions

 SGInverseModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< int > &sg_p_index_map, const Teuchos::Array< int > &sg_g_index_map, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps)
 

Protected Attributes

Teuchos::RCP
< EpetraExt::ModelEvaluator > 
me
 Underlying model evaluator. More...
 
Teuchos::Array< int > sg_p_index_map
 Mapping between stochastic block parameters and sg parameters. More...
 
Teuchos::Array< int > sg_g_index_map
 Mapping between stochastic block responses and sg responses. More...
 
Teuchos::Array< Teuchos::RCP
< const Epetra_Map > > 
base_g_maps
 Base maps of block g vectors. More...
 
int num_p
 Number of parameters. More...
 
int num_g
 Number of responses. More...
 
int num_p_sg
 Number of stochastic parameter vectors. More...
 
int num_g_sg
 Number of stochastic response vectors. More...
 

Overridden from EpetraExt::ModelEvaluator .

Teuchos::RCP< const Epetra_Mapget_x_map () const
 Return solution vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_f_map () const
 Return residual vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_p_map (int l) const
 Return parameter vector map. More...
 
Teuchos::RCP< const Epetra_Mapget_g_map (int l) const
 Return response map. More...
 
Teuchos::RCP< const
Teuchos::Array< std::string > > 
get_p_names (int l) const
 Return array of parameter names. More...
 
Teuchos::RCP< const Epetra_Vectorget_p_init (int l) const
 Return initial parameters. More...
 
InArgs createInArgs () const
 Create InArgs. More...
 
OutArgs createOutArgs () const
 Create OutArgs. More...
 
void evalModel (const InArgs &inArgs, const OutArgs &outArgs) const
 Evaluate model on InArgs. More...
 

Detailed Description

Nonlinear, inverse stochastic Galerkin ModelEvaluator.

SGInverseModelEvaluator is an implementation of EpetraExt::ModelEvaluator that does the inverse of SGModelEvalutor, namely it takes SG versions of the p InArgs and g and dg/dp OutArgs, and converts them to block vectors that are passed to the underlying model evaluator. This allows block nonlinear problems to appear to SG problems.

Definition at line 59 of file Stokhos_SGInverseModelEvaluator.hpp.

Constructor & Destructor Documentation

Stokhos::SGInverseModelEvaluator::SGInverseModelEvaluator ( const Teuchos::RCP< EpetraExt::ModelEvaluator > &  me,
const Teuchos::Array< int > &  sg_p_index_map,
const Teuchos::Array< int > &  sg_g_index_map,
const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &  base_g_maps 
)

Definition at line 50 of file Stokhos_SGInverseModelEvaluator.cpp.

Member Function Documentation

Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_x_map ( ) const

Return solution vector map.

Definition at line 80 of file Stokhos_SGInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_f_map ( ) const

Return residual vector map.

Definition at line 87 of file Stokhos_SGInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_p_map ( int  l) const

Return parameter vector map.

Definition at line 94 of file Stokhos_SGInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_g_map ( int  l) const

Return response map.

Definition at line 105 of file Stokhos_SGInverseModelEvaluator.cpp.

Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::SGInverseModelEvaluator::get_p_names ( int  l) const

Return array of parameter names.

Definition at line 116 of file Stokhos_SGInverseModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::SGInverseModelEvaluator::get_p_init ( int  l) const

Return initial parameters.

Definition at line 127 of file Stokhos_SGInverseModelEvaluator.cpp.

EpetraExt::ModelEvaluator::InArgs Stokhos::SGInverseModelEvaluator::createInArgs ( ) const

Create InArgs.

Definition at line 137 of file Stokhos_SGInverseModelEvaluator.cpp.

EpetraExt::ModelEvaluator::OutArgs Stokhos::SGInverseModelEvaluator::createOutArgs ( ) const

Create OutArgs.

Definition at line 156 of file Stokhos_SGInverseModelEvaluator.cpp.

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

Evaluate model on InArgs.

Definition at line 175 of file Stokhos_SGInverseModelEvaluator.cpp.

Member Data Documentation

Teuchos::RCP<EpetraExt::ModelEvaluator> Stokhos::SGInverseModelEvaluator::me
protected

Underlying model evaluator.

Definition at line 105 of file Stokhos_SGInverseModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::SGInverseModelEvaluator::sg_p_index_map
protected

Mapping between stochastic block parameters and sg parameters.

Definition at line 108 of file Stokhos_SGInverseModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::SGInverseModelEvaluator::sg_g_index_map
protected

Mapping between stochastic block responses and sg responses.

Definition at line 111 of file Stokhos_SGInverseModelEvaluator.hpp.

Teuchos::Array< Teuchos::RCP<const Epetra_Map> > Stokhos::SGInverseModelEvaluator::base_g_maps
protected

Base maps of block g vectors.

Definition at line 114 of file Stokhos_SGInverseModelEvaluator.hpp.

int Stokhos::SGInverseModelEvaluator::num_p
protected

Number of parameters.

Definition at line 117 of file Stokhos_SGInverseModelEvaluator.hpp.

int Stokhos::SGInverseModelEvaluator::num_g
protected

Number of responses.

Definition at line 120 of file Stokhos_SGInverseModelEvaluator.hpp.

int Stokhos::SGInverseModelEvaluator::num_p_sg
protected

Number of stochastic parameter vectors.

Definition at line 123 of file Stokhos_SGInverseModelEvaluator.hpp.

int Stokhos::SGInverseModelEvaluator::num_g_sg
protected

Number of stochastic response vectors.

Definition at line 126 of file Stokhos_SGInverseModelEvaluator.hpp.


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