forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement flux accumulation for generic tracers
- generic_tracer_coupler_get has to be called from step_MOM() rather than MOM_generic_tracer_column_physics() so that the generic tracer fluxes can be accumulated on steps that do not "modify" tracers, particularly when tracer timestep spans dt_cpld ( dt_therm > dt_cpld) - the fluxes need to be accumulated with the same weight that MOM tracers are being accumulated, hence the need to expose the "weight" from MOM_forcing_type.F90 - the g_tracer_send_diag calls which writes diagnostics for the generic tracers needs to be relocated to where it is called every tracer timestep (and not every dt_cpld) to avoid having wrong instant or mean values in their diagnostics, particularly when tracer timestep spans dt_cpld ( dt_therm > dt_cpld)
- Loading branch information
1 parent
f3a9066
commit eac5c65
Showing
3 changed files
with
32 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters