SpECTRE
v2025.03.17
|
Action meant to mock WriteReductionDataRow. More...
#include <MockWriteReductionDataRow.hpp>
Static Public Member Functions | |
template<typename ParallelComponent , typename DbTagsList , typename Metavariables , typename ArrayIndex , typename... Ts> | |
static void | apply (::db::DataBox< DbTagsList > &box, const Parallel::GlobalCache< Metavariables > &, const ArrayIndex &, const gsl::not_null< Parallel::NodeLock * >, const std::string &subfile_name, std::vector< std::string > &&legend, std::tuple< Ts... > &&in_reduction_data) |
Action meant to mock WriteReductionDataRow.
Instead of writing to disk, this action will mutate the MockReductionFileTag stored in the DataBox of the MockObserverWriter with the values passed in. We want to avoid writing to disk in the testing framework because IO is slow and we don't really care that things were written to disk, just that the correct values were recorded.
To check what values were written, get the MockDat file: