Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Nonlinear, inverse stochastic Galerkin ModelEvaluator. More...
#include <Stokhos_SGInverseModelEvaluator.hpp>
Inherits ModelEvaluator.
Public Member Functions | |
SGInverseModelEvaluator (const Teuchos::RCP< EpetraExt::ModelEvaluator > &me, const Teuchos::Array< int > &sg_p_index_map, const Teuchos::Array< int > &sg_g_index_map, const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > &base_g_maps) | |
Protected Attributes | |
Teuchos::RCP < EpetraExt::ModelEvaluator > | me |
Underlying model evaluator. More... | |
Teuchos::Array< int > | sg_p_index_map |
Mapping between stochastic block parameters and sg parameters. More... | |
Teuchos::Array< int > | sg_g_index_map |
Mapping between stochastic block responses and sg responses. More... | |
Teuchos::Array< Teuchos::RCP < const Epetra_Map > > | base_g_maps |
Base maps of block g vectors. More... | |
int | num_p |
Number of parameters. More... | |
int | num_g |
Number of responses. More... | |
int | num_p_sg |
Number of stochastic parameter vectors. More... | |
int | num_g_sg |
Number of stochastic response vectors. 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 response 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_p_init (int l) const |
Return initial parameters. 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... | |
Nonlinear, inverse stochastic Galerkin ModelEvaluator.
SGInverseModelEvaluator is an implementation of EpetraExt::ModelEvaluator that does the inverse of SGModelEvalutor, namely it takes SG versions of the p InArgs and g and dg/dp OutArgs, and converts them to block vectors that are passed to the underlying model evaluator. This allows block nonlinear problems to appear to SG problems.
Definition at line 27 of file Stokhos_SGInverseModelEvaluator.hpp.
Stokhos::SGInverseModelEvaluator::SGInverseModelEvaluator | ( | const Teuchos::RCP< EpetraExt::ModelEvaluator > & | me, |
const Teuchos::Array< int > & | sg_p_index_map, | ||
const Teuchos::Array< int > & | sg_g_index_map, | ||
const Teuchos::Array< Teuchos::RCP< const Epetra_Map > > & | base_g_maps | ||
) |
Definition at line 18 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_x_map | ( | ) | const |
Return solution vector map.
Definition at line 48 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_f_map | ( | ) | const |
Return residual vector map.
Definition at line 55 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_p_map | ( | int | l | ) | const |
Return parameter vector map.
Definition at line 62 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGInverseModelEvaluator::get_g_map | ( | int | l | ) | const |
Return response map.
Definition at line 73 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::SGInverseModelEvaluator::get_p_names | ( | int | l | ) | const |
Return array of parameter names.
Definition at line 84 of file Stokhos_SGInverseModelEvaluator.cpp.
Teuchos::RCP< const Epetra_Vector > Stokhos::SGInverseModelEvaluator::get_p_init | ( | int | l | ) | const |
Return initial parameters.
Definition at line 95 of file Stokhos_SGInverseModelEvaluator.cpp.
EpetraExt::ModelEvaluator::InArgs Stokhos::SGInverseModelEvaluator::createInArgs | ( | ) | const |
Create InArgs.
Definition at line 105 of file Stokhos_SGInverseModelEvaluator.cpp.
EpetraExt::ModelEvaluator::OutArgs Stokhos::SGInverseModelEvaluator::createOutArgs | ( | ) | const |
Create OutArgs.
Definition at line 124 of file Stokhos_SGInverseModelEvaluator.cpp.
void Stokhos::SGInverseModelEvaluator::evalModel | ( | const InArgs & | inArgs, |
const OutArgs & | outArgs | ||
) | const |
Evaluate model on InArgs.
Definition at line 143 of file Stokhos_SGInverseModelEvaluator.cpp.
|
protected |
Underlying model evaluator.
Definition at line 73 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Mapping between stochastic block parameters and sg parameters.
Definition at line 76 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Mapping between stochastic block responses and sg responses.
Definition at line 79 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Base maps of block g vectors.
Definition at line 82 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Number of parameters.
Definition at line 85 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Number of responses.
Definition at line 88 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Number of stochastic parameter vectors.
Definition at line 91 of file Stokhos_SGInverseModelEvaluator.hpp.
|
protected |
Number of stochastic response vectors.
Definition at line 94 of file Stokhos_SGInverseModelEvaluator.hpp.