SpECTRE
v2024.12.16
|
Simple action meant to be run on the MemoryMonitor component that collects sizes from Groups and Nodegroups. More...
#include <ContributeMemoryData.hpp>
Static Public Member Functions | |
template<typename ParallelComponent , typename DbTags , typename Metavariables , typename ArrayIndex > | |
static void | apply (db::DataBox< DbTags > &box, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, const double time, const int node_or_proc, const double size_in_megabytes) |
Simple action meant to be run on the MemoryMonitor component that collects sizes from Groups and Nodegroups.
This action collects the sizes of all the local branches of a group or nodegroup component, computes the total memory usage on a node for each, then writes it to disk. For groups, the proc with the maximum memory usage is also reported along with the size on the proc.
The columns in the dat file for a nodegroup when running on 3 nodes will be
The columns in the dat file for a group when running on 3 nodes will be
The dat file will be placed in the /MemoryMonitors/
group in the reduction file. The name of the dat file is the pretty_type::name
of the component.