Postprocess

We use a shell script for postprocessing. Back pressure is what we want.

!/bin/sh
rows=wc -l run_tmp/postProcessing/areaAverage/0/surfaceFieldValue.dat|awk '{print $1}'
startcollect=$(($rows-5))
areaAvg="run_tmp/postProcessing/areaAverage/0/surfaceFieldValue.dat"
PRESS=cat $areaAvg |tr -d '()'|awk 'NR>'$startcollect'{sum+=$2;count+=1;print sum/count}' |head -n 10|tail -n 1
echo $PRESS