GEOS-ESM / MAPL

MAPL is a foundation layer of the GEOS architecture, whose original purpose is to supplement the Earth System Modeling Framework (ESMF)
https://geos-esm.github.io/MAPL/
Apache License 2.0
27 stars 17 forks source link

Reallocate field when relevant attributes change. #3065

Open tclune opened 3 hours ago

tclune commented 3 hours ago

When attributes of an input stateitem in a coupler change, the corresponding attributes in the output stateitem often need to change as well. Some of these changes require the field to be reallocated.

We need an interface that looks at the changed attributes and reallocates the field if necessary. To do this we unfortunately must circumvent ESMF interfaces for now to deallocate the data while leaving the field object itself in place. Then we can use FieldComplete in the usual manner.