From 25f7411a1fc7c46ee2fc07ee0c452d8f589ff178 Mon Sep 17 00:00:00 2001 From: Sam Reeve <6740307+streeve@users.noreply.github.com> Date: Thu, 16 Nov 2023 09:50:45 -0500 Subject: [PATCH] fixup: simplify deprecated sparse Cajita wrappers --- grid/src/Cabana_Grid_IndexSpace.hpp | 7 ------- grid/src/Cabana_Grid_SparseArray.hpp | 26 ++++++++++---------------- 2 files changed, 10 insertions(+), 23 deletions(-) diff --git a/grid/src/Cabana_Grid_IndexSpace.hpp b/grid/src/Cabana_Grid_IndexSpace.hpp index 9253257a6..94f0043f9 100644 --- a/grid/src/Cabana_Grid_IndexSpace.hpp +++ b/grid/src/Cabana_Grid_IndexSpace.hpp @@ -501,13 +501,6 @@ CAJITA_DEPRECATED auto createView( Args&&... args ) return Cabana::Grid::createView( std::forward( args )... ); } -template -CAJITA_DEPRECATED auto createView( const std::string& label, - const IndexSpace<1>& index_space ) -{ - return Cabana::Grid::createView( label, index_space ); -} - template CAJITA_DEPRECATED auto createSubview( Args&&... args ) { diff --git a/grid/src/Cabana_Grid_SparseArray.hpp b/grid/src/Cabana_Grid_SparseArray.hpp index 75783d67d..f730c54e8 100644 --- a/grid/src/Cabana_Grid_SparseArray.hpp +++ b/grid/src/Cabana_Grid_SparseArray.hpp @@ -721,38 +721,32 @@ using SparseArrayLayout CAJITA_DEPRECATED = Cabana::Grid::Experimental::SparseArrayLayout; -template -CAJITA_DEPRECATED auto createSparseArrayLayout( - const std::string label, - SparseArrayLayout& layout ) +template +CAJITA_DEPRECATED auto createSparseArrayLayout( Args&&... args ) { - return Cabana::Grid::Experimental::createSparseArrayLayout( label, layout ); + return Cabana::Grid::Experimental::createSparseArrayLayout( + std::forward( args )... ); } template using is_sparse_array_layout CAJITA_DEPRECATED = Cabana::Grid::Experimental::is_sparse_array_layout; -template using SparseArray CAJITA_DEPRECATED = - Cabana::Grid::Experimental::SparseArray; template using is_sparse_array CAJITA_DEPRECATED = Cabana::Grid::Experimental::is_sparse_array; -template -CAJITA_DEPRECATED auto -createSparseArray( const std::string label, - SparseArray& layout ) +template +CAJITA_DEPRECATED auto createSparseArray( Args&&... args ) { - return Cabana::Grid::Experimental::createSparseArray( label, - layout ); + return Cabana::Grid::Experimental::createSparseArray( + std::forward( args )... ); } //! \endcond } // namespace Experimental