Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <Stokhos_AdaptivityManager.hpp>
Classes | |
class | Sparse3TensorHash |
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 71 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 104 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 117 of file Stokhos_AdaptivityManager.cpp.
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 97 of file Stokhos_AdaptivityManager.hpp.
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 111 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 128 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 133 of file Stokhos_AdaptivityManager.cpp.
|
inline |
Get map associated with this set of adaptive indices
Definition at line 124 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 145 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 181 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 263 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 281 of file Stokhos_AdaptivityManager.cpp.
How many stochastic degrees of freedom are associated with a particular deterministic row degree of freedom.
Definition at line 148 of file Stokhos_AdaptivityManager.hpp.
How many stochastic degrees of freedom are associated with a particular deterministic row degree of freedom.
Definition at line 154 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get master stochastic basis
Definition at line 159 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get stochastic basis associated with a particular deterministic row local id.
Definition at line 164 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get the vector of row stochastic basis functions.
Definition at line 169 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Get stochastic basis associated with a particular deterministic column local id.
Definition at line 174 of file Stokhos_AdaptivityManager.hpp.
|
inline |
Definition at line 177 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 192 of file Stokhos_AdaptivityManager.cpp.
|
private |
Definition at line 218 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 219 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 220 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 222 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 223 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 225 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 226 of file Stokhos_AdaptivityManager.hpp.
|
private |
Definition at line 228 of file Stokhos_AdaptivityManager.hpp.