SpECTRE  v2024.04.12
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:
=
Parallel::charmxx::register_reducer_function<F>()

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