nextsimhub / nextsimdg

neXtSIM_DG : next generation sea-ice model with DG
https://nextsim-dg.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
10 stars 13 forks source link

Simplify data management in thermodynamics #725

Open einola opened 3 weeks ago

einola commented 3 weeks ago

PrognosticData holds the main prognostic variables as initial, write-only values, while other model subroutines (e.g., IceGrowth and Dynamics) hold a copy of them as intermediary, read-write values.

There is no need to carry two data versions, which may give rise to unexpected errors.