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 32 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 25 of file Stokhos_SGQuadMPModelEvaluator.cpp.
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.
|
protected |
Underlying model evaluator.
Definition at line 83 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Parallel MP communicator.
Definition at line 86 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Map for layout of parallel MP blocks.
Definition at line 89 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
SG quadrature.
Definition at line 92 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of parameter vectors.
Definition at line 95 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of response vectors.
Definition at line 98 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of multipoint parameter vectors.
Definition at line 101 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Number of multipoint response vectors.
Definition at line 104 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Index map between block-p and p_mp maps.
Definition at line 107 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Index map between block-g and g_mp maps.
Definition at line 110 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Time derivative vector.
Definition at line 113 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Solution vector.
Definition at line 116 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Parameter vectors.
Definition at line 119 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Residual vector.
Definition at line 122 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
W operator.
Definition at line 125 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Residual derivatives.
Definition at line 128 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response vectors.
Definition at line 131 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 134 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response derivative.
Definition at line 137 of file Stokhos_SGQuadMPModelEvaluator.hpp.
|
protected |
Response sensitivities.
Definition at line 140 of file Stokhos_SGQuadMPModelEvaluator.hpp.