From 89fd5fb1b4687a192ff079da64f2dca493aefa08 Mon Sep 17 00:00:00 2001 From: Willem Deconinck Date: Mon, 11 Mar 2024 10:29:36 +0000 Subject: [PATCH] Remove assertion in PointCloud to cater for empty partitions --- src/atlas/functionspace/PointCloud.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/atlas/functionspace/PointCloud.cc b/src/atlas/functionspace/PointCloud.cc index 61388a2f5..4f2dd4c71 100644 --- a/src/atlas/functionspace/PointCloud.cc +++ b/src/atlas/functionspace/PointCloud.cc @@ -170,7 +170,6 @@ PointCloud::PointCloud(const Grid& grid, const grid::Partitioner& _partitioner, if (halo_radius == 0. || nb_partitions_ == 1) { idx_t size_halo = size_owned; - ATLAS_ASSERT(size_owned > 0); lonlat_ = Field("lonlat", array::make_datatype(), array::make_shape(size_halo, 2)); ghost_ = Field("ghost", array::make_datatype(), array::make_shape(size_halo)); global_index_ = Field("global_index", array::make_datatype(), array::make_shape(size_halo));