Skip to content

Commit

Permalink
Fix rrtmgp standalone yakl link
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Feb 3, 2025
1 parent 1ae4123 commit d9fcc1a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/eamxx/tests/single-process/rrtmgp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,25 @@ set (FIXTURES_BASE_NAME ${TEST_BASE_NAME}_generate_output_nc_files)
# Ensure test input files are present in the data dir
GetInputFile(scream/init/${EAMxx_tests_IC_FILE_72lev})

set(YAKL_LIB_NAME "")
if (SCREAM_RRTMGP_ENABLE_YAKL)
set(YAKL_LIB_NAME "yakl")
endif()

if (SCREAM_ENABLE_BASELINE_TESTS AND NOT SCREAM_ONLY_GENERATE_BASELINES)
# Unit test to compare against raw rrtmgp output
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/input_unit.yaml
${CMAKE_CURRENT_BINARY_DIR}/input_unit.yaml)
CreateUnitTest(${TEST_BASE_NAME}_unit rrtmgp_standalone_unit.cpp
LABELS rrtmgp physics driver
LIBS scream_rrtmgp rrtmgp scream_control yakl diagnostics rrtmgp_test_utils
LIBS scream_rrtmgp rrtmgp scream_control ${YAKL_LIB_NAME} diagnostics rrtmgp_test_utils
EXE_ARGS "--args --inputfile ${SCREAM_DATA_DIR}/init/rrtmgp-allsky.nc --baseline ${SCREAM_BASELINES_DIR}/data/rrtmgp-allsky-baseline.nc"
)
endif()

## Create rrtmgp stand alone executable
CreateUnitTestExec(${TEST_BASE_NAME} "rrtmgp_standalone.cpp"
LIBS scream_rrtmgp rrtmgp scream_control yakl diagnostics
LIBS scream_rrtmgp rrtmgp scream_control ${YAKL_LIB_NAME} diagnostics
)

# The RRTMGP stand-alone test that runs multi-step
Expand Down

0 comments on commit d9fcc1a

Please sign in to comment.