Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
Nonlinear, stochastic Galerkin ModelEvaluator that constructs an adapted Jacobian. More...
#include <Stokhos_SGModelEvaluator_Adaptive.hpp>
Overridden from EpetraExt::ModelEvaluator . | |
Teuchos::RCP< const Epetra_Map > | get_x_map () const |
Return solution vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_p_map (int l) const |
Return parameter 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< const Epetra_Map > | get_f_map () const |
Return residual vector map. More... | |
Teuchos::RCP< const Epetra_Map > | get_g_map (int l) const |
Return response map. 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... | |
Nonlinear, stochastic Galerkin ModelEvaluator that constructs an adapted Jacobian.
SGModelEvaluator_Adaptive is an implementation of EpetraExt::ModelEvaluator that generates a nonlinear problem from a stochastic Galerkin expansion, the Jacobian and solution vectors are interlaced. It wraps a supplied ModelEvaluator that supports the SG versions of p, x, and possibly x_dot InArgs, and f and W OutArgs, and translates those into a new nonlinear problem. It does so by concatenating all of the SG components of p, x, x_dot, and f into extended block vectors that form the parameters, solution vector, time derivative vector and residual for the new nonlinear problem. Only forming a fully-assembled SG matrix is possible. The W operator of the underlying model evaluator must be an Epetra_CrsMatrix.
Definition at line 82 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
Stokhos::SGModelEvaluator_Adaptive::SGModelEvaluator_Adaptive | ( | const Teuchos::RCP< EpetraExt::ModelEvaluator > & | me_, |
const Teuchos::RCP< Stokhos::AdaptivityManager > & | am, | ||
const Teuchos::RCP< const Stokhos::Quadrature< int, double > > & | sg_quad_, | ||
const Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > & | sg_exp_, | ||
const Teuchos::RCP< const Stokhos::ParallelData > & | sg_parallel_data_, | ||
bool | onlyUseLinear_, | ||
int | kExpOrder_, | ||
const Teuchos::RCP< Teuchos::ParameterList > & | params_ | ||
) |
Definition at line 56 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Stokhos::SGModelEvaluator_Adaptive::SGModelEvaluator_Adaptive | ( | const Teuchos::RCP< EpetraExt::ModelEvaluator > & | me, |
const Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > & | sg_master_basis, | ||
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > & | sg_row_dof_basis, | ||
const Teuchos::RCP< const Stokhos::Quadrature< int, double > > & | sg_quad, | ||
const Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > & | sg_exp, | ||
const Teuchos::RCP< const Stokhos::ParallelData > & | sg_parallel_data, | ||
bool | onlyUseLinear, | ||
int | kExpOrder, | ||
const Teuchos::RCP< Teuchos::ParameterList > & | params, | ||
bool | scaleOP = true |
||
) |
Definition at line 286 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_x_map | ( | ) | const |
Return solution vector map.
Definition at line 523 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_p_map | ( | int | l | ) | const |
Return parameter vector map.
Definition at line 535 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::SGModelEvaluator_Adaptive::get_p_names | ( | int | l | ) | const |
Return array of parameter names.
Definition at line 556 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Vector > Stokhos::SGModelEvaluator_Adaptive::get_x_init | ( | ) | const |
Return initial solution.
Definition at line 569 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Vector > Stokhos::SGModelEvaluator_Adaptive::get_p_init | ( | int | l | ) | const |
Return initial parameters.
Definition at line 579 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_f_map | ( | ) | const |
Return residual vector map.
Definition at line 529 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_g_map | ( | int | l | ) | const |
Return response map.
Definition at line 548 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
Teuchos::RCP< Epetra_Operator > Stokhos::SGModelEvaluator_Adaptive::create_W | ( | ) | const |
Create W = alpha*M + beta*J matrix.
Definition at line 592 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
EpetraExt::ModelEvaluator::InArgs Stokhos::SGModelEvaluator_Adaptive::createInArgs | ( | ) | const |
Create InArgs.
Definition at line 613 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
EpetraExt::ModelEvaluator::OutArgs Stokhos::SGModelEvaluator_Adaptive::createOutArgs | ( | ) | const |
Create OutArgs.
Definition at line 635 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
void Stokhos::SGModelEvaluator_Adaptive::evalModel | ( | const InArgs & | inArgs, |
const OutArgs & | outArgs | ||
) | const |
Evaluate model on InArgs.
Definition at line 668 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Set initial solution polynomial.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 940 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Return initial SG x.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 947 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Set initial parameter polynomial.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 953 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Return initial SG parameters.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 960 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Get indices of SG parameters.
These indices determine which parameter vectors support SG
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 966 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Get indices of SG responses.
These indices determine which response vectors support SG
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 972 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Get base maps of SG responses.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 978 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Return overlap stochastic map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 987 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Return x sg overlap map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 993 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Return x sg importer.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 999 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using x map and owned sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1005 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using x map and overlap sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1020 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using x map and owned sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1036 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using x map and overlap sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1052 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using p map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1070 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using f map and owned sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1092 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using f map and overlap sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1107 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create multi-vector orthog poly using f map and owned sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1123 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create multi-vector orthog poly using f map and overlap sg map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1141 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create vector orthog poly using g map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1159 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
virtual |
Create multi-vector orthog poly using g map.
Implements Stokhos::SGModelEvaluatorBase.
Definition at line 1183 of file Stokhos_SGModelEvaluator_Adaptive.cpp.
|
inline |
Definition at line 253 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Underlying model evaluator.
Definition at line 259 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Stochastic Galerkin basis.
Definition at line 262 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Definition at line 264 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Stochastic Galerkin quadrature.
Definition at line 267 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Stochastic Galerkin expansion.
Definition at line 270 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Algorithmic parameters.
Definition at line 273 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of stochastic blocks.
Definition at line 276 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of W stochastic blocks (may be smaller than num_sg_blocks)
Definition at line 279 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of p stochastic blocks (may be smaller than num_sg_blocks)
Definition at line 282 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Whether we support x (and thus f and W)
Definition at line 285 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Underlying unknown map.
Definition at line 288 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Underlying residual map.
Definition at line 291 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Parallel SG data.
Definition at line 294 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Parallel SG communicator.
Definition at line 297 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Epetra Cijk.
Definition at line 300 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Serial Epetra Cijk for dgdx*.
Definition at line 303 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Definition at line 305 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Map for stochastic blocks.
Definition at line 308 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Overlapped map for stochastic blocks (local map)
Definition at line 311 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Overlapped map for p stochastic blocks (local map)
Definition at line 314 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG unknown map.
Definition at line 317 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG overlapped unknown map.
Definition at line 320 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG residual map.
Definition at line 323 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG overlapped residual map.
Definition at line 326 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Adapted lock SG unknown map.
Definition at line 329 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Adapated block SG overlapped unknown map.
Definition at line 332 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Adapted block SG residual map.
Definition at line 335 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Adapted block SG overlapped residual map.
Definition at line 338 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Importer from SG to SG-overlapped maps.
Definition at line 341 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Exporter from SG-overlapped to SG maps.
Definition at line 344 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of parameter vectors of underlying model evaluator.
Definition at line 347 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of stochastic parameter vectors.
Definition at line 350 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Index map between block-p and p_sg maps.
Definition at line 353 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG parameter map.
Definition at line 356 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
SG coefficient parameter names.
Definition at line 359 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of response vectors of underlying model evaluator.
Definition at line 362 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Number of stochastic response vectors.
Definition at line 365 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Index map between block-g and g_sg maps.
Definition at line 368 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Block SG response map.
Definition at line 371 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
x_dot stochastic Galerkin components
Definition at line 374 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
x stochastic Galerkin components
Definition at line 377 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
f stochastic Galerkin components
Definition at line 380 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
W stochastic Galerkin components.
Definition at line 383 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
Definition at line 385 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
dg/dxdot stochastic Galerkin components
Definition at line 388 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
dg/dx stochastic Galerkin components
Definition at line 391 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
SG initial x.
Definition at line 394 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
SG initial p.
Definition at line 397 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Whether to always evaluate W with f.
Definition at line 400 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Definition at line 402 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Definition at line 403 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
W pointer for evaluating W with f.
Definition at line 406 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
x pointer for evaluating preconditioner
Definition at line 409 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
protected |
Definition at line 411 of file Stokhos_SGModelEvaluator_Adaptive.hpp.
|
mutableprotected |
Definition at line 413 of file Stokhos_SGModelEvaluator_Adaptive.hpp.