SpECTRE
v2024.09.29
|
A subset of chares in a parallel component. More...
#include <Section.hpp>
Public Types | |
using | parallel_component = ParallelComponent |
using | cproxy_section = typename charm_type::cproxy_section |
using | section_id_tag = SectionIdTag |
Public Member Functions | |
Section (IdType id, cproxy_section proxy) | |
Section (Section &&rhs)=default | |
Section & | operator= (Section &&rhs)=default |
Section (const Section &)=default | |
Section & | operator= (const Section &)=default |
const IdType & | id () const |
The section ID corresponding to the SectionIdTag | |
void | pup (PUP::er &p) |
const cproxy_section & | proxy () const |
The Charm++ section proxy. | |
cproxy_section & | proxy () |
The Charm++ section proxy. | |
const CkSectionInfo & | cookie () const |
The Charm++ section cookie that keeps track of reductions. More... | |
CkSectionInfo & | cookie () |
The Charm++ section cookie that keeps track of reductions. More... | |
A subset of chares in a parallel component.
The section is identified at compile time by the parallel component and a SectionIdTag
. The SectionIdTag
describes the quantity that partitions the chares into one or more sections. For example, the SectionIdTag
could be the block ID in the computational domain, so elements are partitioned per block. Chares can be a member of multiple sections.
Here's an example how to work with sections in an array parallel component:
|
inline |
The Charm++ section cookie that keeps track of reductions.
The section cookie must be stored on each element and updated when performing reductions. For details on Charm++ sections and section reductions see: https://charm.readthedocs.io/en/latest/charm++/manual.html?#sections-subsets-of-a-chare-array-group
|
inline |
The Charm++ section cookie that keeps track of reductions.
The section cookie must be stored on each element and updated when performing reductions. For details on Charm++ sections and section reductions see: https://charm.readthedocs.io/en/latest/charm++/manual.html?#sections-subsets-of-a-chare-array-group