diff --git a/src/atlas/functionspace/PointCloud.cc b/src/atlas/functionspace/PointCloud.cc index 4083d60d1..61388a2f5 100644 --- a/src/atlas/functionspace/PointCloud.cc +++ b/src/atlas/functionspace/PointCloud.cc @@ -207,7 +207,7 @@ PointCloud::PointCloud(const Grid& grid, const grid::Partitioner& _partitioner, owned_lonlat.reserve(size_owned); owned_grid_idx.reserve(size_owned); - auto kdtree = util::IndexKDTree(); + auto kdtree = util::IndexKDTree(config); { ATLAS_TRACE("build kdtree"); kdtree.reserve(grid.size());