Stokhos
Development
|
ModelEvaluator adaptor that implements the stochastic Galerkin residual and Jacobian computations using quadrature. More...
#include <Stokhos_SGQuadMPModelEvaluator.hpp>
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) | |
Overridden from EpetraExt::ModelEvaluator . | |
Teuchos::RCP< const Epetra_Map > | get_x_map () const |
Return solution vector map. | |
Teuchos::RCP< const Epetra_Map > | get_f_map () const |
Return residual vector map. | |
Teuchos::RCP< const Epetra_Map > | get_p_map (int l) const |
Return parameter vector map. | |
Teuchos::RCP< const Epetra_Map > | get_g_map (int l) const |
Return observation vector map. | |
Teuchos::RCP< const Teuchos::Array< std::string > > | get_p_names (int l) const |
Return array of parameter names. | |
Teuchos::RCP< const Epetra_Vector > | get_x_init () const |
Return initial solution. | |
Teuchos::RCP< const Epetra_Vector > | get_p_init (int l) const |
Return initial parameters. | |
Teuchos::RCP< Epetra_Operator > | create_W () const |
Create W = alpha*M + beta*J matrix. | |
InArgs | createInArgs () const |
Create InArgs. | |
OutArgs | createOutArgs () const |
Create OutArgs. | |
void | evalModel (const InArgs &inArgs, const OutArgs &outArgs) const |
Evaluate model on InArgs. | |
Protected Attributes | |
Teuchos::RCP < EpetraExt::ModelEvaluator > | me |
Underlying model evaluator. | |
Teuchos::RCP< const EpetraExt::MultiComm > | mp_comm |
Parallel MP communicator. | |
Teuchos::RCP< const Epetra_Map > | mp_block_map |
Map for layout of parallel MP blocks. | |
Teuchos::RCP< const Stokhos::Quadrature< int, double > > | sg_quad |
SG quadrature. | |
int | num_p |
Number of parameter vectors. | |
int | num_g |
Number of response vectors. | |
int | num_p_mp |
Number of multipoint parameter vectors. | |
int | num_g_mp |
Number of multipoint response vectors. | |
Teuchos::Array< int > | mp_p_index_map |
Index map between block-p and p_mp maps. | |
Teuchos::Array< int > | mp_g_index_map |
Index map between block-g and g_mp maps. | |
mp_vector_t | x_dot_mp |
Time derivative vector. | |
mp_vector_t | x_mp |
Solution vector. | |
Teuchos::Array< mp_vector_t > | p_mp |
Parameter vectors. | |
mp_vector_t | f_mp |
Residual vector. | |
mp_operator_t | W_mp |
W operator. | |
Teuchos::Array< MPDerivative > | dfdp_mp |
Residual derivatives. | |
Teuchos::Array< mp_vector_t > | g_mp |
Response vectors. | |
Teuchos::Array< MPDerivative > | dgdx_mp |
Response derivative. | |
Teuchos::Array< MPDerivative > | dgdx_dot_mp |
Response derivative. | |
Teuchos::Array< Teuchos::Array < MPDerivative > > | dgdp_mp |
Response sensitivities. | |
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.