11 #ifndef PANZER_VIEW_FACTORY_HPP
12 #define PANZER_VIEW_FACTORY_HPP
14 #include "Kokkos_ViewFactory.hpp"
15 #include "Phalanx_KokkosDeviceTypes.hpp"
20 template<
typename InputArray,
typename ... DimensionPack>
21 Kokkos::DynRankView<typename InputArray::value_type,PHX::Device>
22 createDynRankView(
const InputArray& a,
const std::string& name,
const DimensionPack... dims)
24 using return_type = Kokkos::DynRankView<typename InputArray::value_type,PHX::Device>;
25 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.