From d17969f9a433ce411146a1298b2045e0ad58ab8e Mon Sep 17 00:00:00 2001 From: David Date: Fri, 22 Mar 2024 14:27:26 +0000 Subject: [PATCH] Attempt at deprecation --- grid/src/Cabana_Grid_BovWriter.hpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/grid/src/Cabana_Grid_BovWriter.hpp b/grid/src/Cabana_Grid_BovWriter.hpp index 4739bd2ac..d8890b030 100644 --- a/grid/src/Cabana_Grid_BovWriter.hpp +++ b/grid/src/Cabana_Grid_BovWriter.hpp @@ -411,6 +411,25 @@ void writeTimeStep( const std::string& prefix, const int time_step_index, gather_array ); } +template +[[deprecated( "writeTimeStep now requires a filename prefix" )]] void +writeTimeStep( ExecutionSpace, const int time_step_index, const double time, + const Array_t& array, const bool gather_array = true ) +{ + writeTimeStep( ExecutionSpace, "grid_" + array.label(), time_step_index, + time, array, gather_array ); +} + +template +[[deprecated( "writeTimeStep now requires a filename prefix" )]] void +writeTimeStep( const int time_step_index, const double time, + const Array_t& array, const bool gather_array = true ) +{ + using exec_space = typename Array_t::execution_space; + writeTimeStep( exec_space{}, "grid_" + array.label(), time_step_index, time, + array, gather_array ); +} + //---------------------------------------------------------------------------// } // end namespace BovWriter