Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <Stokhos_AdaptivityManager.hpp>
Classes | |
class | Sparse3TensorHash |
Public Member Functions | |
AdaptivityManager (const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &sg_master_basis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &sg_basis_row_dof, const Epetra_CrsGraph &determ_graph, bool onlyUseLinear, int kExpOrder, bool scaleOp=true) | |
AdaptivityManager (const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &sg_master_basis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &sg_basis_row_dof, const Epetra_Comm &comm, bool scaleOp=true) | |
int | getGlobalColId (int determLid, int basisIndex) const |
int | getGlobalRowId (int determLid, int basisIndex) const |
Teuchos::RCP< Epetra_CrsMatrix > | buildMatrixFromGraph () const |
void | setupWithGraph (const Epetra_CrsGraph &graph, bool onlyUseLinear, int kExpOrder) |
Teuchos::RCP< const Epetra_Map > | getAdaptedMap () const |
void | setupOperator (Epetra_CrsMatrix &A, const Sparse3Tensor< int, double > &Cijk, Stokhos::EpetraOperatorOrthogPoly &poly, bool onlyUseLinear=false, bool includeMean=true) const |
void | sumInOperator (Epetra_CrsMatrix &A, const Stokhos::Sparse3Tensor< int, double > &Cijk, int k, const Epetra_CrsMatrix &J_k) const |
void | copyToAdaptiveVector (const Stokhos::EpetraVectorOrthogPoly &x_sg, Epetra_Vector &x) const |
void | copyFromAdaptiveVector (const Epetra_Vector &x, Stokhos::EpetraVectorOrthogPoly &x_sg) const |
int | getRowStochasticBasisSize (int determLid) const |
int | getColStochasticBasisSize (int determLid) const |
Teuchos::RCP< const Stokhos::ProductBasis< int, double > > | getMasterStochasticBasis () const |
Teuchos::RCP< const Stokhos::ProductBasis< int, double > > | getRowStochasticBasis (int determLid) const |
const std::vector < Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > & | getRowStochasticBasis () const |
Teuchos::RCP< const Stokhos::ProductBasis< int, double > > | getColStochasticBasis (int determLid) const |
bool | isScaled () |
Private Member Functions | |
void | sumInOperator (Epetra_CrsMatrix &A, const Sparse3TensorHash &Cijk, int k, const Epetra_CrsMatrix &J_k) const |
Private Attributes | |
Teuchos::RCP< const Stokhos::ProductBasis< int, double > > | sg_master_basis_ |
std::vector< Teuchos::RCP < const Stokhos::ProductBasis < int, double > > > | sg_basis_row_dof_ |
std::vector< Teuchos::RCP < const Stokhos::ProductBasis < int, double > > > | sg_basis_col_dof_ |
std::vector< int > | myRowGidOffsets_ |
std::vector< int > | myColGidOffsets_ |
Teuchos::RCP< Epetra_CrsGraph > | graph_ |
Teuchos::RCP< Epetra_Map > | rowMap_ |
bool | scaleOp_ |
Describes and constructs all things needed for adaptivity.
Definition at line 37 of file Stokhos_AdaptivityManager.hpp.
Stokhos::AdaptivityManager::AdaptivityManager | ( | const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > & | sg_master_basis, |
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > & | sg_basis_row_dof, | ||
const Epetra_CrsGraph & | determ_graph, | ||
bool | onlyUseLinear, | ||
int | kExpOrder, | ||
bool | scaleOp = true |
||
) |
Definition at line 70 of file Stokhos_AdaptivityManager.cpp.
Stokhos::AdaptivityManager::AdaptivityManager | ( | const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > & | sg_master_basis, |
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > & | sg_basis_row_dof, | ||
const Epetra_Comm & | comm, | ||
bool | scaleOp = true |
||
) |
Definition at line 83 of file Stokhos_AdaptivityManager.cpp.
|
inline |
Given a deterministic local column ID and a basis index determine the global column ID in the fully assembled system.
[in] | determLid | Deterministic local column ID |
[in] | basisIndex | Index into the stochastic basis associated with this column ID. |
Definition at line 63 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Given a deterministic local row ID and a basis index determine the global row ID in the fully assembled system.
[in] | determLid | Deterministic local row ID |
[in] | basisIndex | Index into the stochastic basis associated with this row ID. |
Definition at line 77 of file Stokhos_AdaptivityManager.hpp.
Teuchos::RCP< Epetra_CrsMatrix > Stokhos::AdaptivityManager::buildMatrixFromGraph | ( | ) | const |
Build a CRS matrix from the internally constructed graph
Definition at line 94 of file Stokhos_AdaptivityManager.cpp.
void Stokhos::AdaptivityManager::setupWithGraph | ( | const Epetra_CrsGraph & | graph, |
bool | onlyUseLinear, | ||
int | kExpOrder | ||
) |
Build a CRS graph from a determinstic graph
Definition at line 99 of file Stokhos_AdaptivityManager.cpp.
|
inline |
Get map associated with this set of adaptive indices
Definition at line 90 of file Stokhos_AdaptivityManager.hpp.
void Stokhos::AdaptivityManager::setupOperator | ( | Epetra_CrsMatrix & | A, |
const Sparse3Tensor< int, double > & | Cijk, | ||
Stokhos::EpetraOperatorOrthogPoly & | poly, | ||
bool | onlyUseLinear = false , |
||
bool | includeMean = true |
||
) | const |
Setup operator
Definition at line 111 of file Stokhos_AdaptivityManager.cpp.
void Stokhos::AdaptivityManager::sumInOperator | ( | Epetra_CrsMatrix & | A, |
const Stokhos::Sparse3Tensor< int, double > & | Cijk, | ||
int | k, | ||
const Epetra_CrsMatrix & | J_k | ||
) | const |
Sum into a matrix constructed from buildMatrixFromGraph
using the Cjik tensor a matrix J_k
Definition at line 147 of file Stokhos_AdaptivityManager.cpp.
void Stokhos::AdaptivityManager::copyToAdaptiveVector | ( | const Stokhos::EpetraVectorOrthogPoly & | x_sg, |
Epetra_Vector & | x | ||
) | const |
Copy to an adaptive vector from a set of blocked vectors
Definition at line 229 of file Stokhos_AdaptivityManager.cpp.
void Stokhos::AdaptivityManager::copyFromAdaptiveVector | ( | const Epetra_Vector & | x, |
Stokhos::EpetraVectorOrthogPoly & | x_sg | ||
) | const |
Copy from an adaptive vector to a set of blocked vectors
Definition at line 247 of file Stokhos_AdaptivityManager.cpp.
|
inline |
How many stochastic degrees of freedom are associated with a particular deterministic row degree of freedom.
Definition at line 114 of file Stokhos_AdaptivityManager.hpp.
|
inline |
How many stochastic degrees of freedom are associated with a particular deterministic row degree of freedom.
Definition at line 120 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get master stochastic basis
Definition at line 125 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get stochastic basis associated with a particular deterministic row local id.
Definition at line 130 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get the vector of row stochastic basis functions.
Definition at line 135 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get stochastic basis associated with a particular deterministic column local id.
Definition at line 140 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Definition at line 143 of file Stokhos_AdaptivityManager.hpp.
|
private |
Sum into a matrix constructed from buildMatrixFromGraph
using the Sparse3TensorHash if boost is enabled Cjik tensor a matrix J_k
Definition at line 158 of file Stokhos_AdaptivityManager.cpp.
|
private |
Definition at line 184 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 185 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 186 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 188 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 189 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 191 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 192 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 194 of file Stokhos_AdaptivityManager.hpp.