Excerpt | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
title | License |
---|
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#!/bin/bash #SBATCH -J vasp_example #SBATCH -e vasp_example.err #SBATCH -o vasp_example.out #SBATCH -p std #SBATCH -Nn 18 #SBATCH -n 8t 0-01:00 module load apps/vasp/5.4.4 ulimit -s unlimited INPUT_DIR=$SLURM_SUBMIT_DIR OUTPUT_DIR=$SLURM_SUBMIT_DIR INPUT_FILES=$(ls ${INPUT_DIR}/{## # Modify the input and output files! INPUT_FILE={INCAR,KPOINTS,POTCAR,POSCAR}) cp $INPUT_FILES $SCRATCH cd $SCRATCH mpirun `which vasp_std` OUTPUT_FILE=OUTCAR ## # You don't need to modify nothing more cp -r ${SLURM_SUBMIT_DIR}/${INPUT_FILE} ${SCRATCH} cd ${SCRATCH} srun $(which vasp_std) cp ./* $OUTPUT${OUTPUT_FILE} ${SLURM_SUBMIT_DIR} |
Sbatch options:
The options shown in the example are detailed below. For more information and a more comprehensive list of available options, see the sbatch command page.
- -J:
- Name for the job's allocation.
- -e:
- Name of the stderr redirection filename.
- -o:
- Name of the stdout redirection filename.
- -p:
- Name of the partition (queue) where the job will be
- submitted.
-
n: Number of
tasks.
- -
- c: Number of
- cores per task.
- -
- t: Set the job's time limit. If the job don't finish before the time runs out, it will be killed.