Skip to content

Commit 89fd5fb

Browse files
committed
Remove assertion in PointCloud to cater for empty partitions
1 parent d56b06d commit 89fd5fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/atlas/functionspace/PointCloud.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ PointCloud::PointCloud(const Grid& grid, const grid::Partitioner& _partitioner,
170170

171171
if (halo_radius == 0. || nb_partitions_ == 1) {
172172
idx_t size_halo = size_owned;
173-
ATLAS_ASSERT(size_owned > 0);
174173
lonlat_ = Field("lonlat", array::make_datatype<double>(), array::make_shape(size_halo, 2));
175174
ghost_ = Field("ghost", array::make_datatype<int>(), array::make_shape(size_halo));
176175
global_index_ = Field("global_index", array::make_datatype<gidx_t>(), array::make_shape(size_halo));

0 commit comments

Comments
 (0)