Example of job script - Wei64380/Parflow-CLM GitHub Wiki

use sbatch to submit the job, here is an example of the job script

  1. #!/bin/bash

  2. #SBATCH -J Wei_Parflow

  3. #SBATCH -n 2

  4. #SBATCH --time=24:00:00

  5. #SBATCH --export=ALL

  6. #SBATCH --mem-per-cpu=1950

  7. module purge

  8. module load gcc/4.9.4 openmpi/gcc/4.0.0/4.9.4

  9. export PARFLOW_DIR=/home/hz48lozy/wqu/parflow2

  10. export PATH=$PATH:/home/hz48lozy/wqu/parflow2/bin

  11. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/hz48lozy/wqu/parflow2/lib

  12. mpiexec -n 2 $PARFLOW_DIR/bin/parflow LW