#! /bin/sh mpirun_args="-n 4 -H Node-001,Node-002,Node-003,Node-004" BV_opts="-r" echo "mpirun_args = $mpirun_args" echo "BV_opts = $BV_opts" for nx in 30 do echo "nx = $nx" for c in $(seq 6 20) do echo "c = $c" time -p ./BV.sh "$mpirun_args" "$BV_opts -c$c $nx" done done