ecmwf / atlas

A library for numerical weather prediction and climate modelling
https://sites.ecmwf.int/docs/atlas
Apache License 2.0
107 stars 41 forks source link

Some interpolators fail with zero-sized target functionspace. #205

Closed odlomax closed 3 months ago

odlomax commented 3 months ago

Sometimes, when performing an interpolation, situations arise where one or more partitions have zero-sized target functionspaces.

As reported in jcsda oops #2664, an error occurs when the target functionspace of the Structured2D interpolation method has zero size. This triggers an error where the eckit::SparseMatrix fails to construct with zero non-zero elements. If we avoid constructing the interpolation object, MPI deadlocks can occur.