I did not find a bash script that does this job so I hacked together one myself. Maybe someone can use this.
It is a python script that sets up some parameters and then starts a lot of simulations in parallel. The first two parameters have to be adapted. I used them to define the number of nodes in my simulation. The third parameter defines the number of repetitions for each value (RngRun creates randomness). The last parameter defines the maximum number of processes that should run in parallel.
from multiprocessing import Pool
def start_simulation(data):
os.system('./waf --command-template="%%s --run_number=%d --sub_run_number=%d --grid_homes=%d --RngRun=%d" --run citygrid' % (run, sub_run, homes, sub_run))
print "usage: ./parallel [max_homes] [step] [sub_runs] [processes]"
max_homes = int(sys.argv[1])
sub_runs = int(sys.argv[3])
processes = int(sys.argv[4])
for i in range(0, max_homes+step, step):
if homes == 0 and step > 1:
elif homes == 0 and step == 1:
for j in range(sub_runs):
params.append([run, j+1, homes])
pool = Pool(processes=processes)
pool.map(start_simulation, params)