SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
Parallel::charmxx::RegisterReducerFunction< ReducerFunctions > Struct Template Reference

Class used for registering custom reduction function. More...

#include <CharmRegistration.hpp>

Static Public Attributes

static bool registrar

Detailed Description

template<ReducerFunctions>
struct Parallel::charmxx::RegisterReducerFunction< ReducerFunctions >

Class used for registering custom reduction function.

The static member variable is initialized before main is entered. This means we are able to inject code into the beginning of the execution of an executable by "using" the variable (casting to void counts) the function that initializes the variable is called. We "use" registrar inside the Parallel::contribute_to_reduction function.

Member Data Documentation

◆ registrar

Initial value:
=
bool register_reducer_function()
Function that stores a function pointer to the custom reduction function to be registered later.
Definition CharmRegistration.hpp:838

The documentation for this struct was generated from the following file:
  • src/Parallel/CharmRegistration.hpp