Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
Public Member Functions | Protected Attributes | List of all members
Stokhos::SGModelEvaluator_Adaptive Class Reference

Nonlinear, stochastic Galerkin ModelEvaluator that constructs an adapted Jacobian. More...

#include <Stokhos_SGModelEvaluator_Adaptive.hpp>

Inherits ModelEvaluator.

Public Member Functions

 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_)
 
 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)
 
void set_x_sg_init (const Stokhos::EpetraVectorOrthogPoly &x_sg_in)
 Set initial solution polynomial. More...
 
Teuchos::RCP< const Stokhos::EpetraVectorOrthogPolyget_x_sg_init () const
 Return initial SG x. More...
 
void set_p_sg_init (int i, const Stokhos::EpetraVectorOrthogPoly &p_sg_in)
 Set initial parameter polynomial. More...
 
Teuchos::RCP< const Stokhos::EpetraVectorOrthogPolyget_p_sg_init (int l) const
 Return initial SG parameters. More...
 
Teuchos::Array< intget_p_sg_map_indices () const
 Get indices of SG parameters. More...
 
Teuchos::Array< intget_g_sg_map_indices () const
 Get indices of SG responses. More...
 
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > get_g_sg_base_maps () const
 Get base maps of SG responses. More...
 
Teuchos::RCP< const Epetra_BlockMap > get_overlap_stochastic_map () const
 Return overlap stochastic map. More...
 
Teuchos::RCP< const Epetra_BlockMap > get_x_sg_overlap_map () const
 Return x sg overlap map. More...
 
Teuchos::RCP< const Epetra_Import > get_x_sg_importer () const
 Return x sg importer. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_x_sg () const
 Create vector orthog poly using x map and owned sg map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_x_sg_overlap () const
 Create vector orthog poly using x map and overlap sg map. More...
 
Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPolycreate_x_mv_sg (int num_vecs) const
 Create vector orthog poly using x map and owned sg map. More...
 
Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPolycreate_x_mv_sg_overlap (int num_vecs) const
 Create vector orthog poly using x map and overlap sg map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_p_sg (int l, Epetra_DataAccess CV=Copy, const Epetra_Vector *v=0) const
 Create vector orthog poly using p map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_f_sg () const
 Create vector orthog poly using f map and owned sg map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_f_sg_overlap () const
 Create vector orthog poly using f map and overlap sg map. More...
 
Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPolycreate_f_mv_sg (int num_vecs) const
 Create multi-vector orthog poly using f map and owned sg map. More...
 
Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPolycreate_f_mv_sg_overlap (int num_vecs) const
 Create multi-vector orthog poly using f map and overlap sg map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolycreate_g_sg (int l, Epetra_DataAccess CV=Copy, const Epetra_Vector *v=NULL) const
 Create vector orthog poly using g map. More...
 
Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPolycreate_g_mv_sg (int l, int num_vecs, Epetra_DataAccess CV=Copy, const Epetra_MultiVector *v=NULL) const
 Create multi-vector orthog poly using g map. More...
 
Teuchos::RCP< const Stokhos::AdaptivityManagergetAdaptivityManager () const
 

Protected Attributes

Teuchos::RCP< EpetraExt::ModelEvaluator > me
 Underlying model evaluator. More...
 
Teuchos::RCP< const Stokhos::OrthogPolyBasis< int, double > > sg_basis
 Stochastic Galerkin basis. More...
 
std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > sg_row_dof_basis
 
Teuchos::RCP< const Stokhos::Quadrature< int, double > > sg_quad
 Stochastic Galerkin quadrature. More...
 
Teuchos::RCP< Stokhos::OrthogPolyExpansion< int, double > > sg_exp
 Stochastic Galerkin expansion. More...
 
Teuchos::RCP< Teuchos::ParameterList > params
 Algorithmic parameters. More...
 
unsigned int num_sg_blocks
 Number of stochastic blocks. More...
 
unsigned int num_W_blocks
 Number of W stochastic blocks (may be smaller than num_sg_blocks) More...
 
unsigned int num_p_blocks
 Number of p stochastic blocks (may be smaller than num_sg_blocks) More...
 
