Skip to content

Commit efde774

Browse files
authored
Merge pull request #3107 from E3SM-Project/jgfouca/quick_fix_baseline_gen
Quick fix for baseline generation
2 parents 230167c + 2bb921e commit efde774

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

components/eamxx/src/physics/p3/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ if (SCREAM_P3_SMALL_KERNELS)
6969
add_library(p3 ${P3_SRCS} ${P3_SK_SRCS})
7070
else()
7171
add_library(p3 ${P3_SRCS})
72+
# If small kernels are ON, we don't need a separate executable to test them.
73+
# Also, we never want to generate baselines with this separate executable
7274
if (NOT SCREAM_LIBS_ONLY AND NOT SCREAM_ONLY_GENERATE_BASELINES)
7375
add_library(p3_sk ${P3_SRCS} ${P3_SK_SRCS})
7476
# Always build p3_sk with SCREAM_P3_SMALL_KERNELS on

components/eamxx/src/physics/p3/tests/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ if (SCREAM_ENABLE_BASELINE_TESTS)
7474
${FORCE_RUN_DIFF_FAILS})
7575
endif()
7676

77-
if (NOT SCREAM_P3_SMALL_KERNELS)
77+
# If small kernels are ON, we don't need a separate executable to test them.
78+
# Also, we never want to generate baselines with this separate executable
79+
if (NOT SCREAM_P3_SMALL_KERNELS AND NOT SCREAM_ONLY_GENERATE_BASELINES)
7880
CreateUnitTest(p3_sk_tests "${P3_TESTS_SRCS}"
7981
LIBS p3_sk p3_test_infra
8082
EXE_ARGS "--args ${BASELINE_FILE_ARG}"

0 commit comments

Comments
 (0)