14 #if !defined(KRATOS_REORDERER_H_INCLUDED )
15 #define KRATOS_REORDERER_H_INCLUDED
58 template<
class TSparseSpaceType,
class TDenseSpaceType>
126 if(mIndexPermutation.size() != size)
127 mIndexPermutation.resize(size);
130 mIndexPermutation[
i] =
i;
132 return mIndexPermutation;
141 return mIndexPermutation;
154 virtual std::string
Info()
const
162 rOStream <<
"Reorderer";
268 template<
class TSparseSpaceType,
class TDenseSpaceType>
273 template<
class TSparseSpaceType,
class TDenseSpaceType>
278 rOStream << std::endl;
Base class for all reorderer objects in Kratos used in linear solvers.
Definition: reorderer.h:60
virtual ~Reorderer()
Destructor.
Definition: reorderer.h:91
TSparseSpaceType::VectorType VectorType
Definition: reorderer.h:70
unsigned int SizeType
Definition: reorderer.h:76
unsigned int IndexType
Definition: reorderer.h:74
TSparseSpaceType::MatrixType SparseMatrixType
Definition: reorderer.h:68
virtual void Initialize(SparseMatrixType &rA, VectorType &rX, VectorType &rB)
Definition: reorderer.h:109
virtual IndexVectorType & CalculateIndexPermutation(SparseMatrixType &rA, IndexType InitialIndex=IndexType())
Definition: reorderer.h:122
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: reorderer.h:160
virtual std::string Info() const
Turn back information as a string.
Definition: reorderer.h:154
std::vector< IndexType > IndexVectorType
Definition: reorderer.h:78
KRATOS_CLASS_POINTER_DEFINITION(Reorderer)
Pointer definition of Reorderer.
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: reorderer.h:166
Reorderer & operator=(Reorderer const &rOther)
Assignment operator.
Definition: reorderer.h:99
virtual void Reorder(SparseMatrixType &rA, VectorType &rX, VectorType &rB)
Definition: reorderer.h:114
virtual IndexVectorType & GetIndexPermutation()
Definition: reorderer.h:139
TDenseSpaceType::MatrixType DenseMatrixType
Definition: reorderer.h:72
Reorderer()
Default constructor.
Definition: reorderer.h:85
virtual void InverseReorder(SparseMatrixType &rA, VectorType &rX, VectorType &rB)
Definition: reorderer.h:118
Reorderer(Reorderer const &rOther)
Copy constructor.
Definition: reorderer.h:88
TSpaceType::IndexType Size1(TSpaceType &dummy, typename TSpaceType::MatrixType const &rM)
Definition: add_strategies_to_python.cpp:117
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::vector< IndexType > IndexVectorType
Index vector.
Definition: mmg_io.h:63
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
integer i
Definition: TensorModule.f:17