Skip to content
Snippets Groups Projects
Commit d13c6a0f authored by Martin Schroschk's avatar Martin Schroschk
Browse files

Add comment to job file examples

parent 749fb9e9
No related branches found
No related tags found
2 merge requests!679Automated merge from preview to main,!659Check ws allocation
......@@ -251,6 +251,7 @@ calling the actual software to do your computation).
# Check allocation
test -z "${WORKSPACE_DIR}" && echo "Error: Cannot allocate workspace ${COMPUTE_DIR}" && exit 1
# Change to workspace directory
cd ${WORKSPACE_DIR}
# Adjust the following line to invoke the program you want to run
......@@ -261,6 +262,7 @@ calling the actual software to do your computation).
RETURN_CODE=$?
COMPRESSION_SUCCESS="$(if test ${RETURN_CODE} -eq 0; then echo 'TRUE'; else echo 'FALSE'; fi)"
# Clean up workspace
if [ "TRUE" = ${COMPRESSION_SUCCESS} ]; then
test -d ${WORKSPACE_DIR} && rm -rf ${WORKSPACE_DIR}/*
# Reduces grace period to 1 day!
......
......@@ -154,6 +154,7 @@ However hereafter we have an example on how that might look like for Gaussian:
RETURN_CODE=$?
COMPRESSION_SUCCESS="$(if test ${RETURN_CODE} -eq 0; then echo 'TRUE'; else echo 'FALSE'; fi)"
# Clean up workspace
if [ "TRUE" = ${COMPRESSION_SUCCESS} ]; then
test -d ${GAUSS_SCRDIR} && rm -rf ${GAUSS_SCRDIR}/*
# Reduces grace period to 1 day!
......
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