Skip to content

Unified ugwp#53

Merged
DomHeinzeller merged 19 commits into
NOAA-GSL:gsd/developfrom
mdtoy:unified_ugwp
Nov 17, 2020
Merged

Unified ugwp#53
DomHeinzeller merged 19 commits into
NOAA-GSL:gsd/developfrom
mdtoy:unified_ugwp

Conversation

@mdtoy
Copy link
Copy Markdown

@mdtoy mdtoy commented Oct 13, 2020

Hello,

This PR introduces the "unified_ugwp" gravity wave drag scheme, which combines three drag schemes: 1) the "cires_ugwp" scheme, 2) the GSL drag suite "drag_suite", and 3) the new "ugwp_v1" scheme developed by Valery Yudin of CIRES. The first two schemes can be regression-tested against their original respective schemes, while the "ugwp_v1" is still under development. To activate the various options, new namelist options are required, which are available from the developers.

Regards,
Mike Toy

Copy link
Copy Markdown

@DomHeinzeller DomHeinzeller left a comment

Choose a reason for hiding this comment

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

A few comments, in addition to what I said in the ufs-weather-model review. Can we reduce the number of new suite definition files to 1 or 2?

@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>

<suite name="FV3_GSD_v0_no_drag" lib="ccppphys" ver="4">
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note: for all new suite definition files, please replace

lib="ccppphys" ver="4"

with

version="1"

Comment thread io/FV3GFS_io.F90
! Replace hprime(1:10) with GSL oro stat data only when using GSL
! drag suite with large scale GWD and blocking as part of unified drag
! suite. Otherwise, original oro stat data is used.
if ( (Model%gwd_opt==3 .or. Model%gwd_opt==33) .or. &
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Aren't the first four if tests redundant, because you only end up in this block if the same tests equate to .true. in lines 661-662?

Does this block do anything if Model%do_gsl_drag_ls_bl is .false.? If not, then you can simply replace lines 661-662 with 710-712 and save yourself the if tests inside the do loop.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The test on lines 710-711 are not redundant to the ones on lines 661-662. Note the grouping of parentheses in lines 710-712: the test is (3 .or. 33) .or. ((2 .or. 22) .and. do_gsl_drag_ls_bl). In lines 661-662 it's (3 .or. 33 .or. 2 .or. 22).

If do_gsl_drag_ls_bl is .false. we still want the block (lines 710-724) to be executed if (3 .or. 33) is .true.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Got it, sorry. This is so hard to see in Git diff view!

@DomHeinzeller
Copy link
Copy Markdown

DomHeinzeller commented Nov 5, 2020

Your fv3atm PR does not contain the latest code from gsd/develop. Please do (assume the remotes are configured as upstream pointing to NOAA-GSD/fv3atm, and origin to your fork):

git remote update
git pull upstream gsd/develop
# fix conflicts if there are any
...
# Then fix the GFDL_atmos_cubed_sphere and ccpp-framework submodule pointers
git submodule update ccpp/framework
git submodule update atmos_cubed_sphere
# Check that all changes are staged
git status
git commit
git push origin unified_ugwp

This should also fix the merge conflict for ccpp-physics that GitHub complains about.

@mdtoy
Copy link
Copy Markdown
Author

mdtoy commented Nov 5, 2020

I just did the update. Thanks.

@DomHeinzeller
Copy link
Copy Markdown

This PR has been pulled into #57 and will be merged automatically. Do not merge manually.

@DomHeinzeller DomHeinzeller added the do not merge Something is wrong, do not merge label Nov 17, 2020
DomHeinzeller added a commit that referenced this pull request Nov 17, 2020
@DomHeinzeller DomHeinzeller merged commit bf5cfab into NOAA-GSL:gsd/develop Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Something is wrong, do not merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants