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

Remove interstitial variables for land and ice emissivity and update the land and ice emissivity in the routine setemis in CCPP #393

Merged
merged 341 commits into from
Oct 22, 2021

Conversation

SMoorthi-emc
Copy link
Contributor

@SMoorthi-emc SMoorthi-emc commented Sep 21, 2021

Description

(Instructions: this, and all subsequent sections of text should be removed and filled in as appropriate.)
Provide a detailed description of what this PR does.
What bug does it fix, or what feature does it add?
Is a change of answers expected from this PR?
This PR removes interstitial variables representing land and ice emissivity and updates the calculation of emissivity in setemis routine of radiation_surface.f. This update automatically makes the NoahMP restart reproducible.

Issue(s) addressed

Link the issues to be closed with this PR, whether in this repository, or in another repository.
(Remember, issues should always be created before starting work on a PR branch!)

Testing

How were these changes tested?
What compilers / HPCs was it tested with?
Are the changes covered by regression tests? (If not, why? Do new tests need to be added?)
Have the ufs-weather-model regression test been run? On what platform?

  • Will the code updates change regression test baseline? If yes, why? Please show the baseline directory below.
  • Please commit the regression test log files in your ufs-weather-model branch
    The baselines are expected to change as the surface emissivity calculation over ice has changed. In the coupled model the chnage only affects lake ice. For RUC LSM, as emissivity is in that LSM, it should have any impact.

Dependencies

If testing this branch requires non-default branches in other repositories, list them.
Those branches should have matching names (ideally)

Do PRs in upstream repositories need to be merged first?
If so add the "waiting for other repos" label and list the upstream PRs

  • waiting on noaa-emc/nems/pull/<pr_number>
  • waiting on noaa-emc/fv3atm/pull/<pr_number>
    Yes, ccpp-physics PR #736 should be merge first

@climbfuji
Copy link
Collaborator

I prefer not to depend on a compiler to optimize. I think what I have is better.

I wouldn't be surprised if the compiler threw away line 2494 and used Dusan's suggestion. We could check by letting the Intel compiler write out its optimizations.

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 19, 2021 via email

@DusanJovic-NOAA
Copy link
Collaborator

I prefer not to depend on a compiler to optimize. I think what I have is better.

Are you sure it's better.

https://godbolt.org/z/jxx84Eazd

I think you should trust compilers more. I do not think we can (or should) try to outsmart compiles these days

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

<suite name="FV3_GFSv17alpha_cpldnsstsas_ugwp" version="1">
Copy link
Collaborator

Choose a reason for hiding this comment

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

What difference is this suite file from the current P7 suite file which uses sas, nsst, noahmp, ugwp and ca?

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

<suite name="FV3_GFSv17alp_cpldnsstsasugwpnoahmp" version="1">
Copy link
Collaborator

Choose a reason for hiding this comment

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

What difference is this suite file from the current P7 suite file which uses sas, nsst, noahmp, ugwp and ca?

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 19, 2021 via email

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

<suite name="FV3_GFSv17alp_cpldnsstrasnoahmp" version="1">
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove this one if the next suite file FV3_GFSv17alp_cpldnsstrasugwpnoahmp is working?

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 19, 2021 via email

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 19, 2021 via email

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 19, 2021 via email

@SMoorthi-emc
Copy link
Contributor Author

Nevetheless, my change uses imported ULW, if it is nonzero; otherwise, it computes based on ice skin temperature assuming emissivity for ice as in radiation_surface.f.

@junwang-noaa
Copy link
Collaborator

Thanks for the explanation.

@climbfuji
Copy link
Collaborator

I merged the ccpp-physics PR, new hash is b12e6c3 - please update the submodule pointer in your fv3atm PR.

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 22, 2021 via email

@junwang-noaa
Copy link
Collaborator

@SMoorthi-emc Can you check if you pushed the code changes? The PR does not point to CCPP main branch, there are still 11 changed files including ccpp physics.

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 22, 2021 via email

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 22, 2021 via email

Copy link
Collaborator

@climbfuji climbfuji left a comment

Choose a reason for hiding this comment

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

The submodule pointer for ccpp-physics is correct. But .gitmodules will need to be reverted.

The decision about the additional suite definition files lies with the FV3 code managers.

.gitmodules Outdated
url = https://github.com/NCAR/ccpp-physics
branch = main
url = https://github.com/SMoorthi-emc/ccpp-physics
branch = SM_Sept21_PR
Copy link
Collaborator

Choose a reason for hiding this comment

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

.gitmodules will need to be reverted

@SMoorthi-emc
Copy link
Contributor Author

SMoorthi-emc commented Oct 22, 2021 via email

@DusanJovic-NOAA DusanJovic-NOAA changed the title Sm sept21 pr Remove interstitial variables for land and ice emissivity and update the land and ice emissivity in the routine setemis Oct 22, 2021
@DusanJovic-NOAA DusanJovic-NOAA changed the title Remove interstitial variables for land and ice emissivity and update the land and ice emissivity in the routine setemis Remove interstitial variables for land and ice emissivity and update the land and ice emissivity in the routine setemis in CCPP Oct 22, 2021
@junwang-noaa junwang-noaa merged commit 43c0982 into NOAA-EMC:develop Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants