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.
Added "skip_diags" argument to extractFluxes1d()
- The resetting/zeroing and accumulation of diagnostic arrays within extractFluxes1d() assumes the routine is called only once. With the need for a buoyancy flux in ePBL, it is currently being called twice. - This was leading to the "hdfs" diagnostic accumulating too much. - I have added a flag to indicate to not calculate the diagnostic fields. - A better solution will be to only call once but calculate a buoyancy flux in extractFluxes1d() but this will require more coding since the latter is dependent on the equation of state and needs a different interpretation of mass fluxes. - I checked that this changes "hdfs" but have not checked whether other diagnostics were affected. - Closes NOAA-GFDL/MOM6-examples#128 but I opened #543 to make a note that we have more tidying up to do.
- Loading branch information
Showing
2 changed files
with
102 additions
and
90 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