* Fixed sign error in thickness diffuse work#1050
Conversation
Codecov Report
@@ Coverage Diff @@
## dev/gfdl #1050 +/- ##
============================================
- Coverage 45.06% 45.06% -0.01%
============================================
Files 212 212
Lines 62624 62629 +5
============================================
+ Hits 28224 28226 +2
- Misses 34400 34403 +3
Continue to review full report at Codecov.
|
This patch fixes a bug in the sign of the tendency of the work by thickness diffusion in the top layer along the u-points. This resolves a variance in model runs after a 90-degree rotation, and results are now consistent with the work_v calculation. This patch will change answers for any runs using work-based thickness diffusion.
|
Via @adcroft, I need to add a flag to reproduce the old behavior before merging this. |
|
Does this bug fix resolve the issues raised by @gustavo-marques with negative GM work term? |
|
We expect so but don't know yet. |
Added a flag to reproduce the old GM work calculation in the top layer with the incorrect sign. The flag is currently enabled on default, which uses the old incorrect expression.
adcroft
left a comment
There was a problem hiding this comment.
Pending test: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/pipelines/9596
|
This patch does not fix NOAA-GFDL#965. GMwork is still positive at high latitudes, see figure below. This can be reproduced by the following changes in MOM6-examples/ice_ocean_SIS2/OM4_05:
|
|
Is that the same color scale as for the figures in #965 ? If so then it does appear to be better. |
No, it is not the same scale. Below is a comparison between before (A) and after (B) this fix. The maximum value is larger after the fix but it does seem to reduce locations with positive values. Mininum= -0.17472036 Maximum= 0.0049198894 |


This patch fixes a bug in the sign of the tendency of the work by
thickness diffusion in the top layer along the u-points.
This resolves a variance in model runs after a 90-degree rotation, and
results are now consistent with the work_v calculation.
This patch will change answers for any runs using work-based thickness
diffusion.