diff --git a/grid/src/Cabana_Grid_Halo.hpp b/grid/src/Cabana_Grid_Halo.hpp index 86ad5184b..70dbeffc1 100644 --- a/grid/src/Cabana_Grid_Halo.hpp +++ b/grid/src/Cabana_Grid_Halo.hpp @@ -1014,12 +1014,13 @@ struct LayoutAdapter buffers may be allocated. This means a halo constructed via this method is only compatible with arrays that have the same scalar and memory space. */ -template -[[deprecated]] auto createHalo( const ArrayLayout& layout, +template class LayoutType, class EntityType, + class MeshType, class Pattern> +[[deprecated]] auto createHalo( const LayoutType& layout, const Pattern& pattern, const int width = -1 ) { - LayoutAdapter> + LayoutAdapter> adapter{ layout }; return createHalo( pattern, width, adapter ); } @@ -1036,16 +1037,18 @@ template +template class ArrayType, + class EntityType, class MeshType, class Pattern, class... Params> [[deprecated]] auto -createHalo( const Array& array, +createHalo( const ArrayType& array, const Pattern& pattern, const int width = -1 ) { - LayoutAdapter< - Scalar, - typename Array::memory_space, - typename Array::array_layout> + LayoutAdapter::memory_space, + typename ArrayType::array_layout> adapter{ *array.layout() }; return createHalo( pattern, width, adapter ); }