43 #ifndef PANZER_VIEW_FACTORY_HPP 44 #define PANZER_VIEW_FACTORY_HPP 46 #include "Kokkos_ViewFactory.hpp" 47 #include "Phalanx_KokkosDeviceTypes.hpp" 52 template<
typename InputArray,
typename ... DimensionPack>
53 Kokkos::DynRankView<typename InputArray::value_type,PHX::Device>
54 createDynRankView(
const InputArray& a,
const std::string& name,
const DimensionPack... dims)
56 using return_type = Kokkos::DynRankView<typename InputArray::value_type,PHX::Device>;
57 return PHX::ViewFactory<InputArray>::template create_view<return_type>(a,name,dims...);
Kokkos::DynRankView< typename InputArray::value_type, PHX::Device > createDynRankView(const InputArray &a, const std::string &name, const DimensionPack... dims)
Wrapper to simplify Panzer use of Sacado ViewFactory.