Skip to content
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 ocean option for Redi kappa to be set equal to GM (AMOC PR 3/6) #4867

Closed
wants to merge 14 commits into from

Conversation

mark-petersen
Copy link
Contributor

@mark-petersen mark-petersen commented Apr 4, 2022

add new option: config_Redi_closure = 'equalGM', sets RediKappa equal to gmBolusKappa everywhere. Default remains config_Redi_closure = 'constant'.

[NML]
[BFB]

@mark-petersen mark-petersen added BFB PR leaves answers BFB NML labels Apr 4, 2022
@mark-petersen
Copy link
Contributor Author

mark-petersen commented Apr 4, 2022

This PR was started with the commits in #4835 and #4864. To see the changes relevant to this PR, look at this last commit: 454cfd6

@mark-petersen mark-petersen force-pushed the mark-petersen/redi-closure-equal-gm branch from ada0fac to 454cfd6 Compare April 4, 2022 20:19
@mark-petersen mark-petersen changed the title Add ocean option for Redi kappa to be set equal to GM Add ocean option for Redi kappa to be set equal to GM (AMOC PR 3/6) Apr 5, 2022
Copy link
Contributor

@vanroekel vanroekel left a comment

Choose a reason for hiding this comment

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

Assuming @jonbob is happy with the NL changes, the actually code mods look good to me. Approving by visual inspection. It would be good though if someone could run a really short test to verify in output rediKappa = gmBolusKappa. Maybe this has been done already though.

@mark-petersen
Copy link
Contributor Author

@vanroekel I checked the output, and indeed RediKappa = gmBolusKappa when config_Redi_closure = 'equalGM'. But in the process, I realized that the ramp array, gmResolutionTaper, is only applied to GM, and not Redi (unless I missed it in the code). That would be a mistake, so I need to check carefully. It was my intention that the taper is applied uniformly to gmBolusKappa and RediKappa. Do you agree?

@vanroekel
Copy link
Contributor

Yes you are totally right, good catch there. I forgot to mention that I passed gmResolutionTaper to redi in my implementation. This could be added here or in #4864 as it is odd to just taper GM

@darincomeau
Copy link
Member

darincomeau commented Apr 6, 2022

@milenaveneziani
Copy link
Contributor

I have run a 5-year test with this branch for the SORRM that is equivalent, in terms of settings, to Darin's third set mentioned above:
https://web.lcrc.anl.gov/public/e3sm/diagnostic_output/ac.milena/20220408.CRYO1850.ne30pg2_SOwISC12to60E2r4.chrysalis.CryoBranchRediEqGM/Years1-5/

@mark-petersen
Copy link
Contributor Author

I realized that the ramp array, gmResolutionTaper, is only applied to GM, and not Redi (comment above)

Never mind. I did apply horizontal tapering to Redi this whole time. I just did it directly on init, rather than with a coefficient array.

! Add resolution taper
if (config_eddying_resolution_taper == 'none') then
! Nothing to do, as we just keep the same assignment as above.
else if (config_eddying_resolution_taper == 'ramp') then
!$omp parallel
!$omp do schedule(runtime)
do iEdge=1,nEdges
if (dcEdge(iEdge) <= config_eddying_resolution_ramp_min) then
RediKappa(iEdge) = 0.0_RKIND
else if (dcEdge(iEdge) >= config_eddying_resolution_ramp_max) then
! nothing to do, i.e. RediKappa(iCell) = RediKappa(iCell)
else
RediKappa(iEdge) = RediKappa(iEdge) &
*(dcEdge(iEdge) - config_eddying_resolution_ramp_min) &
/(config_eddying_resolution_ramp_max - config_eddying_resolution_ramp_min)

It’s only with the new ‘RossbyRadius’ tapering option in this PR that the taper changes in time, so changing RediKappa in init made sense.

@mark-petersen
Copy link
Contributor Author

This PR requires the same init and additional tapering variables as #4864, so I am closing this one and adding this single flag addition (config_Redi_closure = 'equalGM') to that PR.

@jonbob jonbob added Stealth PR has feature which, if turned on, could change climate. fka FCC and removed BFB PR leaves answers BFB labels Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do not merge mpas-ocean NML Stealth PR has feature which, if turned on, could change climate. fka FCC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants