-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add choice of computed or constant ocean GM gravity wave speed (AMOC PR 1/6) #4835
Conversation
96a2036
to
f2253c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mark-petersen this is a great idea to implement, thanks for the PR. I had some confusion though when going through it. It's possible I'm not understanding something
@mark-petersen I realize I got ,confused by your PR description and it led to incorrect comments on my review. Your title suggests you are implementing a spatially variable computation of c and this made me thing of
I think with those first 3 clarifications this PR will be good to go from my view. |
c_min = gm_minBclModeSpeed_constant + gm_minBclModeSpeed_compute_on*max(0.01_RKIND,sumN2/ltSum*(0.5*(lt1+lt2))) | ||
|
||
! Compute the speed of the first baroclinic mode from the Brunt-Vaisala frequency. | ||
cGMphaseSpeed(iEdge) = max(c_min, & | ||
sumN2/(config_GM_spatially_variable_baroclinic_mode*3.141592_RKIND)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vanroekel I changed the flag names to
config_GM_constant_bclModeSpeed = 0.3
config_GM_minBclModeSpeed_method = 'constant'
The only substantial change is the line above, but I use fixed coefficient values set on init to avoid if statements inside the loop.
I rebased this on today's master. It now passes nightly suite bfb with both gnu and intel against master. Also passes:
@stephenprice, this is ready for the next cryo test in the sequence. You only needed to change this flag to
to invoke the changes in this PR. |
6ab06ba
to
91b5bac
Compare
My 5-year test with ECwISC30to60E2r1, this branch, and the setting MPAS-Analysis for this branch: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mark-petersen this looks great. This clears up the misunderstanding I had on this PR in my initial comments. I'm approving by visual inspection.
@mark-petersen but to verify this PR is BFB right? It looked it to me |
Yes, if |
@jonbob this is ready to merge when the repo is open. Thanks. |
@mark-petersen - the PR description is no longer current with the code changes? I don't see those variable names in the code |
@mark-petersen - I updated the bld files with output from the auto-generating scripts. There were some changes to the namelist definition file, if you want to make sure you agree. |
Thanks @jonbob, I updated the description. Your updated scripts are correct. |
@mark-petersen - this PR is failing SMS_D_Ld3.T62_oQU120.CMPASO-IAF.chrysalis_intel. I'll look at it more this evening |
@jonbob this now passes |
That fix makes sense, @mark-petersen. I'll re-test and aim to merge today |
Add choice of computed or constant ocean GM gravity wave speed Currently the internal gravity wave speed (first baroclinic mode) in the ocean GM parameterization is a constant, previously named config_GM_constant_gravWaveSpeed but changed in this PR to config_GM_constant_bclModeSpeed. This remains the default, but this PR adds a new flag, config_GM_minBclModeSpeed_method: If 'constant' (the default) then use config_GM_constant_bclModeSpeed. If 'computed' then compute the gravity wave speed at every edge at every time step using the Brunt-Vaisala frequency. This functionality was tested by the AMOC focus team in 2021 on the branch amoc-experimental-branch. [NML] [BFB]
passed:
merged to next |
merged to master and expected NML DIFFs blessed |
Currently the internal gravity wave speed (first baroclinic mode) in the ocean GM parameterization is a constant, previously named
config_GM_constant_gravWaveSpeed
but changed in this PR toconfig_GM_constant_bclModeSpeed
. This remains the default, but this PR adds a new flag,config_GM_minBclModeSpeed_method
: If 'constant' (the default) then useconfig_GM_constant_bclModeSpeed
. If 'computed' then compute the gravity wave speed at every edge at every time step using the Brunt-Vaisala frequency. This functionality was tested by the AMOC focus team in 2021 on the branchamoc-experimental-branch
.[NML]
[BFB]