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

release/public-v2: Various chgres_cube bug fixes and code improvements #229

Conversation

LarissaReames-NOAA
Copy link
Collaborator

This PR addresses all of the listed items in Issue #228. Code compiles and passes all current and future regression tests on Jet.

…properly formatted such that the code finds no variable entries to read.

Addresses Issue ufs-community#228
If the user provides a geogrid file and any of the calls in this process fail, the code will now fail on an error. Also, added a check to ensure input and geogrid grid sizes match.

Addresses Issue ufs-community#228
@GeorgeGayno-NOAA GeorgeGayno-NOAA changed the title Various bug fixes and code improvements Various chgres_cube bug fixes and code improvements Nov 20, 2020
@LarissaReames-NOAA LarissaReames-NOAA changed the title Various chgres_cube bug fixes and code improvements release/public-v2: Various chgres_cube bug fixes and code improvements Nov 20, 2020
sorc/chgres_cube.fd/atmosphere.F90 Outdated Show resolved Hide resolved
@@ -4956,6 +4958,8 @@ subroutine read_input_sfc_grib2_file(localpet)
where(slmsk_save == 1) dummy2d_i = 1

call search(dummy2d_8,dummy2d_i,i_input,j_input,1,230)
else
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's this do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This fixes a problem I encountered using HRRR data with surface climo fields. The input data from wgrib2 is 4-bit, but esmf expects 8 bit, so all data has to be converted using the real() command, saving the 8-bit form of the data from dummy2d in to dummy2d_8, which is then broadcast using esmf. Before I added this, if sotyp_from_climo = true, the dummy2d_8 array wouldn't be re-populated with the correct soil (or fill) data from dummy2d, and it would still have the data from the previous use of dummy2d_8, which was skin temperature.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! Good catch!

@LarissaReames-NOAA LarissaReames-NOAA merged commit 0b68195 into ufs-community:release/public-v2 Nov 23, 2020
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.

2 participants