waves
Basic FE playground
Algebraic.h
Go to the documentation of this file.
1 #ifndef KATOPTRON_ALGEBRAIC_H
2 #define KATOPTRON_ALGEBRAIC_H
3 
4 #include "katoptron.h"
5 #include "Map.h"
6 #include "Domain.h"
7 #include "Loads.h"
8 #include "Graph.h"
9 #include "Matrices.h"
10 #include "Vectors.h"
11 
12 #include "LinearSolver.h"
13 
14 #include "EnsembleTraits.h"
15 
16 #include <limits>
17 
18 namespace katoptron
19 {
20 
30 template <typename scalar>
31 class Algebraic
32 {
35 
36 public:
37  Teuchos::RCP<Map> map;
38  Teuchos::RCP<Graph> graph;
39  Teuchos::RCP<Matrices<scalar>> matrices;
40  Teuchos::RCP<Vectors<scalar>> vectors;
41 
42  Algebraic(Teuchos::RCP<Map> map, Teuchos::RCP<Domain<scalar>> domain);
43 
44  Teuchos::RCP<Tpetra::Vector<scalar, local_ordinal_type, global_ordinal_type>> readVectorFromFile(std::string &name, size_t myRank);
45 };
46 }; // namespace katoptron
47 
48 #endif //KATOPTRON_ALGEBRAIC_H
katoptron::Map::local_ordinal_type
int local_ordinal_type
Definition: Map.h:27
katoptron::Domain
Class which is used to store all the information related to the discretized domain:
Definition: Domain.h:26
Graph.h
Domain.h
katoptron::Map::global_ordinal_type
int global_ordinal_type
Definition: Map.h:28
katoptron::Algebraic::global_ordinal_type
Map::global_ordinal_type global_ordinal_type
Definition: Algebraic.h:34
katoptron::Algebraic::map
Teuchos::RCP< Map > map
Definition: Algebraic.h:37
katoptron::Algebraic::readVectorFromFile
Teuchos::RCP< Tpetra::Vector< scalar, local_ordinal_type, global_ordinal_type > > readVectorFromFile(std::string &name, size_t myRank)
Function to read a vector from file and distribute it to the MPI processes.
Definition: Algebraic.hpp:41
katoptron::Algebraic
Class which is used to store Teuchos::RCP to the algebraic information of the problem:
Definition: Algebraic.h:31
katoptron
katoptron namespace
Definition: Algebraic.h:18
Matrices.h
katoptron::Algebraic::local_ordinal_type
Map::local_ordinal_type local_ordinal_type
Definition: Algebraic.h:33
katoptron::Algebraic::graph
Teuchos::RCP< Graph > graph
Definition: Algebraic.h:38
EnsembleTraits.h
Vectors.h
LinearSolver.h
katoptron.h
Map.h
katoptron::Algebraic::vectors
Teuchos::RCP< Vectors< scalar > > vectors
Definition: Algebraic.h:40
katoptron::Algebraic::matrices
Teuchos::RCP< Matrices< scalar > > matrices
Definition: Algebraic.h:39
Loads.h
katoptron::Algebraic::Algebraic
Algebraic(Teuchos::RCP< Map > map, Teuchos::RCP< Domain< scalar >> domain)
Algebraic constructor.
Definition: Algebraic.hpp:19