Skip to content

Commit

Permalink
Attempt at deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJoy8 committed Mar 22, 2024
1 parent 9b66034 commit d17969f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions grid/src/Cabana_Grid_BovWriter.hpp
Expand Up @@ -411,6 +411,25 @@ void writeTimeStep( const std::string& prefix, const int time_step_index,
gather_array );
}

template <class ExecutionSpace, class Array_t>
[[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 <class Array_t>
[[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
Expand Down

0 comments on commit d17969f

Please sign in to comment.