Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
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_Map > | mp_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_Map > | get_x_map () const |
Return solution vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_f_map () const |
Return residual vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_p_map (int l) const |
Return parameter vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_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_Vector > | get_x_init () const |
Return initial solution. More... | |
Teuchos::RCP< const Epetra_Vector > | get_p_init (int l) const |
Return initial parameters. More... | |
Teuchos::RCP< Epetra_Operator > | create_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... | |
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.
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.
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.
|
protected |
Underlying model evaluator.
Definition at line 115 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Parallel MP communicator.
Definition at line 118 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Map for layout of parallel MP blocks.
Definition at line 121 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
SG quadrature.
Definition at line 124 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of parameter vectors.
Definition at line 127 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of response vectors.
Definition at line 130 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of multipoint parameter vectors.
Definition at line 133 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of multipoint response vectors.
Definition at line 136 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Index map between block-p and p_mp maps.
Definition at line 139 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Index map between block-g and g_mp maps.
Definition at line 142 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Time derivative vector.
Definition at line 145 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Solution vector.
Definition at line 148 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Parameter vectors.
Definition at line 151 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Residual vector.
Definition at line 154 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
W operator.
Definition at line 157 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Residual derivatives.
Definition at line 160 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response vectors.
Definition at line 163 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 166 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 169 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response sensitivities.
Definition at line 172 of file Stokhos_SGQuadMPModelEvaluator.hpp.