diff --git a/build_vcluster.sh b/build_vcluster.sh index 612c7651e06b5215c25efc02922213a6c1c8d9d9..304b6c52bf4b9b6727ca621b111097d56460c304 100644 --- a/build_vcluster.sh +++ b/build_vcluster.sh @@ -48,13 +48,11 @@ exit(0)\n" ## Run on the cluster bsub -o output_run2.%J -K -n 2 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 2 ./src/vcluster" - echo "\$?" -# if [ \"\$?\" != "0" ]; then exit 1 ; fi + if [ $? -ne 0 ]; then exit 1 ; fi bsub -o output_run4.%J -K -n 4 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 4 ./src/vcluster" - echo "\$?" -# if [ \"\$?\" != "0" ]; then exit 1 ; fi + if [ $? -ne 0 ]; then exit 1 ; fi bsub -o output_run8.%J -K -n 8 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 8 ./src/vcluster" - echo "\$?" + if [ $? -ne 0 ]; then exit 1 ; fi fi