36 #ifndef EXPRESSION_RETURN_AT_QUAD_PTS_HPP 37 #define EXPRESSION_RETURN_AT_QUAD_PTS_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 ExpressionReturnAtQuadraturePoints
81 :
public ExpressionBase<ExpressionReturnAtQuadraturePoints < MeshType, MapType, SpaceDim, FieldDim > >
89 typedef ExpressionBase<ExpressionReturnAtQuadraturePoints < MeshType, MapType, SpaceDim, FieldDim > > base_Type;
92 typedef ETFESpace<MeshType, MapType, SpaceDim, FieldDim> fespace_Type;
95 typedef std::shared_ptr<fespace_Type> fespacePtr_Type;
98 typedef std::vector<std::vector<VectorSmall<FieldDim>>> vector_Type;
107 ExpressionReturnAtQuadraturePoints (fespacePtr_Type fespace,
const vector_Type& vector)
108 : base_Type(), M_fespace (fespace), M_vector (vector) {}
111 ExpressionReturnAtQuadraturePoints (
const ExpressionReturnAtQuadraturePoints<MeshType, MapType, SpaceDim, FieldDim>& expr)
112 : base_Type(), M_fespace (expr.M_fespace), M_vector (expr.M_vector) {}
115 ~ExpressionReturnAtQuadraturePoints() {}
124 static void display (std::ostream& out = std::cout)
126 out <<
"returned[" << FieldDim <<
"] ";
136 fespacePtr_Type fespace()
const 142 const vector_Type vector()
const 155 ExpressionReturnAtQuadraturePoints();
160 fespacePtr_Type M_fespace;
163 vector_Type M_vector;
187 template<
typename MeshType,
typename MapType, UInt SpaceDim, UInt FieldDim>
188 inline ExpressionReturnAtQuadraturePoints<MeshType, MapType, SpaceDim, FieldDim>
190 std::shared_ptr< ETFESpace<MeshType, MapType, SpaceDim, FieldDim> > fespace,
191 const std::vector<std::vector<VectorSmall<FieldDim>>>& vector
194 return ExpressionReturnAtQuadraturePoints<MeshType, MapType, SpaceDim, FieldDim> (fespace, vector);
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)