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

Test UFS_UTILS with combined IP/IP2 library #242

Closed
GeorgeGayno-NOAA opened this issue Jan 20, 2021 · 24 comments · Fixed by #695
Closed

Test UFS_UTILS with combined IP/IP2 library #242

GeorgeGayno-NOAA opened this issue Jan 20, 2021 · 24 comments · Fixed by #695
Assignees
Labels
maintenance Basic upkeep

Comments

@GeorgeGayno-NOAA
Copy link
Collaborator

@kgerheiser is combining IP and IP2 into a single library. Test this library with UFS_UTILS.

NOAA-EMC/NCEPLIBS-ip2#29

@GeorgeGayno-NOAA GeorgeGayno-NOAA added the maintenance Basic upkeep label Jan 20, 2021
@GeorgeGayno-NOAA GeorgeGayno-NOAA self-assigned this Jan 20, 2021
@edwardhartnett
Copy link
Collaborator

Please build a test for this in GitHub actions, so we call all see it. That is, write a test that downloads and builds ip/ip2, then builds and runs UFS_UTILS tests. For an example, see this workflow, which builds a fixed version of pnetcdf, caches it, and then builds PIO with it: https://github.com/NCAR/ParallelIO/blob/master/.github/workflows/cmake.yml

@GeorgeGayno-NOAA
Copy link
Collaborator Author

@kgerheiser I ran the snow2mdl regression test on Hera. The test ran to completion. I did not expect bit identical results, but the differences in the snow cover field are larger than they should be. The cover field is shifted from the baseline. Snow cover is set from IMS snow data, which uses an elliptical earth. So my guess is IPLIB is using the wrong radius of the earth or does not realize an elliptical earth was used. The IMS data is grib1, which sets earth radius in GDS octet 17: https://www.nco.ncep.noaa.gov/pmb/docs/on388/table7.html

@GeorgeGayno-NOAA
Copy link
Collaborator Author

General comment: since this is a very big change to the library, should the first digit of the version number be incremented? i.e., 4.0.0?

@kgerheiser
Copy link
Contributor

That's a good lead. I'll take a look there.

General comment: since this is a very big change to the library, should the first digit of the version number be incremented? i.e., 4.0.0?

Yes, that would be appropriate.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

@kgerheiser Can you create "2d-array", "1d-array" and scalar versions of gdswzd for both grib1 and grib2? (it looks like scalar grib1 is missing). I call gdswzd with scalars for grib1 in my snow program. To get it to compile, I have to call 'gdswzd_grib1'. For the non-scalar calls, I am able to call the gdswzd interface directly.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 27, 2021
Updates to compile with the combined ip/ip2 library.

Issue ufs-community#242
@kgerheiser
Copy link
Contributor

I think I found the problem. You were right about the earth radius. I wasn't setting the WGS-84 radius when it was an elliptical Earth.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Apr 14, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Apr 21, 2021
@GeorgeGayno-NOAA
Copy link
Collaborator Author

@kgerheiser My branch won't compile anymore. You test library was here: /home/Kyle.Gerheiser/NCEPLIBS-ip2.

@kgerheiser
Copy link
Contributor

Oh, I deleted that yesterday.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Apr 26, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Apr 27, 2021
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue May 19, 2021
@kgerheiser
Copy link
Contributor

grid_gen, snow2mdl, and global_cycle tests pass

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Aug 3, 2021
@GeorgeGayno-NOAA
Copy link
Collaborator Author

@kgerheiser Has IP v4 been installed on any of our machines? This issue has been open for a while.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

@Hang-Lei-NOAA Has IP v4 been installed on any of our machines?

@Hang-Lei-NOAA
Copy link

Hang-Lei-NOAA commented Sep 7, 2022 via email

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 7, 2022
@Hang-Lei-NOAA
Copy link

Hang-Lei-NOAA commented Sep 8, 2022 via email

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 9, 2022
Increase the rank of some arrays to comply with the new
gdswzd and ipolates routine interfaces.

Fixes ufs-community#242.
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 9, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 9, 2022
@GeorgeGayno-NOAA
Copy link
Collaborator Author

To ease the transition between IP library v3.3.3 and v4.0, the rank of some arrays were changed to comply with the gdswzd and ipolates routine interface changes. Therefore, the regression tests have to be rerun using both v3.3.3 and v4.0.

First, I tested the branch at 59292b4 using IP library v3.3.3 (on Cactus). The snow2mdl, global_cycle and grid_gen regression tests all passed as expected.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

To ease the transition between IP library v3.3.3 and v4.0, the rank of some arrays were changed to comply with the gdswzd and ipolates routine interface changes. Therefore, the regression tests have to be rerun using both v3.3.3 and v4.0.

First, I tested the branch at 59292b4 using IP library v3.3.3 (on Cactus). The snow2mdl, global_cycle and grid_gen regression tests all passed as expected.

Repeated this test on Hera. All tests passed.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

Note: To compile with v4.0, you need to uncomment the use ipolates_mod statement in ./sorc/emcsfc_snow2mdl.fd/snow2mdl.F90 and in ./orog.fd/mtnlm7_oclsm.f and adjust the build modules.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Sep 20, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 14, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 14, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 14, 2022
@GeorgeGayno-NOAA
Copy link
Collaborator Author

Commit 794304d was compiled on Orion. All consistency tests passed.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Oct 19, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 1, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 29, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Nov 29, 2022
@GeorgeGayno-NOAA
Copy link
Collaborator Author

Tested Hang's ip v4.0 on Cactus. Using 5fbfa1f, the chgres_cube, global_cycle, grid_gen and snow2mdl consistency tests all passed.

GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 1, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 1, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 7, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Dec 19, 2022
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 3, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 10, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 19, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Jan 25, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 2, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 2, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 7, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 8, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 9, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 16, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 21, 2023
GeorgeGayno-NOAA added a commit to GeorgeGayno-NOAA/UFS_UTILS that referenced this issue Feb 22, 2023
GeorgeGayno-NOAA added a commit that referenced this issue Feb 22, 2023
The IP and IP2 libraries were combined as IPLIB v4.0.0. Update 
UFS_UTILS to use this version. This update was done so that
it is backwards compatible with IPLIB v3.

Fixes #242
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Basic upkeep
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants