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.
List of all members
Kratos::AuxiliaryMatrixWrapper Class Reference

Auxiliarty Trilinos matrix pointer wrapper class. More...

#include <trilinos_pointer_wrapper.h>

Collaboration diagram for Kratos::AuxiliaryMatrixWrapper:

Public Types

Type Definitions
typedef TrilinosSparseSpaceType::MatrixType TrilinosMatrixType
 
typedef TrilinosSparseSpaceType::MatrixPointerType TrilinosMatrixPointerType
 

Public Member Functions

Life Cycle
 AuxiliaryMatrixWrapper (TrilinosMatrixPointerType p)
 Default constructor. More...
 
virtual ~AuxiliaryMatrixWrapper ()
 Destructor. More...
 
Operations
TrilinosMatrixPointerTypeGetPointer ()
 
TrilinosMatrixTypeGetReference ()
 
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...
 

Detailed Description

Auxiliarty Trilinos matrix pointer wrapper class.

This class is intended to handle the Trilinos space matrices exportation to Python. Since the matrix 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 matrix wrapper is done in add_trilinos_space_to_python.cpp. Then, the matrix is retrieved in Python by calling the GetReference() method of the AuxiliaryMatrixWrapper. Alternatively, one can define an auxiliary function that does this operation before the Python export.


The documentation for this class was generated from the following file: