#! /bin/bash
#
/usr/local/bin/FreeFem++ membrane_error.edp > membrane_error.txt
if [ $? -ne 0 ]; then
  echo "Run error."
  exit
fi
#
ps2png membrane_error_mesh_0.ps membrane_error_mesh_0.png
ps2png membrane_error_u_0.ps membrane_error_u_0.png
ps2png membrane_error_mesh_1.ps membrane_error_mesh_1.png
ps2png membrane_error_u_1.ps membrane_error_u_1.png
rm *.ps
echo "Graphics ps2pnged to PNG format."
#
echo "Normal end of execution."
