# @ shell=/bin/bash
#
# Submission script for Hydrangea (8-step)
#
#
# @ error = job.err.$(jobid).$(stepid)
# @ output = job.out.$(jobid).$(stepid)
# @ job_type = parallel
# @ node_usage = not_shared
#
# @ step_name = iteration0
# @ node = 128
# @ tasks_per_node = 1
# @ first_node_tasks = 1
# @ resources = ConsumableCpus(12) 
# @ wall_clock_limit = 24:00:00
# @ network.MPI = sn_all,not_shared,us
# @ notification = always
# @ notify_user = ybahe@mpa-garching.mpg.de
# @ queue

# @ step_name = iteration1
# @ node = 128
# @ tasks_per_node = 1
# @ first_node_tasks = 1
# @ resources = ConsumableCpus(12) 
# @ wall_clock_limit = 24:00:00
# @ network.MPI = sn_all,not_shared,us
# @ notification = always
# @ notify_user = ybahe@mpa-garching.mpg.de
# @ queue

# @ step_name = iteration2
# @ node = 128
# @ tasks_per_node = 1
# @ first_node_tasks = 1
# @ resources = ConsumableCpus(12) 
# @ wall_clock_limit = 24:00:00
# @ network.MPI = sn_all,not_shared,us
# @ notification = always
# @ notify_user = ybahe@mpa-garching.mpg.de
# @ queue


module purge
source ~/.gadgetload

case $LOADL_STEP_NAME in
     iteration0)
        bash ./subfind_12-13.sh	
	;;
     iteration1)
        bash ./subfind_14-15.sh	
	;;
     iteration2)
        bash ./subfind_16-17.sh	
	;;
esac