#!/bin/bash
run_gromacs_dir_name=$1

if [ -z "$run_gromacs_dir_name" ]
then
echo "run_gromacs_dir_name missing"
echo "example : ./validate.sh run_01-13-20-17-10-24_compile_01-13-20-16-20-05"
exit 1
fi

cd $run_gromacs_dir_name
perf=`grep Performance results | awk '{ print $2 }'`

if [ -z "$perf" ]
then
    echo "bench is not validated"
else
    echo bench is validated
    echo perf = $perf ns/day
fi
