35 #ifndef _VECTOREPETRASTRUCTURED_HPP_ 36 #define _VECTOREPETRASTRUCTURED_HPP_ 1
38 #include <lifev/core/LifeV.hpp> 40 #include <lifev/core/array/MapEpetra.hpp> 41 #include <lifev/core/array/VectorEpetra.hpp> 42 #include <lifev/core/array/MapVector.hpp> 43 #include <lifev/core/array/VectorBlockStructure.hpp> 44 #include <lifev/core/array/VectorEpetraStructuredView.hpp> 70 class VectorEpetraStructured
82 typedef MapEpetra map_Type;
85 typedef MapVector<map_Type> mapVector_type;
91 typedef Epetra_CombineMode combine_type;
94 typedef VectorEpetraStructuredView block_type;
97 typedef std::shared_ptr<block_type> block_ptrType;
106 explicit VectorEpetraStructured (
const map_Type& map,
107 const mapType_type& mapType =
Unique,
108 const combineMode_Type combineMode = Add );
116 explicit VectorEpetraStructured (
const mapVector_type& mapVector,
117 const mapType_type& mapType =
Unique,
118 const combineMode_Type combineMode = Add );
121 VectorEpetraStructured (
const VectorEpetraStructured& vector );
124 VectorEpetraStructured (
const VectorEpetraStructured& vector,
const mapType_type& mapType );
127 VectorEpetraStructured (
const VectorEpetraStructured& vector,
128 const mapType_type& mapType,
129 const combine_type& combineMode );
132 ~VectorEpetraStructured() {}
143 void setBlockStructure (
const std::vector<UInt>& blockSizes );
155 void setBlockStructure (
const mapVector_type& mapVector );
160 void setBlockStructure (
const VectorBlockStructure& blockStructure );
173 UInt blockSize (
const UInt& index )
const;
180 void blockView (
const UInt& index, block_type& blockView );
187 block_ptrType block (
const UInt& index );
192 VectorBlockStructure blockStructure()
const;
198 VectorBlockStructure M_blockStructure;
void assignFunction(bcBase_Type &base)
Assign the function to the base of the BCHandler.
double Real
Generic real data.
uint32_type UInt
generic unsigned integer (used mainly for addressing)