#! /bin/bash
#
/usr/local/bin/FreeFem++ channel_navier_stokes.edp > channel_navier_stokes.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
#
ps2png channel_navier_stokes_mesh.ps channel_navier_stokes_mesh.png
ps2png channel_navier_stokes_velocity_0.ps channel_navier_stokes_velocity_0.png
ps2png channel_navier_stokes_vorticity_0.ps channel_navier_stokes_vorticity_0.png
ps2png channel_navier_stokes_velocity_5.ps channel_navier_stokes_velocity_5.png
ps2png channel_navier_stokes_vorticity_5.ps channel_navier_stokes_vorticity_5.png
ps2png channel_navier_stokes_velocity_10.ps channel_navier_stokes_velocity_10.png
ps2png channel_navier_stokes_vorticity_10.ps channel_navier_stokes_vorticity_10.png
ps2png channel_navier_stokes_velocity_15.ps channel_navier_stokes_velocity_15.png
ps2png channel_navier_stokes_vorticity_15.ps channel_navier_stokes_vorticity_15.png
ps2png channel_navier_stokes_velocity_20.ps channel_navier_stokes_velocity_20.png
ps2png channel_navier_stokes_vorticity_20.ps channel_navier_stokes_vorticity_20.png
rm *.ps
#
echo "Normal end of execution."
