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< intmp_p_index_map
 Index map between block-p and p_mp maps. More...
 
Teuchos::Array< intmp_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 64 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 57 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 248 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return residual vector map.

Definition at line 255 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 262 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 269 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 276 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return initial solution.

Definition at line 283 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Return initial parameters.

Definition at line 290 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

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

Definition at line 297 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Create InArgs.

Definition at line 304 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Create OutArgs.

Definition at line 329 of file Stokhos_SGQuadMPModelEvaluator.cpp.

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

Evaluate model on InArgs.

Definition at line 377 of file Stokhos_SGQuadMPModelEvaluator.cpp.

Member Data Documentation

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

Underlying model evaluator.

Definition at line 115 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Parallel MP communicator.

Definition at line 118 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 121 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

SG quadrature.

Definition at line 124 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_p
protected

Number of parameter vectors.

Definition at line 127 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_g
protected

Number of response vectors.

Definition at line 130 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_p_mp
protected

Number of multipoint parameter vectors.

Definition at line 133 of file Stokhos_SGQuadMPModelEvaluator.hpp.

int Stokhos::SGQuadMPModelEvaluator::num_g_mp
protected

Number of multipoint response vectors.

Definition at line 136 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 139 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 142 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::x_dot_mp
protected

Time derivative vector.

Definition at line 145 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::x_mp
protected

Solution vector.

Definition at line 148 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Parameter vectors.

Definition at line 151 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_vector_t Stokhos::SGQuadMPModelEvaluator::f_mp
protected

Residual vector.

Definition at line 154 of file Stokhos_SGQuadMPModelEvaluator.hpp.

mp_operator_t Stokhos::SGQuadMPModelEvaluator::W_mp
protected

W operator.

Definition at line 157 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Residual derivatives.

Definition at line 160 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Response vectors.

Definition at line 163 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Response derivative.

Definition at line 166 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Response derivative.

Definition at line 169 of file Stokhos_SGQuadMPModelEvaluator.hpp.

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

Response sensitivities.

Definition at line 172 of file Stokhos_SGQuadMPModelEvaluator.hpp.


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