SpECTRE  v2024.06.18
importers::ElementDataReader< Metavariables > Struct Template Reference

A nodegroup parallel component that reads in a volume data file and distributes its data to elements of an array parallel component. More...

#include <ElementDataReader.hpp>

Public Types

using chare_type = Parallel::Algorithms::Nodegroup
 
using metavariables = Metavariables
 
using phase_dependent_action_list = tmpl::list< Parallel::PhaseActions< Parallel::Phase::Initialization, tmpl::list< detail::InitializeElementDataReader< Dim > > > >
 
using simple_tags_from_options = Parallel::get_simple_tags_from_options< Parallel::get_initialization_actions_list< phase_dependent_action_list > >
 

Static Public Member Functions

static void initialize (Parallel::CProxy_GlobalCache< Metavariables > &)
 
static void execute_next_phase (const Parallel::Phase next_phase, Parallel::CProxy_GlobalCache< Metavariables > &global_cache)
 

Static Public Attributes

static constexpr size_t Dim = Metavariables::volume_dim
 

Detailed Description

template<typename Metavariables>
struct importers::ElementDataReader< Metavariables >

A nodegroup parallel component that reads in a volume data file and distributes its data to elements of an array parallel component.

Each element of the array parallel component must register itself before data can be sent to it. To do so, invoke importers::Actions::RegisterWithElementDataReader on each element. In a subsequent phase you can then invoke importers::ThreadedActions::ReadVolumeData on the ElementDataReader component to read in the file and distribute its data to the registered elements.

See also
Dev guide on Importing data

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