From 4be064c9468c0251815ca340d7a689652005ff96 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Mon, 25 Sep 2023 19:54:47 +0200 Subject: [PATCH] Add Mesh::nb_partitions with deprecation warning --- src/atlas/mesh/Mesh.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/atlas/mesh/Mesh.h b/src/atlas/mesh/Mesh.h index 66cef013b..1b7878465 100644 --- a/src/atlas/mesh/Mesh.h +++ b/src/atlas/mesh/Mesh.h @@ -116,6 +116,9 @@ class Mesh : DOXYGEN_HIDE(public util::ObjectHandle) { 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(); }