#!/bin/sh # # Open Grid Scheduler (OGS) example batch job script # Submit job with command: qsub mbatch # Lines with # are comments; qsub treats lines with #$ as OGS options # Wallclock runtime limit: -l h_rt=HH:MM:SS (default is 12 hours) #$ -l h_rt=24:00:00 # # Request processors with OGS Parallel Environment. #$ -pe mpi_4_tasks_per_node 4 # # Merge stderr into the stdout file, to reduce clutter. #$ -j y # -m ae ## end of qsub options # By default, qsub job starts from current directory. You can change it ... # cd somewhere # The NSLOTS is runtime variable set to number of processors requested with -pe # Prefer NSLOTS than a number to avoid inconsistency PROG="example1_2" mpirun -np $NSLOTS $PROG