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

Implements remaining changes for gustiness feature for EAMv2 #2789

Merged
merged 19 commits into from
Mar 14, 2019

Conversation

singhbalwinder
Copy link
Contributor

This PR completes the gustiness feature in EAM by implementing all the right namelist settings for gustiness. A new use case file 2000_cam5_av1c-04p2_gust.xml has all the namelist values for invoking this feature using FC5AV1C-L compset. Several new namelist variables required for this feature will now appear in the namelist (atm_in).

A test mod directory is also created to add a test for this feature in the nightly testing.

[BFB]
[NML]

Adds clubb_c1b=clubb_c1 in all files which had clubb_c1

[BFB] - Bit-For-Bit
clubb_c1b was in usecases but not in the namelist_definitions.xml file.
It has to be defined in namelist_definitions.xml for it to appear in
atm_in file.

[BFB] - Bit-For-Bit
[BFB] - Bit-For-Bit
[NML] - Namelist Changing

See confluence for a more detailed description about these tags.
[BFB] - Bit-For-Bit
[FCC] - Flag Climate Changing
[Non-BFB] - Non Bit-For-Bit
[CC] - Climate Changing
[NML] - Namelist Changing

See confluence for a more detailed description about these tags.
@singhbalwinder
Copy link
Contributor Author

I will add a test shortly to go with this PR.

Copy link
Contributor

@polunma polunma left a comment

Choose a reason for hiding this comment

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

  1. There should be changes to cam_export.
  2. vmag_gust should be initialized to 0 in physpkg

@rljacob
Copy link
Member

rljacob commented Mar 12, 2019

@wlin7 you can start merging this.

wlin7 added a commit that referenced this pull request Mar 12, 2019
Implements remaining changes for gustiness feature for EAMv2

This PR completes the gustiness feature in EAM by implementing all the right namelist settings for gustiness. A new use case file 2000_cam5_av1c-04p2_gust.xml has all the namelist values for invoking this feature using FC5AV1C-L compset. Several new namelist variables required for this feature will now appear in the namelist (atm_in).

A test mod directory is also created to add a test for this feature in the nightly testing.

[BFB]
[NML]
@wlin7
Copy link
Contributor

wlin7 commented Mar 12, 2019

Merged to next. Conflict in tests.py was on the structure of listing the tests. Added the new test "ERS_Ld5.ne4_ne4.FC5AV1C-L.cam-gust_param" following the current format.

@rljacob
Copy link
Member

rljacob commented Mar 13, 2019

This PR is not bfb.

@singhbalwinder
Copy link
Contributor Author

It should be BFB. I will ask @wlin7 to merge it to next again once we isolate the NBFB change. If I can't find it today, I will revert it back.

@@ -2500,36 +2500,37 @@ real(r8) :: ugust ! function: gustiness as a function of convective rainfall

!PMA adds gustiness and tpert

vmag_gust(:) = 1._r8
vmag_gust(:) = 0._r8
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@polunma :This is one of the changes causing NBFB behavior. Reverting it back to 1._r8 fixes it.

cam_out%ubot(i) = state%u(i,pver) * vmag_gust(i)
cam_out%vbot(i) = state%v(i,pver) * vmag_gust(i)
cam_out%ubot(i) = state%u(i,pver) * (vmag_gust(i)+vmag(i))/vmag(i)
cam_out%vbot(i) = state%v(i,pver) * (vmag_gust(i)+vmag(i))/vmag(i)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@polunma : These two new lines using vmag(i) are also causing NBFB answers.

Copy link
Contributor

Choose a reason for hiding this comment

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

No this won't work. I will provide a fix.

[BFB] - Bit-For-Bit
[NML] - Namelist Changing

See confluence for a more detailed description about these tags.
@singhbalwinder
Copy link
Contributor Author

Thanks @polunma ! I have pushed your new fix which fixes the NBFB issue!

@wlin7 : Please merge this branch again to next.

@wlin7
Copy link
Contributor

