36 #ifndef EXPRESSION_INTERPOLATE_LAPLACIAN_HPP 37 #define EXPRESSION_INTERPOLATE_LAPLACIAN_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/core/array/VectorEpetra.hpp> 43 #include <lifev/eta/expression/ExpressionBase.hpp> 45 #include <lifev/eta/fem/ETFESpace.hpp> 52 namespace ExpressionAssembly
79 template<
typename MeshType,
typename MapType,
UInt SpaceDim,
UInt FieldDim>
80 class ExpressionInterpolateLaplacian
81 :
public ExpressionBase<ExpressionInterpolateLaplacian < MeshType, MapType, SpaceDim, FieldDim > >
89 typedef ExpressionBase<ExpressionInterpolateLaplacian < MeshType, MapType, SpaceDim, FieldDim > > base_Type;
92 typedef ETFESpace<MeshType, MapType, SpaceDim, FieldDim> fespace_Type;
95 typedef std::shared_ptr<fespace_Type> fespacePtr_Type;
107 ExpressionInterpolateLaplacian (fespacePtr_Type fespace,
const vector_Type& vector,
const UInt& offset)
108 : base_Type(), M_fespace (fespace), M_vector (vector), M_offset (offset) {}
111 ExpressionInterpolateLaplacian (
const ExpressionInterpolateLaplacian<MeshType, MapType, SpaceDim, FieldDim>& expr)
112 : base_Type(), M_fespace (expr.M_fespace), M_vector (expr.M_vector), M_offset (expr.M_offset) {}
115 ~ExpressionInterpolateLaplacian() {}
124 static void display (std::ostream& out = std::cout)
126 out <<
"interpolated_grad[" << FieldDim <<
"] ";
136 fespacePtr_Type fespace()
const 142 const vector_Type vector()
const 161 ExpressionInterpolateLaplacian();
166 fespacePtr_Type M_fespace;
169 vector_Type M_vector;
196 template<
typename MeshType,
typename MapType, UInt SpaceDim, UInt FieldDim>
197 inline ExpressionInterpolateLaplacian<MeshType, MapType, SpaceDim, FieldDim>
199 std::shared_ptr< ETFESpace<MeshType, MapType, SpaceDim, FieldDim> > fespace,
200 const VectorEpetra& vector,
201 const UInt& offset = 0
204 return ExpressionInterpolateLaplacian<MeshType, MapType, SpaceDim, FieldDim> (fespace, vector, offset);
VectorEpetra - The Epetra Vector format Wrapper.
void updateInverseJacobian(const UInt &iQuadPt)
class ExpressionBase Base class (static polymorphism, CRTP sense) for all the expressions used in ass...
uint32_type UInt
generic unsigned integer (used mainly for addressing)