|
SpECTRE
v2026.11.11
|
Write rows of data to one or more h5::Dat subfiles of the reductions file, opening the file only once. More...
#include <ReductionActions.hpp>
Public Types | |
| using | return_type = void |
Static Public Member Functions | |
| template<typename ParallelComponent, typename DbTagsList, typename Metavariables, typename ArrayIndex> | |
| static void | apply (db::DataBox< DbTagsList > &box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, const gsl::not_null< Parallel::NodeLock * > node_lock, const std::vector< DatRows > &data) |
| The apply call for the threaded action. | |
| template<typename ParallelComponent, typename DbTagList, typename Metavariables> | |
| static return_type | apply (db::DataBox< DbTagList > &box, const gsl::not_null< Parallel::NodeLock * >, Parallel::GlobalCache< Metavariables > &cache, const std::vector< DatRows > &data) |
| The apply call for the local synchronous action. | |
Write rows of data to one or more h5::Dat subfiles of the reductions file, opening the file only once.
Like WriteReductionDataRow, this action requires no registration or reduction. Each WriteReductionDataRow call opens and closes the reductions file, so prefer this action when writing to many subfiles at once (e.g. one subfile per component of a function of time) or several rows to one subfile at once.
Invoke this action on the observers::ObserverWriter component on node 0 with a std::vector<observers::DatRows>, one entry per subfile to write to. The legend of each entry must have one name per column, and each of its rows must have one value per column.