#!/bin/bash

noderange="1"
for nNodes in `echo $noderange`
do
  export NODE=${nNodes}
  export MINLEVEL=6
  export MAXLEVEL=7
  echo submit musubi with ${nNodes} nodes, level range: $MINLEVEL - $MAXLEVEL
  qsub -N node_${NODE} -l nodes=${nNodes}:ppn=24,walltime=00:25:00 -q test runMusubi.job
done

qstat -u $USER

# noderange="8 16 32"
# for nNodes in `echo $noderange`
# do
#   export NODE=${nNodes}
#   export MAXLEVEL=9
#   echo submit musubi with ${nNodes} nodes, maxlevel: $MAXLEVEL
#   qsub -N tgv3D -l nodes=${nNodes}:ppn=24,walltime=00:30:00 runMusubi.job
# done
# 
# noderange="64 128 256"
# for nNodes in `echo $noderange`
# do
#   export NODE=${nNodes}
#   export MAXLEVEL=10
#   echo submit musubi with ${nNodes} nodes, maxlevel: $MAXLEVEL
#   qsub -N tgv3D -l nodes=${nNodes}:ppn=24,walltime=00:30:00 runMusubi.job
# done
