Skip to content

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Mar 18, 2025

Update cmake build to support NEPTUNE cmake (aka use modern cmake and fix OpenMP bugs)

Update CMakeLists.txt to:

  • Use modern cmake version 3
  • Support NEPTUNE cmake build while retaining compatibility with UFS/SCM
  • Fix existing bugs for assigning compilation flags: OpenMP on/off wasn't handled correctly
  • Simplify assigning flags to schemes and caps, use CMAKE_CURRENT_SOURCE_DIR (a standard CMake variable instead of the home baked solution LOCAL_CURRENT_SOURCE_DIR
  • Bump cmake version to 3.18 (replaces stale PR that was in the queue forever)
  • Update ccpp-physics author list

TODO: TEST WITH UFS AND/OR SCM

… fix OpenMP bugs) (#6)

Update CMakeLists.txt to:
- Bring in updates from NCAR ccpp-physics main as needed and update CMakeLists.txt to modern cmake version 3
- Support NEPTUNE cmake build while retaining compatibility with UFS/SCM
- Fix existing bugs for assigning compilation flags: OpenMP on/off wasn't handled correctly, some schemes had host model flags applied twice. Fixing the OpenMP flags triggered an error in the OpenMP-on build in NEPTUNE that this PR fixes

project(ccpp_physics
VERSION 5.0.0
LANGUAGES Fortran)

#------------------------------------------------------------------------------
set(PACKAGE "ccpp-physics")
set(AUTHORS "Grant Firl" "Dustin Swales" "Man Zhang" "Mike Kavulich" )
set(AUTHORS "Grant Firl" "Dustin Swales" "Dom Heinzeller" "Man Zhang" "Mike Kavulich")
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We should add NCAR-CGD folks once they start making contributions to ccpp-physics, too?

@climbfuji
Copy link
Collaborator Author

Closing this in favor of an updated and fixed version for UFS (ufs-community fork): ufs-community#259

@climbfuji climbfuji closed this Mar 19, 2025
@climbfuji climbfuji deleted the feature/cmake_updates_from_neptune_20250318 branch March 21, 2025 11:27
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.

1 participant