36 #ifndef EVALUATION_PHI_I_HPP 37 #define EVALUATION_PHI_I_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/eta/fem/ETCurrentFE.hpp> 42 #include <lifev/eta/fem/ETCurrentFlag.hpp> 43 #include <lifev/core/fem/QuadratureRule.hpp> 45 #include <lifev/eta/expression/ExpressionPhiI.hpp> 51 namespace ExpressionAssembly
63 template<
UInt testDim>
119 static void display (std::ostream& out = std::cout)
131 template<
typename CFEType >
135 template<
typename CFEType >
138 ASSERT (testCFE != 0,
"Null pointer to the testCFE cannot be set");
139 M_valuesPtr = & (testCFE->M_phi);
143 template<
typename CFEType >
158 ASSERT ( q < M_valuesPtr->size(),
"Quadrature point index invalid");
159 ASSERT ( i < (*M_valuesPtr) [q].size(),
"Dof index invalid");
160 return (*M_valuesPtr) [q][i];
166 ASSERT ( q < M_valuesPtr->size(),
"Quadrature point index invalid");
167 ASSERT ( i < (*M_valuesPtr) [q].size(),
"Dof index invalid");
168 return (*M_valuesPtr) [q][i];
247 static void display (std::ostream& out = std::cout)
259 template<
typename CFEType >
263 template<
typename CFEType >
266 ASSERT (testCFE != 0,
"Nul pointer to the testCFE cannot be set");
267 M_valuesPtr = & (testCFE->M_phi);
271 template<
typename CFEType >
286 ASSERT ( q < M_valuesPtr->size(),
"Quadrature point index invalid");
287 ASSERT ( i < (*M_valuesPtr) [q].size(),
"Dof index invalid");
288 return (*M_valuesPtr) [q][i];
294 ASSERT ( q < M_valuesPtr->size(),
"Quadrature point index invalid");
295 ASSERT ( i < (*M_valuesPtr) [q].size(),
"Dof index invalid");
296 return (*M_valuesPtr) [q][i];
void setGlobalCFE(const CFEType *)
Do nothing setter for the global current FE.
const return_Type & value_qij(const UInt &q, const UInt &i, const UInt &) const
Getter for the value for a matrix.
uint32_type flag_Type
bit-flag with up to 32 different flags
static const flag_Type S_testUpdateFlag
Flag for the test current FE.
void update(const UInt &)
Do nothing update.
friend class ExpressionAssembly::EvaluationPhiI
Friend to allow direct access to the raw data.
static const flag_Type S_globalUpdateFlag
Flag for the global current FE.
static const flag_Type S_solutionUpdateFlag
Flag for the solution current FE.
EvaluationPhiI()
Empty constructor.
static void display(std::ostream &out=std::cout)
Display method.
static const flag_Type S_solutionUpdateFlag
Flag for the solution current FE.
~EvaluationPhiI()
Destructor.
static const flag_Type S_testUpdateFlag
Flag for the test current FE.
VectorSmall< testDim > return_Type
Type of the values returned by this class.
void updateInverseJacobian(const UInt &iQuadPt)
void update(const UInt &)
Do nothing update.
EvaluationPhiI(const ExpressionPhiI &)
Expression-based constructor.
void setTestCFE(const CFEType *testCFE)
Setter for the test current FE.
void setQuadrature(const QuadratureRule &)
Do nothing setter for the quadrature rule.
static const flag_Type S_globalUpdateFlag
Flag for the global current FE.
void setSolutionCFE(const CFEType *)
Do nothing setter for the solution current FE.
void setTestCFE(const CFEType *testCFE)
Setter for the test current FE.
static void display(std::ostream &out=std::cout)
Display method.
const return_Type & value_qij(const UInt &q, const UInt &i, const UInt &) const
Getter for the value for a matrix.
std::vector< std::vector< return_Type > > const * M_valuesPtr
Storage of the pointer to the data.
double Real
Generic real data.
const return_Type & value_qi(const UInt &q, const UInt &i) const
Getter for the value for a vector.
~EvaluationPhiI()
Destructor.
std::vector< std::vector< Real > > const * M_valuesPtr
Storage of the pointer to the data.
void setGlobalCFE(const CFEType *)
Do nothing setter for the global current FE.
EvaluationPhiI(const EvaluationPhiI &evaluation)
Copy constructor.
const return_Type & value_qi(const UInt &q, const UInt &i) const
Getter for the value for a vector.
QuadratureRule - The basis class for storing and accessing quadrature rules.
EvaluationPhiI(const ExpressionPhiI &)
Expression-based constructor.
EvaluationPhiI()
Empty constructor.
EvaluationPhiI(const EvaluationPhiI &evaluation)
Copy constructor.
uint32_type UInt
generic unsigned integer (used mainly for addressing)
void setQuadrature(const QuadratureRule &)
Do nothing setter for the quadrature rule.
Real return_Type
Type of the values returned by this class.
void setSolutionCFE(const CFEType *)
Do nothing setter for the solution current FE.