wlin7 commented Mar 13, 2019

FYI: The non-BFB is due to a roundoff. If it is changed to
cam_out%ubot(i) = state%u(i,pver) * ((vmag_gust(i)+vmag(i))/vmag(i))
cam_out%vbot(i) = state%v(i,pver) * ((vmag_gust(i)+vmag(i))/vmag(i))
To always compute the multiplier first before applying to the wind, it gives BFB. This is based on SCM tests.

The if-conditional control works just as well. Any preference?

[BFB] - Bit-For-Bit
[NML] - Namelist Changing

See confluence for a more detailed description about these tags.
wlin7 added a commit that referenced this pull request Mar 14, 2019
Implements remaining changes for gustiness feature for EAMv2

Remerged following an update to fix NFBF due to changes in camsrfexch.F90

[BFB]
@wlin7
Copy link
Contributor

wlin7 commented Mar 14, 2019

Merged to next (only the updated camsrfexch.F90 involved as the previous merge was not reverted).

@wlin7
Copy link
Contributor

wlin7 commented Mar 14, 2019

Submit request to bless sandiatoss3 next tests:

ERS_Ld5.ne4_ne4.FC5AV1C-L.sandiatoss3_intel.cam-gust_param (new, and a baseline probably created following previous merge)

SMS_D_Ln5.ne4_ne4.FC5AV1C-L.sandiatoss3_intel.cam-cosplite_nhtfrq5 (re-bless, DIFF due to PR # 2770; it was blessed after the 1st merging of PR #2789 that contains NBFB change. This request is to reverse the DIFF due to #2789 )

For record because there were too many DIFFs yesterday due to #2789: there are two other DIFFS but very likely not due to PR #2770.

SMS_Ln9.ne4_ne4.FC5AV1C-L.sandiatoss3_intel.cam-outfrq9s (DIFFs for melvin next and master as well)
SMS_D_Ld1.ne30_oECv3_ICG.A_WCYCL1850S_CMIP6.sandiatoss3_intel.allactive-v1cmip6

@rljacob
Copy link
Member

rljacob commented Mar 14, 2019

Please merge this to master.

@wlin7 wlin7 merged commit 751d2f5 into master Mar 14, 2019
wlin7 added a commit that referenced this pull request Mar 14, 2019
Implements remaining changes for gustiness feature for EAMv2

This PR completes the gustiness feature in EAM by implementing all the right namelist settings
for gustiness. A new use case file 2000_cam5_av1c-04p2_gust.xml has all the namelist
values for invoking this feature using FC5AV1C-L compset. Several new namelist variables
required for this feature will now appear in the namelist (atm_in).

A test mod directory is also created to add a test for this feature in the nightly testing.

[BFB]
[NML]
@wlin7
Copy link
Contributor

wlin7 commented Mar 14, 2019

Merged to master. @singhbalwinder verified this PR does not cause the other two DIFF on sandiatoss3 (cam-outfrq9s and allactive-v1-cmip6). All NML DIFFs requested to be blessed (19 sandiatoss3, 4 melvin, 1 cori-knl).

jgfouca pushed a commit that referenced this pull request Jun 25, 2019
Implements remaining changes for gustiness feature for EAMv2

This PR completes the gustiness feature in EAM by implementing all the right namelist settings
for gustiness. A new use case file 2000_cam5_av1c-04p2_gust.xml has all the namelist
values for invoking this feature using FC5AV1C-L compset. Several new namelist variables
required for this feature will now appear in the namelist (atm_in).

A test mod directory is also created to add a test for this feature in the nightly testing.

[BFB]
[NML]
jgfouca pushed a commit that referenced this pull request Jun 26, 2024
…fixes

Automatically Merged using E3SM Pull Request AutoTester
PR Title: Fixes to get valgrind working on mappy
PR Author: jgfouca
PR LABELS: AT: AUTOMERGE, AT: Integrate Without Testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Atmosphere BFB PR leaves answers BFB NML
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants