#/bin/csh

echo 'This test solves the system Ax=b, Ay=x, for y given A and b.'
echo 'First three versions of the vector x are created and then'
echo 'these are used to solve for y.  The values obtained for y'
echo 'should all be the same.'
echo ' '

echo 'Creating x, x.ascii, and x.binary'
./solve A b x
./solve -xa A b x.ascii
./solve -xb A b x.binary

echo 'Creating y files from x files'
./solve A x y1
./solve -ba A x.ascii y2
./solve -bb A x.binary y3

echo 'Testing y files'
diff -c y.out y1
diff -c y.out y2
diff -c y.out y3
