ecmwf-ifs / field_api

Apache License 2.0
3 stars 8 forks source link

FIELD_ARRAY: safely handle 0-sized fields #41

Closed awnawab closed 4 months ago

awnawab commented 4 months ago

This PR adds a check so that FIELD_ARRAY does not wrap 0-sized fields. It also adds the P_FIELD pointer member which we need for our Loki recipes to move from thread-local to shared data structures. Finally, there is a small bug fix to the fypp detection mechanism.

pmarguinaud commented 4 months ago

Good you thought about zero-sized arrays.