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::SGQuadMPModelEvaluator Class Reference

ModelEvaluator adaptor that implements the stochastic Galerkin residual and Jacobian computations using quadrature. More...

#include <Stokhos_SGQuadMPModelEvaluator.hpp>

Inherits ModelEvaluator.

Public Member Functions

 SGQuadMPModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::RCP< const EpetraExt::MultiComm > &mp_comm, const Teuchos::RCP< const Epetra_Map > &mp_block_map)
 

Protected Attributes

Teuchos::RCP
< EpetraExt::ModelEvaluator > 
me
 Underlying model evaluator. More...
 
Teuchos::RCP< const
EpetraExt::MultiComm > 
mp_comm
 Parallel MP communicator. More...
 
Teuchos::RCP< const Epetra_Mapmp_block_map
 Map for layout of parallel MP blocks. More...
 
Teuchos::RCP< const
Stokhos::Quadrature< int,
double > > 
sg_quad
 SG quadrature. More...
 
int num_p
 Number of parameter vectors. More...
 
int num_g
 Number of response vectors. More...
 
int num_p_mp
 Number of multipoint parameter vectors. More...
 
int num_g_mp
 Number of multipoint response vectors. More...
 
Teuchos::Array< int > mp_p_index_map
 Index map between block-p and p_mp maps. More...
 
Teuchos::Array< int > mp_g_index_map
 Index map between block-g and g_mp maps. More...
 
mp_vector_t x_dot_mp
 Time derivative vector. More...
 
mp_vector_t x_mp
 Solution vector. More...
 
Teuchos::Array< mp_vector_t > p_mp
 Parameter vectors. More...
 
mp_vector_t f_mp
 Residual vector. More...
 
mp_operator_t W_mp
 W operator. More...
 
Teuchos::Array< MPDerivative > dfdp_mp
 Residual derivatives. More...
 
Teuchos::Array< mp_vector_t > g_mp
 Response vectors. More...
 
Teuchos::Array< MPDerivative > dgdx_mp
 Response derivative. More...
 
Teuchos::Array< MPDerivative > dgdx_dot_mp
 Response derivative. More...
 
Teuchos::Array< Teuchos::Array
< MPDerivative > > 
dgdp_mp
 Response sensitivities. 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 observation vector 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_x_init () const
 Return initial solution. More...
 
Teuchos::RCP< const Epetra_Vectorget_p_init (int l) const
 Return initial parameters. More...
 
Teuchos::RCP< Epetra_Operatorcreate_W () const
 Create W = alpha*M + beta*J matrix. 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

ModelEvaluator adaptor that implements the stochastic Galerkin residual and Jacobian computations using quadrature.

This class provides a ModelEvaluator implementation to adapt a non-SG capable ModelEvaluator to one that can be used by Stokhos::SGModelEvaluator. It does so be implementing the SG residual and Jacobian calculations by sampling a multi-point ModelEvaluator at a set of quadrature points.

Definition at line 32 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Constructor & Destructor Documentation

Stokhos::SGQuadMPModelEvaluator::SGQuadMPModelEvaluator ( const Teuchos::RCP< EpetraExt::ModelEvaluator > &  me,
const Teuchos::RCP< const EpetraExt::MultiComm > &  mp_comm,
const Teuchos::RCP< const Epetra_Map > &  mp_block_map 
)

Definition at line 25 of file Stokhos_SGQuadMPModelEvaluator.cpp.

Member Function Documentation

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

Return solution vector map.

Definition at line 216 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return residual vector map.

Definition at line 223 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return parameter vector map.

Definition at line 230 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return observation vector map.

Definition at line 237 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return array of parameter names.

Definition at line 244 of file Stokhos_SGQuadMPModelEvaluator.cpp.

Teuchos::RCP< const Epetra_Vector > Stokhos::SGQuadMPModelEvaluator::get_x_init ( ) const

Return initial solution.

Definition at line 251 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return initial parameters.

Definition at line 258 of file Stokhos_SGQuadMPModelEvaluator.cpp.

Teuchos::RCP< Epetra_Operator > Stokhos::SGQuadMPModelEvaluator::create_W ( ) const

Create W = alpha*M + beta*J matrix.

Definition at line 265 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Create InArgs.

Definition at line 272 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Create OutArgs.

Definition at line 297 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Evaluate model on InArgs.

Definition at line 345 of file Stokhos_SGQuadMPModelEvaluator.cpp.

Member Data Documentation

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

Underlying model evaluator.

Definition at line 83 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::RCP<const EpetraExt::MultiComm> Stokhos::SGQuadMPModelEvaluator::mp_comm
protected

Parallel MP communicator.

Definition at line 86 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::RCP<const Epetra_Map> Stokhos::SGQuadMPModelEvaluator::mp_block_map
protected

Map for layout of parallel MP blocks.

Definition at line 89 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::RCP<const Stokhos::Quadrature<int,double> > Stokhos::SGQuadMPModelEvaluator::sg_quad
protected

SG quadrature.

Definition at line 92 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_p
protected

Number of parameter vectors.

Definition at line 95 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_g
protected

Number of response vectors.

Definition at line 98 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_p_mp
protected

Number of multipoint parameter vectors.

Definition at line 101 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_g_mp
protected

Number of multipoint response vectors.

Definition at line 104 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::SGQuadMPModelEvaluator::mp_p_index_map
protected

Index map between block-p and p_mp maps.

Definition at line 107 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<int> Stokhos::SGQuadMPModelEvaluator::mp_g_index_map
protected

Index map between block-g and g_mp maps.

Definition at line 110 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::x_dot_mp
protected

Time derivative vector.

Definition at line 113 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::x_mp
protected

Solution vector.

Definition at line 116 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<mp_vector_t> Stokhos::SGQuadMPModelEvaluator::p_mp
protected

Parameter vectors.

Definition at line 119 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::f_mp
protected

Residual vector.

Definition at line 122 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_operator_t Stokhos::SGQuadMPModelEvaluator::W_mp
protected

W operator.

Definition at line 125 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<MPDerivative> Stokhos::SGQuadMPModelEvaluator::dfdp_mp
protected

Residual derivatives.

Definition at line 128 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<mp_vector_t> Stokhos::SGQuadMPModelEvaluator::g_mp
protected

Response vectors.

Definition at line 131 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<MPDerivative> Stokhos::SGQuadMPModelEvaluator::dgdx_mp
protected

Response derivative.

Definition at line 134 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array<MPDerivative> Stokhos::SGQuadMPModelEvaluator::dgdx_dot_mp
protected

Response derivative.

Definition at line 137 of file Stokhos_SGQuadMPModelEvaluator.hpp.

Teuchos::Array< Teuchos::Array<MPDerivative> > Stokhos::SGQuadMPModelEvaluator::dgdp_mp
protected

Response sensitivities.

Definition at line 140 of file Stokhos_SGQuadMPModelEvaluator.hpp.


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