bool supports_x
 Whether we support x (and thus f and W) More...
 
Teuchos::RCP< const Epetra_Map > x_map
 Underlying unknown map. More...
 
Teuchos::RCP< const Epetra_Map > f_map
 Underlying residual map. More...
 
Teuchos::RCP< const Stokhos::ParallelDatasg_parallel_data
 Parallel SG data. More...
 
Teuchos::RCP< const EpetraExt::MultiComm > sg_comm
 Parallel SG communicator. More...
 
Teuchos::RCP< const Stokhos::EpetraSparse3TensorepetraCijk
 Epetra Cijk. More...
 
Teuchos::RCP< const Stokhos::EpetraSparse3TensorserialCijk
 Serial Epetra Cijk for dgdx*. More...
 
Teuchos::RCP< const Stokhos::Sparse3Tensor< int, double > > Cijk
 
Teuchos::RCP< const Epetra_BlockMap > stoch_row_map
 Map for stochastic blocks. More...
 
Teuchos::RCP< const Epetra_BlockMap > overlapped_stoch_row_map
 Overlapped map for stochastic blocks (local map) More...
 
Teuchos::RCP< const Epetra_BlockMap > overlapped_stoch_p_map
 Overlapped map for p stochastic blocks (local map) More...
 
Teuchos::RCP< const Epetra_Map > adapted_x_map
 Block SG unknown map. More...
 
Teuchos::RCP< const Epetra_Map > adapted_overlapped_x_map
 Block SG overlapped unknown map. More...
 
Teuchos::RCP< const Epetra_Map > adapted_f_map
 Block SG residual map. More...
 
Teuchos::RCP< const Epetra_Map > adapted_overlapped_f_map
 Block SG overlapped residual map. More...
 
Teuchos::RCP< Epetra_Import > adapted_overlapped_x_importer
 Importer from SG to SG-overlapped maps. More...
 
Teuchos::RCP< Epetra_Export > adapted_overlapped_f_exporter
 Exporter from SG-overlapped to SG maps. More...
 
int num_p
 Number of parameter vectors of underlying model evaluator. More...
 
int num_p_sg
 Number of stochastic parameter vectors. More...
 
Teuchos::Array< intsg_p_index_map
 Index map between block-p and p_sg maps. More...
 
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > sg_p_map
 Block SG parameter map. More...
 
Teuchos::Array< Teuchos::RCP< Teuchos::Array< std::string > > > sg_p_names
 SG coefficient parameter names. More...
 
int num_g
 Number of response vectors of underlying model evaluator. More...
 
int num_g_sg
 Number of stochastic response vectors. More...
 
Teuchos::Array< intsg_g_index_map
 Index map between block-g and g_sg maps. More...
 
Teuchos::Array< Teuchos::RCP< const Epetra_Map > > sg_g_map
 Block SG response map. More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolyx_dot_sg_blocks
 x_dot stochastic Galerkin components More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolyx_sg_blocks
 x stochastic Galerkin components More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolyf_sg_blocks
 f stochastic Galerkin components More...
 
Teuchos::RCP< Stokhos::EpetraOperatorOrthogPolyW_sg_blocks
 W stochastic Galerkin components. More...
 
Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > dfdp_sg_blocks
 
Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > dgdx_dot_sg_blocks
 dg/dxdot stochastic Galerkin components More...
 
Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > dgdx_sg_blocks
 dg/dx stochastic Galerkin components More...
 
Teuchos::RCP< Stokhos::EpetraVectorOrthogPolysg_x_init
 SG initial x. More...
 
Teuchos::Array< Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > > sg_p_init
 SG initial p. More...
 
bool eval_W_with_f
 Whether to always evaluate W with f. More...
 
int kExpOrder
 
bool onlyUseLinear
 
Teuchos::RCP< Epetra_CrsMatrix > my_W
 W pointer for evaluating W with f. More...
 
Teuchos::RCP< Epetra_Vector > my_x
 x pointer for evaluating preconditioner More...
 
bool scaleOP
 
Teuchos::RCP< Stokhos::AdaptivityManageradaptMngr
 

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...
 

