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

FMS library not found in CMake build of standalone dycore in dev/emc (likely others as well) #201

Closed
aerorahul opened this issue Jul 22, 2022 · 1 comment

Comments

@aerorahul
Copy link

Describe the bug
When linking to the appropriate FMS library, the variable kind is either r4 or r8.
In this repository, it is linked with R4 or R8. As a result FMS::fms_R4 or FMS::fms_R8 is not found.

This slips the cracks in the UFS-weather-model because it is hardwired there. See lines 123-127 in https://github.com/ufs-community/ufs-weather-model/blob/develop/CMakeLists.txt.

To Reproduce
Try to configure and build the standalone fv3dycore w/ CMake.

Expected behavior
CMake configuration should succeed following FMS is FOUND.

System Environment
Describe the system environment, include:
Any system that supports this dycore will fail in the above conditions.

Additional context
Attempting to build the FV3 dycore as a standalone.
Note. Fixing this won't lead to building FV3 dycore standalone library as there are complicated dependencies to files in CCPP that are required before this can be built.
Nevertheless, the bug described above should be fixed.

@laurenchilutti
Copy link
Contributor

Fixed with PR #199. Closing.

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

No branches or pull requests

2 participants