# @ 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

# @ step_name = iteration3
# @ 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 = iteration4
# @ 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 = iteration5
# @ 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 = iteration6
# @ 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_21.sh	
	;;
     iteration1)
        bash ./subfind_22.sh	
	;;
     iteration2)
        bash ./subfind_23.sh	
	;;
     iteration3)
        bash ./subfind_24.sh	
	;;
     iteration4)
        bash ./subfind_25.sh	
	;;
     iteration5)
        bash ./subfind_26.sh	
	;;
     iteration6)
        bash ./subfind_27.sh	
	;;
esac