Skip to content

Commit

Permalink
Handle rundeck symmetrically in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Jan 9, 2025
1 parent 99175fa commit 8d87fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .dev/utils/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,21 @@ 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
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
Expand Down

0 comments on commit 8d87fbf

Please sign in to comment.