#!/bin/bash #PBS -N Moose_phase_test #PBS -o test.out #PBS -e test.err #PBS -q long #PBS -l nodes=1:ppn=32 #PBS -l walltime=1:00:00 #PBS -V ### --------------------------------------- ### BEGINNING OF EXECUTION ### --------------------------------------- echo The master node of this job is `hostname` echo The working directory is `echo $PBS_O_WORKDIR` echo This job runs on the following nodes: echo `cat $PBS_NODEFILE` ncpu=`cat $PBS_NODEFILE | wc -w` echo "Number of processors = $ncpu " ### end of information preamble cd $PBS_O_WORKDIR echo $PWD #lamboot $PBS_NODEFILE # starts lam on the specified nodes #echo $PWD sleep 1 cmd="mpirun -n $ncpu ../../phase_field-opt -i grain_growth_3D.i" $cmd & wait #wipe $PBS_NODEFILE