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

Add note on checking the allocation

parent d7f5adf4
No related branches found
No related tags found
2 merge requests!679Automated merge from preview to main,!659Check ws allocation
...@@ -232,7 +232,7 @@ A batch job needs a directory for temporary data. This can be deleted afterwards ...@@ -232,7 +232,7 @@ A batch job needs a directory for temporary data. This can be deleted afterwards
export GAUSS_SCRDIR=$(ws_allocate -F ssd $COMPUTE_DIR 7) export GAUSS_SCRDIR=$(ws_allocate -F ssd $COMPUTE_DIR 7)
echo $GAUSS_SCRDIR echo $GAUSS_SCRDIR
# Check allocation # Check allocation.
[ -z "${GAUSS_SCRDIR}" ] && echo "Error: Cannot allocate workspace ${COMPUTE_DIR}" && exit 1 [ -z "${GAUSS_SCRDIR}" ] && echo "Error: Cannot allocate workspace ${COMPUTE_DIR}" && exit 1
cd ${GAUSS_SCRDIR} cd ${GAUSS_SCRDIR}
...@@ -245,6 +245,12 @@ A batch job needs a directory for temporary data. This can be deleted afterwards ...@@ -245,6 +245,12 @@ A batch job needs a directory for temporary data. This can be deleted afterwards
Likewise, other jobs can use temporary workspaces. Likewise, other jobs can use temporary workspaces.
!!! attention "Check Workspace Allocation"
We highly recommand that you check the allocation of the workspace within your job file. If the
`ws_allocate` command fails, the variable `GAUSS_SCRDIR` is empty and you will `cd` to the wrong
directory and finaly, you might delete the wrong files and directories.
### Data for a Campaign ### Data for a Campaign
For a series of jobs or calculations that work on the same data, you should allocate a workspace For a series of jobs or calculations that work on the same data, you should allocate a workspace
......
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