-
Notifications
You must be signed in to change notification settings - Fork 111
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
release/public-v2: Various chgres_cube bug fixes and code improvements #229
Conversation
Addresses Issue ufs-community#228
…sed erroneous soil types. Addresses Issue ufs-community#228
…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
…TILS into release/public-v2
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this do?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Good catch!
a2f74fb
to
d16cc0e
Compare
This PR addresses all of the listed items in Issue #228. Code compiles and passes all current and future regression tests on Jet.