#!/bin/bash
cd "${0%/*}" || exit 1    # Run from this directory

# Source run functions
. "$WM_PROJECT_SITE/$WM_PROJECT_VERSION/bin/tools/RunFunctions"

runCommand -- foamAverageFileData.py \
    -directory postProcessing/singleGraph/ -pattern "x_spectrum" -skip-zero -v

case=$(basename "$PWD")
runCommand --suffix "${case}" -- diff -s \
    postProcessing/singleGraph/average.x_spectrum.dat \
    validation/average.x_spectrum.dat

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