mom-ocean / MOM5

The Modular Ocean Model
https://mom-ocean.github.io/
GNU Lesser General Public License v3.0
82 stars 95 forks source link

Allow passing salt flux restoring/correction to generic tracers #389

Open dougiesquire opened 3 months ago

dougiesquire commented 3 months ago

We've recently suggested changes to NOAA-GFDL/ocean_BGC generic_tracers to provide a way to pass the salt restoring/correction applied by the ocean model to generic tracers. Those proposed changes add a new subroutine generic_tracer::generic_tracer_update_from_coupler that receives the salt flux and passes it on the generic tracer's update_from_coupler routine if it is needed. Currently this feature is only utilised by the WOMBAT generic tracers.

To use this feature requires corresponding changes to the calling ocean model. Below is a summary of how the relevant MOM5 code is implemented currently, and proposed changes (bold text indicates new routines).

Currently:

Proposed changes

I'll follow up with a PR demonstrating the proposed changes.

Import notes: