Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ jobs:
use_oasis: "False",
model_opts: "--eCLM --PDAF"
}
# - {
# name: "CLM3.5-ParFlow-PDAF",
# use_oasis: "True",
# parflow_dir: "parflow_pdaf",
# model_opts: "--CLM35 --ParFlow --PDAF"
# }
# - {
# name: "eCLM-ParFlow-PDAF",
# use_oasis: "True",
# parflow_dir: "parflow_pdaf",
# model_opts: "--eCLM --ParFlow --PDAF"
# }
- {
name: "CLM3.5-ParFlow-PDAF",
use_oasis: "True",
parflow_dir: "parflow_pdaf",
model_opts: "--CLM35 --ParFlow --PDAF"
}
- {
name: "eCLM-ParFlow-PDAF",
use_oasis: "True",
parflow_dir: "parflow_pdaf",
model_opts: "--eCLM --ParFlow --PDAF"
}
env:
SYSTEMNAME: UBUNTU
STAGE: 24.04
Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
[submodule "models/parflow_pdaf"]
path = models/parflow_pdaf
url = https://github.com/HPSCTerrSys/parflow
branch = tsmp-pdaf-patched-openmp-flag-fix
branch = tsmp-pdaf-patched-pdaf-CI
[submodule "models/pdaf"]
path = models/pdaf
url = https://github.com/HPSCTerrSys/pdaf.git
branch = tsmp-pdaf-patched-TSMP2
branch = tsmp-pdaf-patched-eclm-pfl-fixes
[submodule "models/eCLM"]
path = models/eCLM
url = https://github.com/HPSCTerrSys/eCLM.git
Expand Down
8 changes: 7 additions & 1 deletion cmake/BuildParFlow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ if(DEFINED eCLM_SRC)
elseif(DEFINED CLM35_SRC)
list(APPEND PF_CLM_FLAGS -DPARFLOW_AMPS_LAYER=oas3
-DOAS3_ROOT=${OASIS_ROOT}
-DPARFLOW_HAVE_ECLM=ON # Experimental: CLM35 should have own flag
-DPARFLOW_HAVE_CLM=OFF)
else()
# use ParFlow's internal CLM
Expand Down Expand Up @@ -41,7 +42,12 @@ endif()
# Set compiler flags
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
# Flags were based from https://github.com/parflow/parflow/blob/c8aa8d7140db19153194728b8fa9136b95177b6d/.github/workflows/linux.yml#L486
set(PF_CFLAGS "-Wall -Werror -Wno-unused-result -Wno-unused-function -Wno-stringop-overread")
if(${PDAF})
# PDAF: add `-Wno-unused-variable`
set(PF_CFLAGS "-Wall -Werror -Wno-unused-result -Wno-unused-function -Wno-unused-variable -Wno-stringop-overread")
else()
set(PF_CFLAGS "-Wall -Werror -Wno-unused-result -Wno-unused-function -Wno-stringop-overread")
endif()
# Silence arch-specific compiler warnings
if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64|aarch64")
string(APPEND PF_CFLAGS " -Wno-maybe-uninitialized")
Expand Down
2 changes: 1 addition & 1 deletion models/pdaf
Loading