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

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

latestTime=$(foamListTimes -functionEntries | tail -n 1)
targetDirectory="validation/reference/singleGraph/${latestTime}"

# Copy results from latest run into reference directory
cp -f "postProcessing/singleGraph/${latestTime}/line.csv" "${targetDirectory}"

targetDirectory="validation/reference/singleGraphMean/${latestTime}"

# Copy results from latest run into reference directory
cp -f "postProcessing/singleGraphMean/${latestTime}/line.csv" \
      "${targetDirectory}"

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