Skip to content

Commit

Permalink
Add Mesh::nb_partitions with deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Sep 25, 2023
1 parent 66d8e5f commit 4be064c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/atlas/mesh/Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ class Mesh : DOXYGEN_HIDE(public util::ObjectHandle<mesh::detail::MeshImpl>) {

idx_t nb_parts() const { return get()->nb_parts(); }

[[deprecated("Use 'atlas::mesh::Mesh::nb_parts() instead")]] // added in v0.35.0
idx_t nb_partitions() const { return nb_parts(); }

std::string mpi_comm() const { return get()->mpi_comm(); }

void updateDevice() const { get()->updateDevice(); }
Expand Down

0 comments on commit 4be064c

Please sign in to comment.