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: fix problem linking to static NetCDF libraries #198

Conversation

climbfuji
Copy link
Contributor

This PR updates the submodule pointer for CMakeModules to fix a problem when linking against static NetCDF libraries.

The issue is that the NetCDF C library is not added automatically to the NetCDF Fortran imported target by the current FindNetCDF.cmake macro. @DusanJovic-NOAA fixed this recently in CMakeModules, see NOAA-EMC/CMakeModules#42. The solution is to simply forward the submodule pointer to the current head of develop of CMakeModules (hash 8aaef34fa720212cf14fe50e3f959ac8036bf388).

This has been tested on Cheyenne with the Intel compiler, using the NCEPLIBS-ufs-v2.0.0 installation (which has static NetCDF libraries only).

@fossell
Copy link
Contributor

fossell commented Oct 7, 2020

@climbfuji - Approved. Please merge when you're ready.

@climbfuji climbfuji merged commit 201a197 into NOAA-EMC:release/public-v2 Oct 7, 2020
EricJames-NOAA pushed a commit to EricJames-NOAA/UPP that referenced this pull request Dec 14, 2022
## DESCRIPTION OF CHANGES:
* In setup.sh and generate_FV3LAM_wflow.sh, remove temporary codes that fix bugs in the FV3_GFS_2017_gfdlmp_regional suite definition file because those bugs have been fixed (in the ufs-weather-model repo).
* In setup.sh, remove block of code that is no longer necessary because chgres_cube can now initialize from external model data with either 4 or 9 soil levels, and run with LSMs of either 4 or 9 soil levels.
* Remove modifications to LD_LIBRARY_PATH in exregional_run_fcst.sh.
* For the make_ics and make_lbcs tasks, move the setting of APRUN and other machine-specific actions from the J-job to the ex-script in order to be consistent with the other workflow tasks.
* Fix indentation and edit comments.
* Remove unused file load_fv3gfs_modules.sh.

## TESTS CONDUCTED: 
Ran two WE2E tests on hera, new_ESGgrid and new_GFDLgrid:
* new_ESGgrid uses the FV3_GFS_2017_gfdlmp_regional suite.  The test was successful.
* new_GFDLgrid uses the FV3_GFS_2017_gfdlmp suite.  The test was successful.

## ISSUE (optional): 
This resolves issue NOAA-EMC#198.
EricJames-NOAA added a commit to EricJames-NOAA/UPP that referenced this pull request Dec 14, 2022
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.

3 participants