SpECTRE  v2024.04.12
mem_monitor::ProcessArray< ArrayComponent > Struct Template Reference

Simple action meant to be used as a callback for Parallel::contribute_to_reduction that writes the size of an Array parallel component to disk. More...

#include <ProcessArray.hpp>

Static Public Member Functions

template<typename ParallelComponent , typename DbTags , typename Metavariables , typename ArrayIndex >
static void apply (db::DataBox< DbTags > &, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, const double time, const std::vector< double > &size_per_node)
 

Detailed Description

template<typename ArrayComponent>
struct mem_monitor::ProcessArray< ArrayComponent >

Simple action meant to be used as a callback for Parallel::contribute_to_reduction that writes the size of an Array parallel component to disk.

Details

The columns in the dat file when running on 3 nodes will be

  • Time
  • Size on node 0 (MB)
  • Size on node 1 (MB)
  • Size on node 2 (MB)
  • Average size per node (MB)

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.


The documentation for this struct was generated from the following file: