#!/bin/sh
# Testing program-- bangs on hello executable.

args=$*
make
rm run/*
for PE in `echo 1 2 3 4 5`
do
	for elem in `echo 4 5 7 10 25 50 75 100`
	do
		ofile="run/pe_$PE""_elem_$elem"
		cmd="mpirun -np $PE ./hello $elem "
		echo "PE=$PE, $elem elements: (in $ofile, command $cmd)"

		$cmd > $ofile
		cat $ofile | grep "handler"
	done
done