Detailed Description

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 81 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

Constructor & Destructor Documentation

◆ SGModelEvaluator_Adaptive() [1/2]

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.

◆ SGModelEvaluator_Adaptive() [2/2]

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 271 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

Member Function Documentation

◆ get_x_map()

Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_x_map ( ) const

Return solution vector map.

Definition at line 493 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_p_map()

Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_p_map ( int  l) const

Return parameter vector map.

Definition at line 505 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_p_names()

Teuchos::RCP< const Teuchos::Array< std::string > > Stokhos::SGModelEvaluator_Adaptive::get_p_names ( int  l) const

Return array of parameter names.

Definition at line 526 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_x_init()

Teuchos::RCP< const Epetra_Vector > Stokhos::SGModelEvaluator_Adaptive::get_x_init ( ) const

Return initial solution.

Definition at line 539 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_p_init()

Teuchos::RCP< const Epetra_Vector > Stokhos::SGModelEvaluator_Adaptive::get_p_init ( int  l) const

Return initial parameters.

Definition at line 549 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_f_map()

Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_f_map ( ) const

Return residual vector map.

Definition at line 499 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_g_map()

Teuchos::RCP< const Epetra_Map > Stokhos::SGModelEvaluator_Adaptive::get_g_map ( int  l) const

Return response map.

Definition at line 518 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_W()

Teuchos::RCP< Epetra_Operator > Stokhos::SGModelEvaluator_Adaptive::create_W ( ) const

Create W = alpha*M + beta*J matrix.

Definition at line 562 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ createInArgs()

EpetraExt::ModelEvaluator::InArgs Stokhos::SGModelEvaluator_Adaptive::createInArgs ( ) const

Create InArgs.

Definition at line 583 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ createOutArgs()

EpetraExt::ModelEvaluator::OutArgs Stokhos::SGModelEvaluator_Adaptive::createOutArgs ( ) const

Create OutArgs.

Definition at line 605 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ evalModel()

void Stokhos::SGModelEvaluator_Adaptive::evalModel ( const InArgs &  inArgs,
const OutArgs &  outArgs 
) const

Evaluate model on InArgs.

Definition at line 636 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ set_x_sg_init()

void Stokhos::SGModelEvaluator_Adaptive::set_x_sg_init ( const Stokhos::EpetraVectorOrthogPoly x_sg_in)

Set initial solution polynomial.

Definition at line 908 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_x_sg_init()

Teuchos::RCP< const Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::get_x_sg_init ( ) const

Return initial SG x.

Definition at line 915 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ set_p_sg_init()

void Stokhos::SGModelEvaluator_Adaptive::set_p_sg_init ( int  i,
const Stokhos::EpetraVectorOrthogPoly p_sg_in 
)

Set initial parameter polynomial.

Definition at line 921 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_p_sg_init()

Teuchos::RCP< const Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::get_p_sg_init ( int  l) const

Return initial SG parameters.

Definition at line 928 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_p_sg_map_indices()

Teuchos::Array< int > Stokhos::SGModelEvaluator_Adaptive::get_p_sg_map_indices ( ) const

Get indices of SG parameters.

These indices determine which parameter vectors support SG

Definition at line 934 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_g_sg_map_indices()

Teuchos::Array< int > Stokhos::SGModelEvaluator_Adaptive::get_g_sg_map_indices ( ) const

Get indices of SG responses.

These indices determine which response vectors support SG

Definition at line 940 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_g_sg_base_maps()

Teuchos::Array< Teuchos::RCP< const Epetra_Map > > Stokhos::SGModelEvaluator_Adaptive::get_g_sg_base_maps ( ) const

Get base maps of SG responses.

Definition at line 946 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_overlap_stochastic_map()

Teuchos::RCP< const Epetra_BlockMap > Stokhos::SGModelEvaluator_Adaptive::get_overlap_stochastic_map ( ) const

Return overlap stochastic map.

Definition at line 955 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_x_sg_overlap_map()

Teuchos::RCP< const Epetra_BlockMap > Stokhos::SGModelEvaluator_Adaptive::get_x_sg_overlap_map ( ) const

