#! /bin/bash
#
gfortran -c -g -Wall gmsh_to_fem.f90
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gfortran gmsh_to_fem.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
#
rm gmsh_to_fem.o
#
chmod ugo+x a.out
mv a.out ~/bin/gmsh_to_fem
#
echo "Normal end of execution."
