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

Fix uninitialized values in cs_profile when iv == -3 #302

Merged

Conversation

spencerkclark
Copy link
Member

@spencerkclark spencerkclark commented Oct 23, 2023

Description

Following the suggestion from @lharris4 in #301 (comment), this assigns values to gam(i,km) consistent with the interior of the column when iv == -3 in cs_profile. It should be expected to change answers for non-hydrostatic simulations where fv_core_nml.kord_wz < -7.

Fixes #301

How Has This Been Tested?

This has not been tested for scientific correctness, though I have tested that the change proposed here addresses the non-reproducibility issue identified in #301. I now get bitwise-identical results every time I run the model in this configuration.

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

@lharris4 lharris4 left a comment

Choose a reason for hiding this comment

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

This should be correct. Thank you for submitting a fix so quickly.

@laurenchilutti can we bring this back into GitLab? Thanks.

This follows the suggestion of Lucas Harris in NOAA-GFDL#301 for the fix.
@spencerkclark spencerkclark force-pushed the fix-uninitialized-field branch from 71eee1f to 8f9bece Compare October 23, 2023 19:57
@spencerkclark
Copy link
Member Author

@lharris4 thanks for quickly providing the suggestion for the fix!

FYI my force push was only to update the commit message to indicate all values of kord_wz for which this is relevant, instead of referring just to kord_wz = -9.

@spencerkclark
Copy link
Member Author

FYI my force push was only to update the commit message to indicate all values of kord_wz for which this is relevant, instead of referring just to kord_wz = -9.

Apologies for potentially interfering with the CI with this rapid re-push.

@lharris4
Copy link
Contributor

@spencerkclark No problem, thank you for taking care of this.

@laurenchilutti laurenchilutti merged commit 199358c into NOAA-GFDL:main Oct 25, 2023
76 checks passed
@spencerkclark spencerkclark deleted the fix-uninitialized-field branch October 25, 2023 12:32
spencerkclark added a commit to ai2cm/SHiELD-wrapper that referenced this pull request Nov 1, 2023
This PR updates the dycore, physics, and driver NOAA-GFDL submodules in this repo to their latest `main` branches.  Now that

- NOAA-GFDL/SHiELD_physics#31
- NOAA-GFDL/atmos_drivers#31
- NOAA-GFDL/atmos_drivers#30
- NOAA-GFDL/GFDL_atmos_cubed_sphere#302

have been merged, all the required features in SHiELD are in place to bring SHiELD-wrapper up-to-par with fv3gfs-wrapper.

Note that NOAA-GFDL/SHiELD_physics#31 made changes to the long names of some of the diagnostics output in our regression test, which required a checksum update.  

I have also taken the liberty to remove the disclaimer from the README that states that changes to SHiELD are required to bring SHiELD-wrapper up-to-par with FV3GFS.  That is no longer a limiting factor, and those remaining features are implemented in open PRs in this repo.
spencerkclark added a commit to spencerkclark/GFDL_atmos_cubed_sphere that referenced this pull request Jan 25, 2024
@spencerkclark spencerkclark mentioned this pull request Jan 25, 2024
6 tasks
bensonr pushed a commit that referenced this pull request Jan 26, 2024
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.

Use of uninitialized values in fv_mapz_mod.cs_profile when iv == -3
4 participants