Return x sg overlap map.

Definition at line 961 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ get_x_sg_importer()

Teuchos::RCP< const Epetra_Import > Stokhos::SGModelEvaluator_Adaptive::get_x_sg_importer ( ) const

Return x sg importer.

Definition at line 967 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_x_sg()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_x_sg ( ) const

Create vector orthog poly using x map and owned sg map.

Definition at line 973 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_x_sg_overlap()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_x_sg_overlap ( ) const

Create vector orthog poly using x map and overlap sg map.

Definition at line 982 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_x_mv_sg()

Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_x_mv_sg ( int  num_vecs) const

Create vector orthog poly using x map and owned sg map.

Definition at line 988 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_x_mv_sg_overlap()

Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_x_mv_sg_overlap ( int  num_vecs) const

Create vector orthog poly using x map and overlap sg map.

Definition at line 997 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_p_sg()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_p_sg ( int  l,
Epetra_DataAccess  CV = Copy,
const Epetra_Vector *  v = 0 
) const

Create vector orthog poly using p map.

Definition at line 1004 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_f_sg()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_f_sg ( ) const

Create vector orthog poly using f map and owned sg map.

Definition at line 1026 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_f_sg_overlap()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_f_sg_overlap ( ) const

Create vector orthog poly using f map and overlap sg map.

Definition at line 1035 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_f_mv_sg()

Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_f_mv_sg ( int  num_vecs) const

Create multi-vector orthog poly using f map and owned sg map.

Definition at line 1041 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_f_mv_sg_overlap()

Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_f_mv_sg_overlap ( int  num_vecs) const

Create multi-vector orthog poly using f map and overlap sg map.

Definition at line 1051 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_g_sg()

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_g_sg ( int  l,
Epetra_DataAccess  CV = Copy,
const Epetra_Vector *  v = NULL 
) const

Create vector orthog poly using g map.

Definition at line 1058 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ create_g_mv_sg()

Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::create_g_mv_sg ( int  l,
int  num_vecs,
Epetra_DataAccess  CV = Copy,
const Epetra_MultiVector *  v = NULL 
) const

Create multi-vector orthog poly using g map.

Definition at line 1082 of file Stokhos_SGModelEvaluator_Adaptive.cpp.

◆ getAdaptivityManager()

Teuchos::RCP<const Stokhos::AdaptivityManager> Stokhos::SGModelEvaluator_Adaptive::getAdaptivityManager ( ) const
inline

Definition at line 236 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

Member Data Documentation

◆ me

Teuchos::RCP<EpetraExt::ModelEvaluator> Stokhos::SGModelEvaluator_Adaptive::me
protected

Underlying model evaluator.

Definition at line 242 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_basis

Teuchos::RCP<const Stokhos::OrthogPolyBasis<int, double> > Stokhos::SGModelEvaluator_Adaptive::sg_basis
protected

Stochastic Galerkin basis.

Definition at line 245 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_row_dof_basis

std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > Stokhos::SGModelEvaluator_Adaptive::sg_row_dof_basis
protected

Definition at line 247 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_quad

Teuchos::RCP<const Stokhos::Quadrature<int,double> > Stokhos::SGModelEvaluator_Adaptive::sg_quad
protected

Stochastic Galerkin quadrature.

Definition at line 250 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_exp

Teuchos::RCP<Stokhos::OrthogPolyExpansion<int,double> > Stokhos::SGModelEvaluator_Adaptive::sg_exp
protected

Stochastic Galerkin expansion.

Definition at line 253 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ params

Teuchos::RCP<Teuchos::ParameterList> Stokhos::SGModelEvaluator_Adaptive::params
protected

Algorithmic parameters.

Definition at line 256 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_sg_blocks

unsigned int Stokhos::SGModelEvaluator_Adaptive::num_sg_blocks
protected

Number of stochastic blocks.

Definition at line 259 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_W_blocks

unsigned int Stokhos::SGModelEvaluator_Adaptive::num_W_blocks
protected

Number of W stochastic blocks (may be smaller than num_sg_blocks)

Definition at line 262 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_p_blocks

unsigned int Stokhos::SGModelEvaluator_Adaptive::num_p_blocks
protected

Number of p stochastic blocks (may be smaller than num_sg_blocks)

Definition at line 265 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ supports_x

bool Stokhos::SGModelEvaluator_Adaptive::supports_x
protected

Whether we support x (and thus f and W)

Definition at line 268 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ x_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::x_map
protected

Underlying unknown map.

Definition at line 271 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ f_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::f_map
protected

Underlying residual map.

Definition at line 274 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_parallel_data

Teuchos::RCP<const Stokhos::ParallelData> Stokhos::SGModelEvaluator_Adaptive::sg_parallel_data
protected

Parallel SG data.

Definition at line 277 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_comm

Teuchos::RCP<const EpetraExt::MultiComm> Stokhos::SGModelEvaluator_Adaptive::sg_comm
protected

Parallel SG communicator.

Definition at line 280 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ epetraCijk

Teuchos::RCP<const Stokhos::EpetraSparse3Tensor> Stokhos::SGModelEvaluator_Adaptive::epetraCijk
protected

Epetra Cijk.

Definition at line 283 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ serialCijk

Teuchos::RCP<const Stokhos::EpetraSparse3Tensor> Stokhos::SGModelEvaluator_Adaptive::serialCijk
protected

Serial Epetra Cijk for dgdx*.

Definition at line 286 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ Cijk

Teuchos::RCP<const Stokhos::Sparse3Tensor<int,double> > Stokhos::SGModelEvaluator_Adaptive::Cijk
protected

Definition at line 288 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ stoch_row_map

Teuchos::RCP<const Epetra_BlockMap> Stokhos::SGModelEvaluator_Adaptive::stoch_row_map
protected

Map for stochastic blocks.

Definition at line 291 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ overlapped_stoch_row_map

Teuchos::RCP<const Epetra_BlockMap> Stokhos::SGModelEvaluator_Adaptive::overlapped_stoch_row_map
protected

Overlapped map for stochastic blocks (local map)

Definition at line 294 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ overlapped_stoch_p_map

Teuchos::RCP<const Epetra_BlockMap> Stokhos::SGModelEvaluator_Adaptive::overlapped_stoch_p_map
protected

Overlapped map for p stochastic blocks (local map)

Definition at line 297 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_x_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::adapted_x_map
protected

Block SG unknown map.

Definition at line 300 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_overlapped_x_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::adapted_overlapped_x_map
protected

Block SG overlapped unknown map.

Definition at line 303 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_f_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::adapted_f_map
protected

Block SG residual map.

Definition at line 306 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_overlapped_f_map

Teuchos::RCP<const Epetra_Map> Stokhos::SGModelEvaluator_Adaptive::adapted_overlapped_f_map
protected

Block SG overlapped residual map.

Definition at line 309 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_overlapped_x_importer

Teuchos::RCP<Epetra_Import> Stokhos::SGModelEvaluator_Adaptive::adapted_overlapped_x_importer
protected

Importer from SG to SG-overlapped maps.

Definition at line 312 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adapted_overlapped_f_exporter

Teuchos::RCP<Epetra_Export> Stokhos::SGModelEvaluator_Adaptive::adapted_overlapped_f_exporter
protected

Exporter from SG-overlapped to SG maps.

Definition at line 315 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_p

int Stokhos::SGModelEvaluator_Adaptive::num_p
protected

Number of parameter vectors of underlying model evaluator.

Definition at line 318 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_p_sg

int Stokhos::SGModelEvaluator_Adaptive::num_p_sg
protected

Number of stochastic parameter vectors.

Definition at line 321 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_p_index_map

Teuchos::Array<int> Stokhos::SGModelEvaluator_Adaptive::sg_p_index_map
protected

Index map between block-p and p_sg maps.

Definition at line 324 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_p_map

Teuchos::Array< Teuchos::RCP<const Epetra_Map> > Stokhos::SGModelEvaluator_Adaptive::sg_p_map
protected

Block SG parameter map.

Definition at line 327 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_p_names

