 |
waves
Basic FE playground
|
Go to the documentation of this file. 1 #ifndef KATOPTRON_MATRICES_H
2 #define KATOPTRON_MATRICES_H
9 #include <Tpetra_Map.hpp>
10 #include <Tpetra_Vector.hpp>
11 #include <Tpetra_CrsGraph.hpp>
12 #include <Tpetra_CrsMatrix.hpp>
13 #include <Teuchos_RCP.hpp>
15 #include <Xpetra_BlockedMap.hpp>
16 #include <Xpetra_BlockedCrsMatrix.hpp>
17 #include <Stokhos_MueLu_MP_Vector.hpp>
31 template <
typename scalar>
57 typedef Tpetra::CrsGraph<local_ordinal_type, global_ordinal_type, node_type>
tpetra_graph_type;
58 typedef Tpetra::CrsMatrix<scalar, local_ordinal_type, global_ordinal_type, node_type>
tpetra_crs_type;
60 typedef Xpetra::Matrix<scalar, local_ordinal_type, global_ordinal_type, node_type>
xpetra_mat_type;
61 typedef Xpetra::CrsMatrix<scalar, local_ordinal_type, global_ordinal_type, node_type>
xpetra_crs_type;
62 typedef Xpetra::CrsMatrixWrap<scalar, local_ordinal_type, global_ordinal_type, node_type>
xpetra_wcrs_type;
63 typedef Xpetra::BlockedCrsMatrix<scalar, local_ordinal_type, global_ordinal_type, node_type>
xpetra_bcrs_type;
64 typedef Xpetra::TpetraCrsMatrix<scalar, local_ordinal_type, global_ordinal_type, node_type>
xpetra_tcrs_type;
66 Teuchos::RCP<tpetra_crs_type>
K;
67 Teuchos::RCP<tpetra_crs_type>
S;
68 Teuchos::RCP<tpetra_crs_type>
L;
69 Teuchos::RCP<tpetra_crs_type>
B;
70 Teuchos::RCP<tpetra_crs_type>
B_T;
71 Teuchos::RCP<tpetra_crs_type>
B_1;
72 Teuchos::RCP<tpetra_crs_type>
B_2;
73 Teuchos::RCP<tpetra_crs_type>
B_G;
74 Teuchos::RCP<tpetra_crs_type>
C;
75 Teuchos::RCP<tpetra_crs_type>
Cb;
77 Teuchos::RCP<xpetra_crs_type>
xA;
78 Teuchos::RCP<xpetra_crs_type>
xB;
79 Teuchos::RCP<xpetra_crs_type>
xB_T;
80 Teuchos::RCP<xpetra_crs_type>
xC;
82 Teuchos::RCP<xpetra_wcrs_type>
xwA;
83 Teuchos::RCP<xpetra_wcrs_type>
xwB;
84 Teuchos::RCP<xpetra_wcrs_type>
xwB_T;
85 Teuchos::RCP<xpetra_wcrs_type>
xwC;
89 Teuchos::RCP<xpetra_mat_type>
A;
105 template <
typename scalar>
108 if (graph->K != Teuchos::null)
113 if (graph->S != Teuchos::null)
116 S->fillComplete(graph->S->getDomainMap(), graph->S->getRangeMap());
118 if (graph->L != Teuchos::null)
126 #endif //KATOPTRON_MATRICES_H
Teuchos::RCP< xpetra_crs_type > xB
Definition: Matrices.h:78
int local_ordinal_type
Definition: Map.h:27
Teuchos::RCP< tpetra_crs_type > B_T
Definition: Matrices.h:70
Xpetra::CrsMatrixWrap< scalar, local_ordinal_type, global_ordinal_type, node_type > xpetra_wcrs_type
Definition: Matrices.h:62
Xpetra::TpetraCrsMatrix< scalar, local_ordinal_type, global_ordinal_type, node_type > xpetra_tcrs_type
Definition: Matrices.h:64
Teuchos::RCP< xpetra_wcrs_type > xwA
Definition: Matrices.h:82
Map::tpetra_map_type tpetra_map_type
Definition: Matrices.h:55
Map::xpetra_bmap_type xpetra_bmap_type
Definition: Matrices.h:56
int global_ordinal_type
Definition: Map.h:28
Teuchos::RCP< tpetra_crs_type > Cb
Definition: Matrices.h:75
Teuchos::RCP< xpetra_crs_type > xC
Definition: Matrices.h:80
Tpetra::CrsGraph< local_ordinal_type, global_ordinal_type, node_type > tpetra_graph_type
Definition: Matrices.h:57
Class which includes all the Trilinos matrices (Tpetra matrices and Xpetra matrices) used in the simu...
Definition: Matrices.h:32
Teuchos::RCP< tpetra_crs_type > B_2
Definition: Matrices.h:72
Map::global_ordinal_type global_ordinal_type
Definition: Matrices.h:53
Teuchos::RCP< tpetra_crs_type > S
Definition: Matrices.h:67
Teuchos::RCP< tpetra_crs_type > K
Definition: Matrices.h:66
Xpetra::CrsMatrix< scalar, local_ordinal_type, global_ordinal_type, node_type > xpetra_crs_type
Definition: Matrices.h:61
Teuchos::RCP< xpetra_crs_type > xA
Definition: Matrices.h:77
Teuchos::RCP< xpetra_bcrs_type > blockedMatrix
Definition: Matrices.h:87
Map::node_type node_type
Definition: Matrices.h:54
Teuchos::RCP< tpetra_crs_type > C
Definition: Matrices.h:74
Map::local_ordinal_type local_ordinal_type
Definition: Matrices.h:52
katoptron namespace
Definition: Algebraic.h:18
Teuchos::RCP< xpetra_mat_type > A
Definition: Matrices.h:89
Tpetra::CrsMatrix< scalar, local_ordinal_type, global_ordinal_type, node_type > tpetra_crs_type
Definition: Matrices.h:58
Xpetra::Matrix< scalar, local_ordinal_type, global_ordinal_type, node_type > xpetra_mat_type
Definition: Matrices.h:60
Xpetra::BlockedMap< local_ordinal_type, global_ordinal_type, node_type > xpetra_bmap_type
Definition: Map.h:33
Tpetra::Map< local_ordinal_type, global_ordinal_type, node_type > tpetra_map_type
Definition: Map.h:30
KokkosClassic::DefaultNode::DefaultNodeType node_type
Definition: Map.h:29
Teuchos::RCP< xpetra_wcrs_type > xwC
Definition: Matrices.h:85
Teuchos::RCP< tpetra_crs_type > B_1
Definition: Matrices.h:71
Teuchos::RCP< tpetra_crs_type > B
Definition: Matrices.h:69
Xpetra::BlockedCrsMatrix< scalar, local_ordinal_type, global_ordinal_type, node_type > xpetra_bcrs_type
Definition: Matrices.h:63
Teuchos::RCP< xpetra_wcrs_type > xwB_T
Definition: Matrices.h:84
Teuchos::RCP< xpetra_crs_type > xB_T
Definition: Matrices.h:79
Teuchos::RCP< xpetra_wcrs_type > xwB
Definition: Matrices.h:83
Teuchos::RCP< tpetra_crs_type > L
Definition: Matrices.h:68
Teuchos::RCP< tpetra_crs_type > B_G
Definition: Matrices.h:73
Matrices(Teuchos::RCP< Graph > graph)
Matrices constructor.
Definition: Matrices.h:106