SpECTRE  v2024.04.12
Parallel::protocols::RegistrationMetavariables Struct Reference

Conforming types provide compile-time information for registering and deregistering array elements with other parallel components. More...

#include <RegistrationMetavariables.hpp>

Classes

struct  test
 

Detailed Description

Conforming types provide compile-time information for registering and deregistering array elements with other parallel components.

A class conforming to this protocol is placed in the metavariables to provide a list of element registrars for each array parallel component. The element registrars in the list must conform to the Parallel::protocols::ElementRegistrar protocol.

The class conforming to this protocol must provide the following type alias:

  • element_registrars: A tmpl::map from parallel components to their list of element registrars. The element registrars in the typelist must conform to the Parallel::protocols::ElementRegistrar protocol.

Here is an example implementation of this protocol:

struct registration
: tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
using element_registrars =
tmpl::map<tmpl::pair<Component<Metavariables>,
tmpl::list<TestHelpers::amr::RegisterElement>>>;
};
Indicate a class conforms to the Protocol.
Definition: ProtocolHelpers.hpp:22
Note
We may consider retrieving the list of element registrars directly from the Parallel::Phase::Registration phase of the parallel component instead of requiring the metavariables to provide a separate list.

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