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

Add preprocessor variable USE_PDAF #8

Draft
wants to merge 5 commits into
base: tsmp-pdaf-patched
Choose a base branch
from

Conversation

jjokella
Copy link
Collaborator

@jjokella jjokella commented Nov 29, 2024

Follow the example of eCLM and add USE_PDAF in CMake-scripts (if (USE_PDAF)) and source code (#ifdef USE_PDAF) in order to make PDAF-related code immediately visible.

Currently results in errors.

Every pre-patched change inside ParFlow that relates to PDAF is put
under (1) if-condition `USE_PDAF` for CMake-scripts or (2) `#ifdef`
preprocessor variable condition for source code.
- to `amps`, `pfsimulator`, where it is used in code
```
CMake Error at pfsimulator/amps/CMakeLists.txt:9 (target_compile_definitions):
  Cannot specify compile definitions for target "amps" which is not built by
  this project.
```
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