SpECTRE  v2024.04.12
TestHelpers::observers::MockObserverWriter< Metavariables > Struct Template Reference

Component that mocks the ObserverWriter. More...

#include <MockWriteReductionDataRow.hpp>

Public Types

using metavariables = Metavariables
 
using chare_type = ActionTesting::MockNodeGroupChare
 
using array_index = int
 
using phase_dependent_action_list = tmpl::list< Parallel::PhaseActions< Parallel::Phase::Initialization, tmpl::list< ActionTesting::InitializeDataBox< tmpl::list< MockReductionFileTag > > > > >
 
using component_being_mocked = ::observers::ObserverWriter< Metavariables >
 
using replace_these_threaded_actions = tmpl::list<::observers::ThreadedActions::WriteReductionDataRow >
 
using with_these_threaded_actions = tmpl::list< MockWriteReductionDataRow >
 

Detailed Description

template<typename Metavariables>
struct TestHelpers::observers::MockObserverWriter< Metavariables >

Component that mocks the ObserverWriter.

Details

The only tag that is added to the DataBox is the MockReductionFileTag. To initialize this component do

mock_observer_writer>(make_not_null(&runner), {});
void emplace_nodegroup_component_and_initialize(const gsl::not_null< MockRuntimeSystem< typename Component::metavariables > * > runner, const typename detail::get_initialization< Component >::InitialValues &initial_values, Options &&... opts)
Emplaces a distributed nodegroup object into the parallel component Component. The options opts are f...
Definition: MockRuntimeSystemFreeFunctions.hpp:173

This component replaces the WriteReductionDataRow threaded action with the MockWriteReductionDataRow threaded action.


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