Merge pull request #22 from wirc-sjsu/develop-w21
[WRF-Fire-merge.git] / test / em_fire / burner / burner-colibri.sub
blob83136a236c6021ed8ed1aa6ae81ac988deb75ceb
1 #!/bin/bash
2 #$ -pe orte 160
3 #$ -cwd
4 #$ -j y
5 #$ -S /bin/bash
6 cat $0
7 cp $PE_HOSTFILE pe_hostfile
8 awk '{print $1 " slots=" $2}' < pe_hostfile | sed 's/\.local//' > hostfile
9 echo hostfile:
10 cat hostfile
11 echo NSLOTS=$NSLOTS
12 rm rsl.* wrfout*
13 echo burner | matlab
14 /usr/mpi/gcc/openmpi-1.7.4/bin/mpirun -np 1 -hostfile hostfile ./ideal.exe
15 mv rsl.error.0000 rsl.error.ideal
16 mv rsl.out.0000 rsl.out.ideal
17 /usr/mpi/gcc/openmpi-1.7.4/bin/mpirun -np $NSLOTS -hostfile hostfile ./wrf.exe