#! /bin/bash
#
gfortran -c -g -Wall temperature_scatter.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran temperature_scatter.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm temperature_scatter.o
#
mv a.out temperature_scatter
./temperature_scatter > temperature_scatter.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
rm temperature_scatter
#
#  Create graphics.
#
gnuplot < temperature_scatter_commands.txt
#
rm temperature_scatter_commands.txt
#
echo "Normal end of execution."
