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

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

runApplication blockMesh
runApplication foamRun

# Compare to reference solution
case=$(basename "$PWD")

runCommand --suffix "${case}" -- diff -b -s \
    validation/reference/postProcessing/UAirMaxValue/40/volFieldValue.dat \
    postProcessing/UAirMaxValue/40/volFieldValue.dat

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