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