atlas::util::UniqueLonLat class

Compute unique positive index for a element This class is a functor initialised with the nodes.

Constructors, destructors, conversion operators

UniqueLonLat(const mesh::Nodes&)
Constructor, needs nodes functionspace to cache the lonlat field.
UniqueLonLat(const Mesh&)
Constructor.

Public functions

auto operator()(int node) const -> uidx_t
Compute unique positive index of a node defined by node index.
auto operator()(int node, const PeriodicTransform& transform) const -> uidx_t
auto operator()(const mesh::Connectivity::Row& elem_nodes) const -> uidx_t
Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.
auto operator()(const mesh::Connectivity::Row& elem_nodes, const PeriodicTransform& transform) const -> uidx_t
Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.
auto operator()(const int elem_nodes[], size_t npts) const -> uidx_t
Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.
void update()
update the internally cached lonlat view if the field has changed

Function documentation

uidx_t atlas::util::UniqueLonLat::operator()(int node) const

Compute unique positive index of a node defined by node index.

Returns uidx_t Return type depends on ATLAS_BITS_GLOBAL [32/64] bits

uidx_t atlas::util::UniqueLonLat::operator()(const mesh::Connectivity::Row& elem_nodes) const

Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.

Returns uidx_t Return type depends on ATLAS_BITS_GLOBAL [32/64] bits

uidx_t atlas::util::UniqueLonLat::operator()(const mesh::Connectivity::Row& elem_nodes, const PeriodicTransform& transform) const

Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.

Returns uidx_t Return type depends on ATLAS_BITS_GLOBAL [32/64] bits

uidx_t atlas::util::UniqueLonLat::operator()(const int elem_nodes[], size_t npts) const

Compute unique positive index of element defined by node indices. The assumption is that the elements exist in a lon-lat domain and don't.

Returns uidx_t Return type depends on ATLAS_BITS_GLOBAL [32/64] bits