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