Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
Stokhos::adapt_utils Namespace Reference

Functions

Teuchos::RCP< Epetra_CrsGraphbuildAdaptedGraph (const Epetra_CrsGraph &determGraph, const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &masterBasis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, bool onlyUseLinear=false, int kExpOrder=-1)
 
Teuchos::RCP< Epetra_CrsGraphbuildAdaptedGraph (const Epetra_CrsGraph &determGraph, const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &masterBasis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, std::vector< int > &myRowGidOffsets, std::vector< int > &myColGidOffsets, bool onlyUseLinear=false, int kExpOrder=-1)
 
Teuchos::RCP< Epetra_MapbuildAdaptedRowMapAndOffsets (const Epetra_Comm &Comm, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, std::vector< int > &myRowGidOffsets)
 
Teuchos::RCP< Epetra_MapbuildAdaptedRowMap (const Epetra_Comm &Comm, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis)
 
void buildAdaptedColOffsets (const Epetra_CrsGraph &determGraph, const std::vector< int > &myRowGidOffsets, std::vector< int > &myColGidOffsets)
 
void buildColBasisFunctions (const Epetra_CrsGraph &determGraph, const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &masterBasis, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_col_basis)
 

Function Documentation

Teuchos::RCP< Epetra_CrsGraph > Stokhos::adapt_utils::buildAdaptedGraph ( const Epetra_CrsGraph determGraph,
const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &  masterBasis,
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_row_basis,
bool  onlyUseLinear = false,
int  kExpOrder = -1 
)

Builds and returns an adapted graph given a set of row basis functions. This does all required global communication to construct this graph.

Definition at line 142 of file Stokhos_AdaptivityUtils.cpp.

Teuchos::RCP< Epetra_CrsGraph > Stokhos::adapt_utils::buildAdaptedGraph ( const Epetra_CrsGraph determGraph,
const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &  masterBasis,
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_row_basis,
std::vector< int > &  myRowGidOffsets,
std::vector< int > &  myColGidOffsets,
bool  onlyUseLinear = false,
int  kExpOrder = -1 
)

Builds and returns an adapted graph given a set of row basis functions. This does all required global communication to construct this graph.

Definition at line 154 of file Stokhos_AdaptivityUtils.cpp.

Teuchos::RCP< Epetra_Map > Stokhos::adapt_utils::buildAdaptedRowMapAndOffsets ( const Epetra_Comm Comm,
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_row_basis,
std::vector< int > &  myRowGidOffsets 
)

Construct a row map that is appropriate for the set of adapted basis functions.

Parameters
[in]determGraphGraph for the deterministic problem
[in]per_dof_row_basisStochastic basis functions for each deterministic degree of freedom
[out]myRowGidOffsetsWill be of length per_dof_row_basis.size() on exit. All data will be overwritten. This contains the starting GID of each deterministic degree of freedom.
Returns
The adapted row map.

Definition at line 17 of file Stokhos_AdaptivityUtils.cpp.

Teuchos::RCP< Epetra_Map > Stokhos::adapt_utils::buildAdaptedRowMap ( const Epetra_Comm Comm,
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_row_basis 
)

Construct a row map that is appropriate for the set of adapted basis functions.

Definition at line 40 of file Stokhos_AdaptivityUtils.cpp.

void Stokhos::adapt_utils::buildAdaptedColOffsets ( const Epetra_CrsGraph determGraph,
const std::vector< int > &  myRowGidOffsets,
std::vector< int > &  myColGidOffsets 
)

Build offsets mapping a local column id to a GID. Note that this function requires parallel communication (for parallel code).

Parameters
[in]determGraphGraph for the deterministic problem
[in]myRowGidOffsetsComputed by buildAdaptedRowMapAndColOffsets
[out]myRowGidOffsetsWill be of length determGraph.ColMap().NumMyElements() on exit. All data will be overwritten. This contains the starting GID of each deterministic degree of freedom in the column map.

Definition at line 53 of file Stokhos_AdaptivityUtils.cpp.

void Stokhos::adapt_utils::buildColBasisFunctions ( const Epetra_CrsGraph determGraph,
const Teuchos::RCP< const Stokhos::ProductBasis< int, double > > &  masterBasis,
const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_row_basis,
std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &  per_dof_col_basis 
)

Use the deterministic graph and the basis function on this processor to determine the basis functions for all the column entries on this processor. Note that this function requires parallel communication (for parallel code).

Parameters
[in]determGraphGraph for the deterministic problem
[in]per_dof_row_basisStochastic basis functions for each deterministic degree of freedom
[out]per_dof_col_basisStochastic basis functions for each degree of freedom in the deterministic column map.

Definition at line 75 of file Stokhos_AdaptivityUtils.cpp.