1 #ifndef VERTEXCFD_CLOSURE_MEASUREELEMENTLENGTH_HPP
2 #define VERTEXCFD_CLOSURE_MEASUREELEMENTLENGTH_HPP
4 #include <Panzer_Dimension.hpp>
5 #include <Panzer_Evaluator_WithBaseImpl.hpp>
7 #include <Phalanx_Evaluator_Derived.hpp>
8 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
9 #include <Phalanx_FieldManager.hpp>
10 #include <Phalanx_config.hpp>
12 #include <Kokkos_Core.hpp>
16 namespace ClosureModel
19 template<
class EvalType,
class Traits>
21 public PHX::EvaluatorDerived<EvalType, Traits>
24 using scalar_type =
typename EvalType::ScalarT;
26 PHX::MDField<double, panzer::Cell, panzer::Point, panzer::Dim> _element_length;
29 const std::string& prefix =
"");
31 void postRegistrationSetup(
typename Traits::SetupData sd,
32 PHX::FieldManager<Traits>& fm)
override;
34 void evaluateFields(
typename Traits::EvalData workset)
override;
36 KOKKOS_INLINE_FUNCTION
38 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
44 PHX::MDField<const double, panzer::Cell, panzer::Point> _cell_det;
52 #endif // end VERTEXCFD_CLOSURE_MEASUREELEMENTLENGTH_HPP