Public Types | Static Public Member Functions | List of all members
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< typename Metavariables::Phase, Metavariables::Phase::Initialization, tmpl::list<::Actions::SetupDataBox, detail::InitializeElementDataReader > >>
 
using initialization_tags = Parallel::get_initialization_tags< Parallel::get_initialization_actions_list< phase_dependent_action_list > >
 

Static Public Member Functions

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

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: