|
core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
|
Name → FieldRec directory. More...
#include <field_set.hpp>
Public Member Functions | |
| FieldRec & | add (const std::string &name, std::size_t n, int ghost, Centering c=Centering::Cell) |
Allocate a fresh zero-initialised device buffer of n elements and register it. | |
| FieldRec & | adopt (const std::string &name, View< double > v, int ghost, Centering c=Centering::Cell) |
Register an existing buffer under name without taking ownership of its allocation. | |
| bool | has (const std::string &name) const |
| FieldRec & | at (const std::string &name) |
| const FieldRec & | at (const std::string &name) const |
| std::size_t | size () const |
| std::vector< std::string > | names () const |
| Field names in a deterministic (sorted) order — the collective-safe enumeration. | |
Name → FieldRec directory.
Insertion is upsert (re-add/adopt of an existing name replaces the record) so a solver can re-adopt its members after a redistribution reallocates them. names() is sorted so every rank enumerates the set in the same order (required for collective redistribution).
Definition at line 48 of file field_set.hpp.
|
inline |
Allocate a fresh zero-initialised device buffer of n elements and register it.
Definition at line 51 of file field_set.hpp.
|
inline |
Register an existing buffer under name without taking ownership of its allocation.
Definition at line 58 of file field_set.hpp.
Definition at line 64 of file field_set.hpp.
Definition at line 66 of file field_set.hpp.
Definition at line 72 of file field_set.hpp.
|
inline |
Definition at line 79 of file field_set.hpp.
|
inline |
Field names in a deterministic (sorted) order — the collective-safe enumeration.
Definition at line 82 of file field_set.hpp.