Global subdomain offset in global coordinate system.
More...
#include <strong_types.hpp>
|
|
Int3 | value |
| | Underlying array value.
|
| |
Global subdomain offset in global coordinate system.
Represents the offset of a subdomain within the global computational domain. Used in distributed-memory (MPI) parallelism to specify subdomain position.
- Note
- Zero-cost:
sizeof(GlobalOffset) == sizeof(Int3)
-
Trivially copyable: No heap allocation or deep copy
Global subdomain offset in global coordinate system.
Definition strong_types.hpp:284
Represents the global simulation domain (the "world").
Definition world.hpp:91
◆ GlobalOffset()
| pfc::GlobalOffset::GlobalOffset |
( |
const Int3 & |
v | ) |
|
|
inline |
Construct from Int3 (implicit for backward compatibility)
- Parameters
-
| v | Offset in each dimension |
◆ get()
| const Int3 & pfc::GlobalOffset::get |
( |
| ) |
const |
|
inlinenoexcept |
Get underlying value.
- Returns
- Reference to underlying Int3
◆ operator const Int3 &()
| pfc::GlobalOffset::operator const Int3 & |
( |
| ) |
const |
|
inlinenoexcept |
Implicit conversion to Int3.
- Returns
- Reference to underlying Int3
◆ operator!=()
Inequality comparison.
- Parameters
-
- Returns
- true if values are not equal
◆ operator==()
Equality comparison.
- Parameters
-
- Returns
- true if values are equal
The documentation for this struct was generated from the following file: