36 #ifndef EVALUTATION_SQUAREROOT_HPP 37 #define EVALUTATION_SQUAREROOT_HPP 39 #include <lifev/core/LifeV.hpp> 41 #include <lifev/eta/array/OperationSmallSquareRoot.hpp> 43 #include <lifev/eta/expression/ExpressionSquareRoot.hpp> 45 #include <lifev/core/fem/QuadratureRule.hpp> 50 namespace ExpressionAssembly
62 template <
typename EvaluationBaseType>
63 class EvaluationSquareRoot
71 typedef typename EvaluationBaseType::return_Type BaseReturn_Type;
97 EvaluationSquareRoot (
const EvaluationSquareRoot& eval)
98 : M_evaluationBase (eval.M_evaluationBase)
102 template <
typename BaseExpressionType>
103 explicit EvaluationSquareRoot (
const ExpressionSquareRoot<BaseExpressionType>& expression)
104 : M_evaluationBase (expression.base() )
108 ~EvaluationSquareRoot() {}
117 void update (
const UInt& iElement)
119 M_evaluationBase.update (iElement);
123 static void display (std::ostream& out = std::cout )
126 EvaluationBaseType::display (out);
137 template<
typename CFEType >
138 void setGlobalCFE (
const CFEType* globalCFE)
140 M_evaluationBase.setGlobalCFE (globalCFE);
144 template<
typename CFEType >
145 void setTestCFE (
const CFEType* testCFE)
147 M_evaluationBase.setTestCFE (testCFE);
151 template<
typename CFEType >
152 void setSolutionCFE (
const CFEType* solutionCFE)
154 M_evaluationBase.setSolutionCFE (solutionCFE);
160 M_evaluationBase.setQuadrature (qr);
170 return_Type value_q (
const UInt& q)
const 172 return std::sqrt (M_evaluationBase.value_q (q));
176 return_Type value_qi (
const UInt& q,
const UInt& i)
const 178 return std::sqrt (M_evaluationBase.value_qi (q, i));
182 return_Type value_qij (
const UInt& q,
const UInt& i,
const UInt& j)
const 184 return std::sqrt (M_evaluationBase.value_qij (q, i, j) );
195 EvaluationSquareRoot();
200 EvaluationBaseType M_evaluationBase;
203 template<
typename EvaluationBaseType>
204 const flag_Type EvaluationSquareRoot<EvaluationBaseType>::S_globalUpdateFlag
205 = EvaluationBaseType::S_globalUpdateFlag;
207 template<
typename EvaluationBaseType>
208 const flag_Type EvaluationSquareRoot<EvaluationBaseType>::S_testUpdateFlag
209 = EvaluationBaseType::S_testUpdateFlag;
211 template<
typename EvaluationBaseType>
212 const flag_Type EvaluationSquareRoot<EvaluationBaseType>::S_solutionUpdateFlag
213 = EvaluationBaseType::S_solutionUpdateFlag;
uint32_type flag_Type
bit-flag with up to 32 different flags
void updateInverseJacobian(const UInt &iQuadPt)
class OperationSmallAddition Class containing information about the power operation between the *Smal...
QuadratureRule - The basis class for storing and accessing quadrature rules.
uint32_type UInt
generic unsigned integer (used mainly for addressing)