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