From 8d87fbf266636b6f956aa83fd9168bb93be749fe Mon Sep 17 00:00:00 2001 From: Joe Wallwork Date: Thu, 9 Jan 2025 11:43:43 +0000 Subject: [PATCH] Handle rundeck symmetrically in debug mode --- .dev/utils/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.dev/utils/build.sh b/.dev/utils/build.sh index 0c58e8e..fa095be 100755 --- a/.dev/utils/build.sh +++ b/.dev/utils/build.sh @@ -76,7 +76,6 @@ echo "DEBUG=${DEBUG}" # Conditionally fresh rebuild of the model cd ${GISS_HOME}/decks/ -ln -s -f ${GISS_HOME}/.github/rundecks/${RUNID}.R $(pwd)/${RUNID}.R if [ "${FRESH}" = true ]; then make clean OVERWRITE=YES make clean_all OVERWRITE=YES @@ -84,13 +83,14 @@ fi # Compile if [ "${DEBUG}" = true ]; then - ln -s -f $(pwd)/.github/rundecks/${RUNID}.R $(pwd)/${RUNID}_DEBUG.R + ln -s -f ${GISS_HOME}/.github/rundecks/${RUNID}.R $(pwd)/${RUNID}_DEBUG.R RUNID="${RUNID}_DEBUG" git apply ${GISS_HOME}/.dev/utils/DEBUGGING_FLAGS.patch make -j setup RUN=${RUNID} F90=mpif90 GC=${GC} MP=${OPENMP} MPI=YES MECH=carbon \ TYPE=Debug DEBUG=YES COMPILE_WITH_TRAPS=YES TRACEBACK=YES OVERWRITE=YES git apply -R ${GISS_HOME}/.dev/utils/DEBUGGING_FLAGS.patch else + ln -s -f ${GISS_HOME}/.github/rundecks/${RUNID}.R $(pwd)/${RUNID}.R make -j setup RUN=${RUNID} F90=mpif90 GC=${GC} MP=${OPENMP} MPI=YES MECH=carbon \ TYPE=Release OVERWRITE=YES fi