#! /bin/bash
#
gfortran -c -Wall toms493_test.f
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran -o toms493_original_test toms493_test.o $HOME/libf77/toms493_original.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm toms493_test.o
#
./toms493_original_test > toms493_original_test.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm toms493_original_test
#
echo "Normal end of execution."
