#! /bin/csh -f
# 
# This script runs the programs to get the data for table tab-poisson-1d in the
# intermediate chapter
foreach np ( 1 2 4 8 16 32 64 )
    echo "sendrecv (oned) $np"
    mpirun oned -mr_np $np
    echo "blocking (onedsync) $np"
    mpirun onedsync -mr_np $np
    echo "buffered (onedsandr) $np"
    mpirun onedsandr -mr_np $np
    echo "ordered (onedpair) $np"
    mpirun onedpair -mr_np $np
    echo "nonblocking (onednb) $np"
    mpirun onednb -mr_np $np
end
