Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Stokhos_AdaptivityUtils.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Stokhos Package
4 //
5 // Copyright 2009 NTESS and the Stokhos contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef STOKHOS_AdaptivityUtils_HPP
11 #define STOKHOS_AdaptivityUtils_HPP
12 
14 #include "Stokhos_ProductBasis.hpp"
15 
16 #include "Epetra_Map.h"
17 #include "Epetra_CrsGraph.h"
18 
19 #include "Teuchos_RCP.hpp"
20 #include "Teuchos_Array.hpp"
21 
22 #include <vector>
23 
24 namespace Stokhos {
25 namespace adapt_utils {
26 
31  const Epetra_CrsGraph & determGraph,
32  const Teuchos::RCP<const Stokhos::ProductBasis<int,double> > & masterBasis,
33  const std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_row_basis,
34  bool onlyUseLinear = false,
35  int kExpOrder = -1);
36 
41  const Epetra_CrsGraph & determGraph,
42  const Teuchos::RCP<const Stokhos::ProductBasis<int,double> > & masterBasis,
43  const std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_row_basis,
44  std::vector<int> & myRowGidOffsets,std::vector<int> & myColGidOffsets,
45  bool onlyUseLinear = false,
46  int kExpOrder=-1);
47 
60  const Epetra_Comm & Comm,
61  const std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_row_basis,
62  std::vector<int> & myRowGidOffsets);
63 
68  const Epetra_Comm & Comm,
69  const std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_row_basis);
70 
81  const Epetra_CrsGraph & determGraph,
82  const std::vector<int> & myRowGidOffsets,
83  std::vector<int> & myColGidOffsets);
84 
95  const Epetra_CrsGraph & determGraph,
96  const Teuchos::RCP<const Stokhos::ProductBasis<int,double> > & masterBasis,
97  const std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_row_basis,
98  std::vector<Teuchos::RCP<const Stokhos::ProductBasis<int,double> > > & per_dof_col_basis);
99 }
100 
101 } // namespace Stokhos
102 
103 #endif // STOKHOS_AdaptivityUtils_HPP
Teuchos::RCP< Epetra_Map > buildAdaptedRowMap(const Epetra_Comm &Comm, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis)
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)
Teuchos::RCP< Epetra_CrsGraph > 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)
Teuchos::RCP< Epetra_Map > buildAdaptedRowMapAndOffsets(const Epetra_Comm &Comm, const std::vector< Teuchos::RCP< const Stokhos::ProductBasis< int, double > > > &per_dof_row_basis, std::vector< int > &myRowGidOffsets)
void buildAdaptedColOffsets(const Epetra_CrsGraph &determGraph, const std::vector< int > &myRowGidOffsets, std::vector< int > &myColGidOffsets)