Teuchos::Array< Teuchos::RCP< Teuchos::Array<std::string> > > Stokhos::SGModelEvaluator_Adaptive::sg_p_names
protected

SG coefficient parameter names.

Definition at line 330 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_g

int Stokhos::SGModelEvaluator_Adaptive::num_g
protected

Number of response vectors of underlying model evaluator.

Definition at line 333 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ num_g_sg

int Stokhos::SGModelEvaluator_Adaptive::num_g_sg
protected

Number of stochastic response vectors.

Definition at line 336 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_g_index_map

Teuchos::Array<int> Stokhos::SGModelEvaluator_Adaptive::sg_g_index_map
protected

Index map between block-g and g_sg maps.

Definition at line 339 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_g_map

Teuchos::Array< Teuchos::RCP<const Epetra_Map> > Stokhos::SGModelEvaluator_Adaptive::sg_g_map
protected

Block SG response map.

Definition at line 342 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ x_dot_sg_blocks

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::x_dot_sg_blocks
protected

x_dot stochastic Galerkin components

Definition at line 345 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ x_sg_blocks

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::x_sg_blocks
protected

x stochastic Galerkin components

Definition at line 348 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ f_sg_blocks

Teuchos::RCP< Stokhos::EpetraVectorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::f_sg_blocks
mutableprotected

f stochastic Galerkin components

Definition at line 351 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ W_sg_blocks

Teuchos::RCP< Stokhos::EpetraOperatorOrthogPoly > Stokhos::SGModelEvaluator_Adaptive::W_sg_blocks
mutableprotected

W stochastic Galerkin components.

Definition at line 354 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ dfdp_sg_blocks

Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > Stokhos::SGModelEvaluator_Adaptive::dfdp_sg_blocks
mutableprotected

Definition at line 356 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ dgdx_dot_sg_blocks

Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > Stokhos::SGModelEvaluator_Adaptive::dgdx_dot_sg_blocks
mutableprotected

dg/dxdot stochastic Galerkin components

Definition at line 359 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ dgdx_sg_blocks

Teuchos::Array< Teuchos::RCP< Stokhos::EpetraMultiVectorOrthogPoly > > Stokhos::SGModelEvaluator_Adaptive::dgdx_sg_blocks
mutableprotected

dg/dx stochastic Galerkin components

Definition at line 362 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_x_init

Teuchos::RCP<Stokhos::EpetraVectorOrthogPoly> Stokhos::SGModelEvaluator_Adaptive::sg_x_init
protected

SG initial x.

Definition at line 365 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ sg_p_init

Teuchos::Array< Teuchos::RCP<Stokhos::EpetraVectorOrthogPoly> > Stokhos::SGModelEvaluator_Adaptive::sg_p_init
protected

SG initial p.

Definition at line 368 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ eval_W_with_f

bool Stokhos::SGModelEvaluator_Adaptive::eval_W_with_f
protected

Whether to always evaluate W with f.

Definition at line 371 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ kExpOrder

int Stokhos::SGModelEvaluator_Adaptive::kExpOrder
protected

Definition at line 373 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ onlyUseLinear

bool Stokhos::SGModelEvaluator_Adaptive::onlyUseLinear
protected

Definition at line 374 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ my_W

Teuchos::RCP<Epetra_CrsMatrix> Stokhos::SGModelEvaluator_Adaptive::my_W
mutableprotected

W pointer for evaluating W with f.

Definition at line 377 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ my_x

Teuchos::RCP<Epetra_Vector> Stokhos::SGModelEvaluator_Adaptive::my_x
mutableprotected

x pointer for evaluating preconditioner

Definition at line 380 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ scaleOP

bool Stokhos::SGModelEvaluator_Adaptive::scaleOP
protected

Definition at line 382 of file Stokhos_SGModelEvaluator_Adaptive.hpp.

◆ adaptMngr

Teuchos::RCP<Stokhos::AdaptivityManager> Stokhos::SGModelEvaluator_Adaptive::adaptMngr
mutableprotected

Definition at line 384 of file Stokhos_SGModelEvaluator_Adaptive.hpp.


The documentation for this class was generated from the following files: