Revert GM buoyancy gradient calculation to v1 form#687
Revert GM buoyancy gradient calculation to v1 form#687mark-petersen merged 4 commits intoMPAS-Dev:ocean/developfrom
Conversation
|
@darincomeau is seeing too little sea ice in the northern hemisphere in his SORRM runs. Could this be related? |
|
@darincomeau: what hash are you using for the SORRM runs? |
|
test merge into E3SM passes: waiting on: |
|
@vanroekel: is this the specific MPAS-Model PR that is involved in the new GM buoyancy gradient calculation?: |
|
@xylar and @darincomeau it is not clear if the v2 buoyancy gradient would result in too little sea ice. It is possible for sure as upper ocean stratification is pretty strongly affected by the choice. @milenaveneziani it is before that where it was introduced - #445 , but it was improved in the PR you mention |
@milenaveneziani the hash is |
|
@darincomeau: so #445 (merged in Apr) was there but not #633. |
|
test merge into E3SM also passed: |
|
so, @darincomeau, @xylar, I agree with @vanroekel that it is hard to say. I think best will be to restart the SORRM runs after v2 ocean is finalized, since so many changes are going in (and out) of v2 beta ocean. But maybe by then we'll have a final SORRM mesh to focus on? |
|
Yeah these runs used GM_closure=N2_dependent, and redi was off, so SORRM reruns are definitely warranted. |
|
Okay, happy to discuss next steps for SORRM but this PR isn’t the place. |
src/core_ocean/shared/mpas_ocn_gm.F
Outdated
There was a problem hiding this comment.
Some of these new arrays need nVertLevels+1. I can fix that.
There was a problem hiding this comment.
okay, thanks! I could also take a look and fix as well if you'd like
|
an update, I've tested this for 20+ years in a B-case and the results are positive. Biases are reduced pretty substantially in terms of heat uptake and MLD bias. @mark-petersen if you could give take a look I'd appreciate it. This one is high priority for WC. |
src/core_ocean/shared/mpas_ocn_gm.F
Outdated
There was a problem hiding this comment.
@vanroekel in the current PR, dzdxEdge and drhoDzTopOfEdge are allocated and set to zero but never used. I can take them out, but can you double check that not using them was intentional, rather than a copy and paste error?
There was a problem hiding this comment.
@mark-petersen this was a copy-paste error Thanks for catching that!
a2f4ce5 to
1ca85f2
Compare
|
rebased, fixed index out of bounds errors. Now passes nightly regression with gnu debug. |
|
@mattdturner This PR changes several loops to an older formulation from last year. Could you look at the OMP pragmas around the revised loops for this PR? We need to make sure it retains the newer format since #513. |
|
There were some missing Approved based on this test, and the other testing by @mark-petersen |
|
Thanks @mattdturner. I also ran a test with gnu 6 debug, passes all. |
Revert GM buoyancy gradient calculation to v1 form #687 E3SM testing suggests that the new formulation of buoyancy gradient calculation that leverages infrastructure from Redi is at least partly responsible for excessive heat uptake in v2 alpha simulations. This PR will revert those changes back to the v1 formulation.
mark-petersen
left a comment
There was a problem hiding this comment.
Reviewed code, passes stand-alone tests. Testing in E3SM now, but @vanroekel has tested as well.
This PR brings in a new mpas-source submodule with changes only to the ocean core, plus scripts updates corresponding to Registry changes in the ocean. It includes three changes to improve ocean heat uptake: * Fixes limiting on redi k33 (MPAS-Dev/MPAS-Model/pull/684); * Fixes surface buoyancy forcing calculation (MPAS-Dev/MPAS-Model/pull/690); and * Revert GM buoyancy gradient calculation to v1 form (MPAS-Dev/MPAS-Model/pull/687). [NML] [non-BFB]
Update mpas-source: GM/Redi and surface buoyancy fixes This PR brings in a new mpas-source submodule with changes only to the ocean core, plus scripts updates corresponding to Registry changes in the ocean. It includes three changes to improve ocean heat uptake: * Fixes limiting on redi k33 (MPAS-Dev/MPAS-Model/pull/684); * Fixes surface buoyancy forcing calculation (MPAS-Dev/MPAS-Model/pull/690); and * Revert GM buoyancy gradient calculation to v1 form (MPAS-Dev/MPAS-Model/pull/687). [NML] [non-BFB]
…an/develop Revert GM buoyancy gradient calculation to v1 form MPAS-Dev#687 E3SM testing suggests that the new formulation of buoyancy gradient calculation that leverages infrastructure from Redi is at least partly responsible for excessive heat uptake in v2 alpha simulations. This PR will revert those changes back to the v1 formulation.
E3SM testing suggests that the new formulation of buoyancy gradient calculation that leverages infrastructure from Redi is at least partly responsible for excessive heat uptake in v2 alpha simulations. This PR will revert those changes back to the v1 formulation.