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.
|
Auxiliarty Trilinos vector pointer wrapper class. More...
#include <trilinos_pointer_wrapper.h>
Public Types | |
Type Definitions | |
typedef TrilinosSparseSpaceType::VectorType | TrilinosVectorType |
typedef TrilinosSparseSpaceType::VectorPointerType | TrilinosVectorPointerType |
Public Member Functions | |
Life Cycle | |
AuxiliaryVectorWrapper (TrilinosVectorPointerType p) | |
Default constructor. More... | |
virtual | ~AuxiliaryVectorWrapper () |
Destructor. More... | |
Operations | |
TrilinosVectorPointerType & | GetPointer () |
TrilinosVectorType & | GetReference () |
Input and output | |
virtual std::string | Info () const |
Turn back information as a string. More... | |
virtual void | PrintInfo (std::ostream &rOStream) const |
Print information about this object. More... | |
virtual void | PrintData (std::ostream &rOStream) const |
Print object's data. More... | |
Auxiliarty Trilinos vector pointer wrapper class.
This class is intended to handle the Trilinos space matrices exportation to Python. Since the vector pointer cannot be exported to Python by means of PyBind, it is stored in this auxilary class, which is the object that is exported to python. The exportation of the vector wrapper is done in add_trilinos_space_to_python.cpp. Then, the vector is retrieved in Python by calling the GetReference() method of the AuxiliaryVectorWrapper. Alternatively, one can define an auxiliary function that does this operation before the Python export.