Skip to content

Commit

Permalink
Remove assertion in PointCloud to cater for empty partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Mar 11, 2024
1 parent d56b06d commit 89fd5fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/atlas/functionspace/PointCloud.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>(), array::make_shape(size_halo, 2));
ghost_ = Field("ghost", array::make_datatype<int>(), array::make_shape(size_halo));
global_index_ = Field("global_index", array::make_datatype<gidx_t>(), array::make_shape(size_halo));
Expand Down

0 comments on commit 89fd5fb

Please sign in to comment.