#!/bin/bash

if ! which gnuplot > /dev/null 2>&1
then
    echo 'gnuplot not found - skipping graph creation' >&2
    exit 1
fi

gnuplot<<EOF
    set term pngcairo size 800,600

    set output 'alphaMax.png'
    plot "../postProcessing/alphaMaxValue/0/volFieldValue.dat" w l lw 2 t "current simulation", \
         0.3                                                                                            t "reference result"

    set output 'alphaMin.png'
    plot "../postProcessing/alphaMinValue/0/volFieldValue.dat" w l lw 2 t "current simulation", \
         0.3                                                                                            t "reference result"
EOF

#------------------------------------------------------------------------------
