KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
trilinos_pointer_wrapper.h
Go to the documentation of this file.
1 // KRATOS _____ _ _ _
2 // |_ _| __(_) (_)_ __ ___ ___
3 // | || '__| | | | '_ \ / _ \/ __|
4 // | || | | | | | | | | (_) \__
5 // |_||_| |_|_|_|_| |_|\___/|___/ APPLICATION
6 //
7 // License: BSD License
8 // Kratos default license: kratos/license.txt
9 //
10 // Main authors: Ruben Zorrilla
11 //
12 
13 #pragma once
14 
15 // System includes
16 
17 // External includes
18 
19 // Project includes
20 #include "trilinos_space.h"
21 
22 namespace Kratos
23 {
24 
27 
30 
34 
35 typedef TrilinosSpace<Epetra_FECrsMatrix, Epetra_FEVector> TrilinosSparseSpaceType;
36 
40 
44 
48 
50 
59 {
60 public:
63 
66 
70 
73 
76 
80 
84 
90 
95  TrilinosMatrixType& GetReference() { return *mp; }
96 
100 
104 
108 
110  virtual std::string Info() const {
111  std::stringstream buffer;
112  buffer << "AuxiliaryMatrixWrapper" ;
113  return buffer.str();
114  }
115 
117  virtual void PrintInfo(std::ostream& rOStream) const {rOStream << "AuxiliaryMatrixWrapper";}
118 
120  virtual void PrintData(std::ostream& rOStream) const {}
121 
122 private:
126 
130 
134 
136 
140 
144 
148 
152 
156 
158  AuxiliaryMatrixWrapper& operator=(const AuxiliaryMatrixWrapper &rOther) = delete;
159 
161 }; // Class AuxiliaryMatrixWrapper
162 
164 
173 {
174 public:
177 
180 
184 
187 
190 
194 
198 
204 
209  TrilinosVectorType& GetReference() { return *mp; }
210 
214 
218 
222 
224  virtual std::string Info() const {
225  std::stringstream buffer;
226  buffer << "AuxiliaryVectorWrapper" ;
227  return buffer.str();
228  }
229 
231  virtual void PrintInfo(std::ostream& rOStream) const {rOStream << "AuxiliaryVectorWrapper";}
232 
234  virtual void PrintData(std::ostream& rOStream) const {}
235 
236 private:
240 
244 
248 
250 
254 
258 
262 
266 
270 
272  AuxiliaryVectorWrapper& operator=(AuxiliaryVectorWrapper const& rOther) = delete;
273 
275 }; // Class AuxiliaryVectorWrapper
276 
277 } // namespace Kratos.
Auxiliarty Trilinos matrix pointer wrapper class.
Definition: trilinos_pointer_wrapper.h:59
Auxiliarty Trilinos vector pointer wrapper class.
Definition: trilinos_pointer_wrapper.h:173
TVectorType VectorType
Definition of the vector type.
Definition: trilinos_space.h:90
typename Kratos::shared_ptr< TMatrixType > MatrixPointerType
Definition of the pointer types.
Definition: trilinos_space.h:99
typename Kratos::shared_ptr< TVectorType > VectorPointerType
Definition: trilinos_space.h:100
TMatrixType MatrixType
Definition of the matrix type.
Definition: trilinos_space.h:87
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: trilinos_pointer_wrapper.h:120
TrilinosSparseSpaceType::VectorPointerType TrilinosVectorPointerType
Definition: trilinos_pointer_wrapper.h:179
TrilinosSparseSpaceType::MatrixType TrilinosMatrixType
Definition: trilinos_pointer_wrapper.h:64
TrilinosSparseSpaceType::VectorType TrilinosVectorType
Definition: trilinos_pointer_wrapper.h:178
virtual ~AuxiliaryMatrixWrapper()
Destructor.
Definition: trilinos_pointer_wrapper.h:75
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: trilinos_pointer_wrapper.h:117
virtual ~AuxiliaryVectorWrapper()
Destructor.
Definition: trilinos_pointer_wrapper.h:189
AuxiliaryVectorWrapper(TrilinosVectorPointerType p)
Default constructor.
Definition: trilinos_pointer_wrapper.h:186
TrilinosVectorType & GetReference()
Definition: trilinos_pointer_wrapper.h:209
AuxiliaryMatrixWrapper(TrilinosMatrixPointerType p)
Default constructor.
Definition: trilinos_pointer_wrapper.h:72
TrilinosMatrixPointerType & GetPointer()
Definition: trilinos_pointer_wrapper.h:89
TrilinosVectorPointerType & GetPointer()
Definition: trilinos_pointer_wrapper.h:203
TrilinosSparseSpaceType::MatrixPointerType TrilinosMatrixPointerType
Definition: trilinos_pointer_wrapper.h:65
virtual std::string Info() const
Turn back information as a string.
Definition: trilinos_pointer_wrapper.h:224
virtual std::string Info() const
Turn back information as a string.
Definition: trilinos_pointer_wrapper.h:110
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: trilinos_pointer_wrapper.h:231
TrilinosSpace< Epetra_FECrsMatrix, Epetra_FEVector > TrilinosSparseSpaceType
Definition: trilinos_linear_solver_factory.h:107
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: trilinos_pointer_wrapper.h:234
TrilinosMatrixType & GetReference()
Definition: trilinos_pointer_wrapper.h:95
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
p
Definition: sensitivityMatrix.py:52