(Sortable) Globally unique identifier for a single subdomain of a diamond. More...
#include <spherical_shell.hpp>
Public Member Functions | |
| SubdomainInfo () | |
| Creates invalid ID. | |
| SubdomainInfo (int diamond_id, int subdomain_x, int subdomain_y, int subdomain_r) | |
| Creates unique subdomain ID. | |
| SubdomainInfo (const int64_t global_id) | |
| Read from encoded 64-bit integer. | |
| int | diamond_id () const |
| Diamond that subdomain is part of. | |
| int | subdomain_x () const |
| Subdomain index in lateral x-direction (local to the diamond). | |
| int | subdomain_y () const |
| Subdomain index in lateral y-direction (local to the diamond). | |
| int | subdomain_r () const |
| Subdomain index in the radial direction (local to the diamond). | |
| bool | operator< (const SubdomainInfo &other) const |
| bool | operator== (const SubdomainInfo &other) const |
| int64_t | global_id () const |
| Scrambles the four indices (diamond ID, x, y, r) into a single integer. | |
(Sortable) Globally unique identifier for a single subdomain of a diamond.
Carries the diamond ID, and the subdomain index (x, y, r) inside the diamond. Is globally unique (particularly useful for in parallel settings). Does not carry information about the refinement of a subdomain (just the index).
|
inline |
Creates invalid ID.
|
inline |
Creates unique subdomain ID.
|
inlineexplicit |
Read from encoded 64-bit integer.
See global_id() for format.
|
inline |
Diamond that subdomain is part of.
|
inline |
Scrambles the four indices (diamond ID, x, y, r) into a single integer.
Format
|
inline |
|
inline |
|
inline |
Subdomain index in the radial direction (local to the diamond).
|
inline |
Subdomain index in lateral x-direction (local to the diamond).
|
inline |
Subdomain index in lateral y-direction (local to the diamond).