Skip to content

Commit 78e27c6

Browse files
committed
Fix for log_script() usage issue on Cori
1 parent d767c86 commit 78e27c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflows/p3b1_mlrMBO/swift/cori_workflow3.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ PARAM_SET_FILE=${PARAM_SET_FILE:-$EMEWS_PROJECT_ROOT/data/parameter_set3.R}
5050
# Source some utility functions used by EMEWS in this script
5151
source "${EMEWS_PROJECT_ROOT}/etc/emews_utils.sh"
5252

53+
script_name=$(basename $0)
5354
if [ "$#" -ne 1 ]; then
54-
script_name=$(basename $0)
5555
echo "Usage: ${script_name} EXPERIMENT_ID (e.g. ${script_name} experiment_1)"
5656
exit 1
5757
fi
@@ -104,7 +104,7 @@ fi
104104
# for example, USER_VARS=("VAR_1" "VAR_2")
105105
USER_VARS=($CMD_LINE_ARGS)
106106
# log variables and script to to TURBINE_OUTPUT directory
107-
log_script
107+
log_script $EMEWS_PROJECT_ROOT/swift/$script_name
108108

109109
R_LIB=/global/homes/w/wozniak/Public/sfw/R-3.4.0/lib64/R/lib
110110
GCC_LIB=/opt/gcc/6.3.0/snos/lib64

0 commit comments

Comments
 (0)