|
#!/bin/bash #SBATCH -J siesta_example #SBATCH -e siesta_example.%j.err #SBATCH -o siesta_example.%j.out #SBATCH -p std #SBATCH -n 1 #SBATCH -t 0-02:00 module load apps/siesta/4.1 ## # Modify the input and output files! INPUT_FILE=siesta_example.inp OUTPUT_FILE=siesta_example.out ## # You don't need to modify nothing more cp -r ${SLURM_SUBMIT_DIR}/${INPUT_FILE} ${SCRATCH} cd ${SCRATCH} srun siesta < ${INPUT_FILE} > ${OUTPUT_FILE} cp ./${OUTPUT_FILE} ${SLURM_SUBMIT_DIR} |
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.
-n: Number of tasks.