Skip to content

Commit

Permalink
Merge pull request #166 from E3SM-Project/bartgol/set-scream-data-dir
Browse files Browse the repository at this point in the history
Correctly set scream_data_dir in scream_cxx_p3_shoc folder
  • Loading branch information
whannah1 authored Feb 14, 2025
2 parents 3f2d137 + 88e7064 commit 14fe144
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions physics/scream_cxx_p3_shoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ set(SCREAM_SMALL_PACK_SIZE 1 CACHE BOOL "" FORCE)
set(SCREAM_NUM_VERTICAL_LEV ${PAM_NLEV} CACHE BOOL "" FORCE)
if (PAM_STANDALONE)
set(SCREAM_DATA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../micro/p3)
else()
# MACH comes from CIME build system
execute_process(COMMAND ${SCREAM_HOME}/components/eamxx/scripts/query-cime ${MACH} DIN_LOC_ROOT
RESULT_VARIABLE QC_STATUS
OUTPUT_VARIABLE QC_OUTPUT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if (QC_STATUS EQUAL 0)
set(SCREAM_INPUT_ROOT ${QC_OUTPUT} CACHE PATH "" FORCE )
endif()
set (SCREAM_DATA_DIR ${SCREAM_INPUT_ROOT}/atm/scream CACHE PATH "" FORCE)
endif()

macro (EkatConfigFile CONFIG_FILE_IN CONFIG_FILE_C EKAT_CONFIGURE_FILE_F90_FILE)
Expand Down

0 comments on commit 14fe144

Please sign in to comment.