SpECTRE
v2025.03.17
|
Conforming types implement a strategy to create elements for array parallel components. More...
#include <ArrayElementsAllocator.hpp>
Classes | |
struct | test |
Conforming types implement a strategy to create elements for array parallel components.
Conforming classes must provide the following type aliases:
array_allocation_tags<ParallelComponent>
: A tmpl::list
of tags that are needed to perform the allocation. These tags will be parsed from input-file options (see Parallel Components). The array parallel component will be passed in as a template parameter.Conforming classes must implement the following static member functions:
apply<ParallelComponent>
: This function is responsible for creating the array elements. It has the same signature as the allocate_array
function (see Parallel Components), but takes the array parallel component as an additional first template parameter.See elliptic::DefaultElementsAllocator
for an example implementation of this protocol.