#! /bin/bash
#
gcc -c -g -Wall vortex_subplots.c
if [ $? -ne 0 ]; then
  echo "Compile error."
  exit
fi
#
gcc -o vortex_subplots vortex_subplots.o
if [ $? -ne 0 ]; then
  echo "Load error."
  exit
fi
rm vortex_subplots.o
#
./vortex_subplots > vortex_subplots.txt
rm vortex_subplots
#
gnuplot < vortex_subplots_commands.txt
#
rm vortex_subplots_commands.txt
#
echo "Normal end of execution."
