#! /bin/bash
#
gfortran -c -g -Wall tsp_anneal_test.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran -o tsp_anneal_test tsp_anneal_test.o $HOME/lib/tsp_anneal.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm tsp_anneal_test.o
#
./tsp_anneal_test > tsp_anneal_test.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm tsp_anneal_test
#
gnuplot < dantzig42_commands.txt
rm dantzig42_commands.txt
rm dantzig42_data.txt
#
echo "Normal end of execution."
