Skip to content
Snippets Groups Projects
Commit 929090d8 authored by Daley Calvert's avatar Daley Calvert Committed by Guillaume Samson
Browse files

Resolve "SETTE issues after 7f3d7e34"

parent 50ecaa32
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,8 @@ set_valid_dir () { ...@@ -195,7 +195,8 @@ set_valid_dir () {
fi fi
# remove last _ST followed by zero or more alphanumeric characters # remove last _ST followed by zero or more alphanumeric characters
NEW_CONF1=$( echo $NEW_CONF | sed -e 's/_ST\([0-9a-zA-Z]*\)$//' ) NEW_CONF1=$( echo $NEW_CONF | sed -e 's/_ST\([0-9a-zA-Z]*\)$//' )
if [[ -n "${NEMO_DEBUG}" && ! ${CMP_NAM,,} =~ ("debug"|"dbg") ]]; then CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
if [[ -n "${NEMO_DEBUG}" && ! ${CMP_NAM_L} =~ ("debug"|"dbg") ]]; then
export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}_DEBUG/${REVISION_NB}/${NEW_CONF1}/${TEST_NAME} export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}_DEBUG/${REVISION_NB}/${NEW_CONF1}/${TEST_NAME}
else else
export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}/${REVISION_NB}/${NEW_CONF1}/${TEST_NAME} export NEMO_VALID=${NEMO_VALIDATION_DIR}/${CMP_NAM}/${REVISION_NB}/${NEW_CONF1}/${TEST_NAME}
......
...@@ -69,7 +69,8 @@ set -o posix ...@@ -69,7 +69,8 @@ set -o posix
if [ -z "${CUSTOM_DIR}" ]; then if [ -z "${CUSTOM_DIR}" ]; then
export EXE_DIR=${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} export EXE_DIR=${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME}
else else
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]]; then CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]; then
export EXE_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG/${NEW_CONF}/${TEST_NAME} export EXE_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG/${NEW_CONF}/${TEST_NAME}
else else
export EXE_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}/${NEW_CONF}/${TEST_NAME} export EXE_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}/${NEW_CONF}/${TEST_NAME}
......
...@@ -335,7 +335,7 @@ while [[ $NRUN -ne 0 && $nit -le 1080 ]]; do ...@@ -335,7 +335,7 @@ while [[ $NRUN -ne 0 && $nit -le 1080 ]]; do
printf "%-3d %s\r" $NRUN 'nemo_sette runs still in queue or running ...'; printf "%-3d %s\r" $NRUN 'nemo_sette runs still in queue or running ...';
else else
printf "%-50s\n" " " printf "%-50s\n" " "
./sette_rpt.sh ${NEMO_DEBUG} . ./sette_rpt.sh ${NEMO_DEBUG}
exit exit
fi fi
sleep 10 sleep 10
......
...@@ -112,13 +112,15 @@ CONFIG_DIR0=${MAIN_DIR}/cfgs ...@@ -112,13 +112,15 @@ CONFIG_DIR0=${MAIN_DIR}/cfgs
TOOLS_DIR=${MAIN_DIR}/tools TOOLS_DIR=${MAIN_DIR}/tools
if [ -n "${CUSTOM_DIR}" ]; then if [ -n "${CUSTOM_DIR}" ]; then
NEMO_REV=$( git rev-parse --short HEAD 2> /dev/null ) NEMO_REV=$( git rev-parse --short HEAD 2> /dev/null )
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]]; then CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]; then
export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG
else else
export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV} export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}
fi fi
fi fi
CMP_NAM=${1:-$COMPILER} CMP_NAM=${1:-$COMPILER}
CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
# Copy job_batch_COMPILER file for specific compiler into job_batch_template # Copy job_batch_COMPILER file for specific compiler into job_batch_template
cd ${SETTE_DIR} cd ${SETTE_DIR}
...@@ -143,7 +145,7 @@ do ...@@ -143,7 +145,7 @@ do
# ----------- # -----------
if [ ${config} == "GYRE_PISCES" ] ; then if [ ${config} == "GYRE_PISCES" ] ; then
SETTE_CONFIG="GYRE_PISCES"${SETTE_STG} SETTE_CONFIG="GYRE_PISCES"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 # 1 day ITEND=12 # 1 day
else else
...@@ -290,7 +292,7 @@ fi ...@@ -290,7 +292,7 @@ fi
# ----------------- # -----------------
if [ ${config} == "ORCA2_ICE_PISCES" ] ; then if [ ${config} == "ORCA2_ICE_PISCES" ] ; then
SETTE_CONFIG="ORCA2_ICE_PISCES"${SETTE_STG} SETTE_CONFIG="ORCA2_ICE_PISCES"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 1 day ITEND=16 # 1 day
else else
...@@ -577,7 +579,7 @@ fi ...@@ -577,7 +579,7 @@ fi
# ---------------- # ----------------
if [ ${config} == "ORCA2_OFF_PISCES" ] ; then if [ ${config} == "ORCA2_OFF_PISCES" ] ; then
SETTE_CONFIG="ORCA2_OFF_PISCES"${SETTE_STG} SETTE_CONFIG="ORCA2_OFF_PISCES"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 4 days ITEND=16 # 4 days
else else
...@@ -754,7 +756,7 @@ fi ...@@ -754,7 +756,7 @@ fi
# ----- # -----
if [ ${config} == "AMM12" ] ; then if [ ${config} == "AMM12" ] ; then
SETTE_CONFIG="AMM12"${SETTE_STG} SETTE_CONFIG="AMM12"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 # 3 h ITEND=12 # 3 h
else else
...@@ -888,7 +890,7 @@ fi ...@@ -888,7 +890,7 @@ fi
# --------- # ---------
if [ ${config} == "SAS" ] ; then if [ ${config} == "SAS" ] ; then
SETTE_CONFIG="ORCA2_SAS_ICE"${SETTE_STG} SETTE_CONFIG="ORCA2_SAS_ICE"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 1 day ITEND=16 # 1 day
else else
...@@ -969,7 +971,7 @@ fi ...@@ -969,7 +971,7 @@ fi
if [ ${config} == "SAS" ] && [ ${DO_REPRO} == "1" ] ; then if [ ${config} == "SAS" ] && [ ${DO_REPRO} == "1" ] ; then
## Reproducibility tests ## Reproducibility tests
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 1 day ITEND=16 # 1 day
else else
...@@ -1037,7 +1039,7 @@ fi ...@@ -1037,7 +1039,7 @@ fi
if [ ${config} == "ORCA2_ICE_OBS" ] ; then if [ ${config} == "ORCA2_ICE_OBS" ] ; then
SETTE_CONFIG="ORCA2_ICE_OBS"${SETTE_STG} SETTE_CONFIG="ORCA2_ICE_OBS"${SETTE_STG}
## Reproducibility tests ## Reproducibility tests
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 1 day ITEND=16 # 1 day
else else
...@@ -1157,7 +1159,7 @@ fi ...@@ -1157,7 +1159,7 @@ fi
# ----------- # -----------
if [ ${config} == "AGRIF" ] ; then if [ ${config} == "AGRIF" ] ; then
SETTE_CONFIG="AGRIF_DEMO"${SETTE_STG} SETTE_CONFIG="AGRIF_DEMO"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=4 # 6h ITEND=4 # 6h
else else
...@@ -1440,7 +1442,7 @@ fi ...@@ -1440,7 +1442,7 @@ fi
if [ ${config} == "AGRIF" ] && [ ${DO_CORRUPT} == "1" ] ; then if [ ${config} == "AGRIF" ] && [ ${DO_CORRUPT} == "1" ] ; then
## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom ## test code corruption with AGRIF (phase 1) ==> Compile with key_agrif but run with no zoom
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=16 # 1d ITEND=16 # 1d
else else
...@@ -1525,7 +1527,7 @@ fi ...@@ -1525,7 +1527,7 @@ fi
# ------- # -------
if [ ${config} == "WED025" ] ; then if [ ${config} == "WED025" ] ; then
SETTE_CONFIG="WED025"${SETTE_STG} SETTE_CONFIG="WED025"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 # 4h ITEND=12 # 4h
else else
......
...@@ -113,13 +113,15 @@ TOOLS_DIR=${MAIN_DIR}/tools ...@@ -113,13 +113,15 @@ TOOLS_DIR=${MAIN_DIR}/tools
if [ -n "${CUSTOM_DIR}" ]; then if [ -n "${CUSTOM_DIR}" ]; then
NEMO_REV=$( git rev-parse --short HEAD 2> /dev/null ) NEMO_REV=$( git rev-parse --short HEAD 2> /dev/null )
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]]; then CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]; then
export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}_DEBUG
else else
export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV} export CMP_DIR=${CUSTOM_DIR}/${SETTE_SUB_VAL}_${NEMO_REV}
fi fi
fi fi
CMP_NAM=${1:-$COMPILER} CMP_NAM=${1:-$COMPILER}
CMP_NAM_L=$(echo ${CMP_NAM} | tr '[:upper:]' '[:lower:]')
# Copy job_batch_COMPILER file for specific compiler into job_batch_template # Copy job_batch_COMPILER file for specific compiler into job_batch_template
cd ${SETTE_DIR} cd ${SETTE_DIR}
cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit cp BATCH_TEMPLATE/${JOB_PREFIX}-${COMPILER} job_batch_template || exit
...@@ -143,7 +145,7 @@ do ...@@ -143,7 +145,7 @@ do
# --------- # ---------
if [ ${config} == "OVERFLOW" ] ; then if [ ${config} == "OVERFLOW" ] ; then
SETTE_CONFIG="OVERFLOW"${SETTE_STG} SETTE_CONFIG="OVERFLOW"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -215,7 +217,7 @@ fi ...@@ -215,7 +217,7 @@ fi
if [ ${config} == "OVERFLOW" ] && [ ${DO_PHYOPTS} == "1" ] ; then if [ ${config} == "OVERFLOW" ] && [ ${DO_PHYOPTS} == "1" ] ; then
## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps ## Test for all advection, vert. coordinates, vector form, flux form: test runability and complete all time steps
## Needed namelist-xxxx for every type of run tested ## Needed namelist-xxxx for every type of run tested
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -259,7 +261,7 @@ fi ...@@ -259,7 +261,7 @@ fi
# -------------- # --------------
if [ ${config} == "LOCK_EXCHANGE" ] ; then if [ ${config} == "LOCK_EXCHANGE" ] ; then
SETTE_CONFIG="LOCK_EXCHANGE"${SETTE_STG} SETTE_CONFIG="LOCK_EXCHANGE"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -331,7 +333,7 @@ fi ...@@ -331,7 +333,7 @@ fi
if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_PHYOPTS} == "1" ] ; then if [ ${config} == "LOCK_EXCHANGE" ] && [ ${DO_PHYOPTS} == "1" ] ; then
## Test for all advection, vector form, flux form: test runability and complete all time steps ## Test for all advection, vector form, flux form: test runability and complete all time steps
## Needed namelist-xxxx for every type of run tested ## Needed namelist-xxxx for every type of run tested
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -377,7 +379,7 @@ fi ...@@ -377,7 +379,7 @@ fi
# --------- # ---------
if [ ${config} == "VORTEX" ] ; then if [ ${config} == "VORTEX" ] ; then
SETTE_CONFIG="VORTEX"${SETTE_STG} SETTE_CONFIG="VORTEX"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -571,7 +573,7 @@ fi ...@@ -571,7 +573,7 @@ fi
# --------- # ---------
if [ ${config} == "ICE_AGRIF" ] ; then if [ ${config} == "ICE_AGRIF" ] ; then
SETTE_CONFIG="ICE_AGRIF"${SETTE_STG} SETTE_CONFIG="ICE_AGRIF"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=10 ITEND=10
else else
...@@ -770,7 +772,7 @@ fi ...@@ -770,7 +772,7 @@ fi
# ------ # ------
if [ ${config} == "ISOMIP+" ] ; then if [ ${config} == "ISOMIP+" ] ; then
SETTE_CONFIG="ISOMIP+"${SETTE_STG} SETTE_CONFIG="ISOMIP+"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -850,7 +852,7 @@ fi ...@@ -850,7 +852,7 @@ fi
if [ ${config} == "ISOMIP+" ] && [ ${DO_REPRO} == "1" ] ; then if [ ${config} == "ISOMIP+" ] && [ ${DO_REPRO} == "1" ] ; then
## Reproducibility tests ## Reproducibility tests
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
...@@ -915,7 +917,7 @@ fi ...@@ -915,7 +917,7 @@ fi
# --------- # ---------
if [ ${config} == "SWG" ] && [ ${USING_QCO} == "yes" ] ; then if [ ${config} == "SWG" ] && [ ${USING_QCO} == "yes" ] ; then
SETTE_CONFIG="SWG"${SETTE_STG} SETTE_CONFIG="SWG"${SETTE_STG}
if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM,,} =~ ("debug"|"dbg") ]] if [[ -n "${NEMO_DEBUG}" || ${CMP_NAM_L} =~ ("debug"|"dbg") ]]
then then
ITEND=12 ITEND=12
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment