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

Fixed CMake error to prevent KPP standalone being built in carbon sim #464

Merged

Conversation

yantosca
Copy link
Contributor

Name and Institution (Required)

Name: Bob Yantosca
Institution: Harvard + GCST

Describe the update

This PR fixes the error described by @msulprizio in geoschem/GCClassic#78. We have reworked the logic in the src/CMakeLists.txt to disable building the KPP standalone executable for simulations other than fullchem & custom, even if the CMake commands are given separately.

Expected changes:

These commands now configure GCHP correctly:

cmake ../CodeDir
cmake . -DMECH=custom -DRUNDIR=..

Related Github Issue

src/CMakeLists.txt
- Defined the KPPSA_FILE_NAME variable for all mechanisms
- Call "add_executable(KPPSA_FILE_NAME ...) for all mechanisms
- Added an else block to disable the KPPSA_FILE_NAME executable
  from being built except for fullchem & custom mechanisms
- Wrapped the installation command for the KPPSA_FILE_NAME executable
  in an if block to ensure it is only built for fullchem & custom
  mechanisms.

CHANGELOG.md
- Updated accordingly

Signed-off-by: Bob Yantosca <yantosca@seas.harvard.edu>
@yantosca yantosca merged commit ddea349 into dev/no-diff-to-benchmark Dec 16, 2024
1 check passed
@yantosca yantosca deleted the feature/cmake-fix-for-kpp-standalone branch December 16, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: Bug Fix Fixes a previously-reported issue topic: Build Related to makefiles or the build sequence
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants