1 #ifndef VERTEXCFD_CLOSURE_RADFISSIONSOURCEEXACTSOLUTION_HPP
2 #define VERTEXCFD_CLOSURE_RADFISSIONSOURCEEXACTSOLUTION_HPP
4 #include "rad_solver/species_properties/VertexCFD_ConstantSpeciesProperties.hpp"
5 #include "utils/VertexCFD_Utils_Constants.hpp"
7 #include <Panzer_Dimension.hpp>
8 #include <Panzer_Evaluator_WithBaseImpl.hpp>
10 #include <Phalanx_Evaluator_Derived.hpp>
11 #include <Phalanx_Evaluator_WithBaseImpl.hpp>
12 #include <Phalanx_FieldManager.hpp>
13 #include <Phalanx_config.hpp>
15 #include <Teuchos_ParameterList.hpp>
17 #include <Kokkos_Core.hpp>
21 namespace ClosureModel
26 template<
class EvalType,
class Traits>
28 :
public panzer::EvaluatorWithBaseImpl<Traits>,
29 public PHX::EvaluatorDerived<EvalType, Traits>
32 using scalar_type =
typename EvalType::ScalarT;
35 const panzer::IntegrationRule& ir,
37 const Teuchos::ParameterList& closure_params);
39 void evaluateFields(
typename Traits::EvalData workset)
override;
41 KOKKOS_INLINE_FUNCTION
43 const Kokkos::TeamPolicy<PHX::exec_space>::member_type& team)
const;
49 Kokkos::Array<PHX::MDField<scalar_type, panzer::Cell, panzer::Point>,
50 VertexCFD::Constants::MAX_NUM_VIEW>
52 PHX::MDField<scalar_type, panzer::Cell, panzer::Point> _neutron_flux;
57 Kokkos::View<double*, Kokkos::LayoutLeft, PHX::mem_space> _gamma;
64 Kokkos::Array<double, VertexCFD::Constants::MAX_NUM_VIEW> _initial_amp;
76 = Kokkos::View<scalar_type**,
77 typename PHX::DevLayout<scalar_type>::type,
78 typename PHX::exec_space::scratch_memory_space,
79 Kokkos::MemoryUnmanaged>;
87 #endif // VERTEXCFD_CLOSURE_RADFISSIONSOURCEEXACTSOLUTION_HPP