#!/bin/bash cd "${0%/*}" || exit # Run from this directory . ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions #------------------------------------------------------------------------------ plot_results() { image="plots/surface_compare.png" gnuplot</dev/null || { echo "FOAM FATAL ERROR: gnuplot not found - skipping graph creation" 1>&2 exit 1 } #------------------------------------------------------------------------------ dirPlots="plots" [ -d "$dirPlots" ] || mkdir -p "$dirPlots" plot_results #------------------------------------------------------------------------------