Skip to content

Improves buoyancy gradient calculation in GM#633

Merged
mark-petersen merged 2 commits intoMPAS-Dev:ocean/developfrom
vanroekel:ocean/improveGMdrhodx
Jul 23, 2020
Merged

Improves buoyancy gradient calculation in GM#633
mark-petersen merged 2 commits intoMPAS-Dev:ocean/developfrom
vanroekel:ocean/improveGMdrhodx

Conversation

@vanroekel
Copy link
Contributor

Currently the GM horizontal buoyancy gradient is computed at a fixed vertical index. At a number of places in the ocean this is problematic where layer thickness changes quickly between cells (especially near the bottom for partial bottom cells).

changed horizontal buoyancy gradient in GM routine to be at fixed depth
not at a fixed model index.
@vanroekel
Copy link
Contributor Author

@mark-petersen I noticed when I made changes to GM I didn't correctly compute the horizontal buoyancy gradient. It currently assumes layer thickness is constant horizontally which is a poor assumption in places. This PR fixes this, but please do check my math for the chain rule. This one will be pretty critical for water cycle, so if you can work on this as soon as you have a chance I'd really appreciate it.

@vanroekel
Copy link
Contributor Author

Passes MPAS-Ocean nightly regression suite on grizzly with gnu compiler. I'm also testing in E3SM, will post MPAS-Analysis diagnostics tomorrow after 10 years complete.

@vanroekel
Copy link
Contributor Author

vanroekel commented Jul 15, 2020

Here are some testing results All JAS MLD -- first the G-case baseline (6030v3 grid, 60 layer, GM pre this PR)

mldHolteTalleyARGO_20200625_Gbaseline_GMPAS-IAF T62_oECv3_anvil_JAS_years0001-0005

This is what I saw with Jigsaw 60-30 + 64 layers pre this PR and #608

mldHolteTalleyARGO_20200618_64LayerNewRediKPPfix_GMPAS-IAF T62_oECv3_anvil_JAS_years0001-0005

This is the same as previous, but with the changes in this PR + those in #608

mldHolteTalleyARGO_20200714_64LayerJigsawNewGMchanges_GMPAS-IAF T62_E6030r01_anvil_JAS_years0001-0005

Finally here is the same but 60 layers, the sensitivity between 60 and 64 layers is again pretty small (although still a bit larger than I remember for v1)

mldHolteTalleyARGO_20200714_60LayerJigsawNewGMchanges_GMPAS-IAF T62_E6030r01_anvil_JAS_years0001-0005

@vanroekel
Copy link
Contributor Author

@maltrud just wanted to alert you to this PR, it will. likely impact your WC14 simulations

@vanroekel
Copy link
Contributor Author

vanroekel commented Jul 15, 2020

I realize I had an issue and plotted an inconsistent figure for the old case. Unfortunately the new one doesn't look as different from the 64 layer with these changes. There still seems to be some issue with the 64 layer case. I will continue the 64 layer case to test further.

@jonbob
Copy link
Contributor

jonbob commented Jul 15, 2020

Test merge passed:

  • PET_D.T62_oEC60to30v3.GMPAS-IAF.anvil_intel
  • ERP_Ld3.ne30_oECv3_ICG.A_WCYCL1850S.anvil_intel

@vanroekel
Copy link
Contributor Author

@mark-petersen is there anything I can do to help move this PR along? It's needed for upcoming water cycle testing

@mark-petersen mark-petersen self-assigned this Jul 22, 2020
@mark-petersen
Copy link
Contributor

Tested with most recent commit. Passes nightly regression suite for gnu, intel17, intel19 for debug and optimized.

jonbob added a commit to E3SM-Project/E3SM that referenced this pull request Jul 23, 2020
Update mpas-source: improve GM drhodx

This PR brings in a new mpas-source submodule with changes only to the ocean
core. Currently the GM horizontal buoyancy gradient is computed at a fixed
vertical index. At a number of places in the ocean this is problematic where
layer thickness changes quickly between cells (especially near the bottom for
partial bottom cells).

See MPAS-Dev/MPAS-Model#633

[non-BFB]
@mark-petersen mark-petersen self-requested a review July 23, 2020 20:46
Copy link
Contributor

@mark-petersen mark-petersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, from MPAS testing, visual inspection, and Luke's E3SM tests.

@mark-petersen mark-petersen merged commit 685eaba into MPAS-Dev:ocean/develop Jul 23, 2020
jonbob added a commit to E3SM-Project/E3SM that referenced this pull request Jul 24, 2020
Update mpas-source: improve GM drhodx

This PR brings in a new mpas-source submodule with changes only to the ocean
core. Currently the GM horizontal buoyancy gradient is computed at a fixed
vertical index. At a number of places in the ocean this is problematic where
layer thickness changes quickly between cells (especially near the bottom for
partial bottom cells).

See MPAS-Dev/MPAS-Model#633

[non-BFB]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants