foamGraph* : check if log file exists

This commit is contained in:
Mark Olesen
2009-08-02 11:23:00 +02:00
parent b5616b4ea4
commit 270f14f644
3 changed files with 12 additions and 0 deletions

View File

@ -29,6 +29,10 @@
# Description
#
#------------------------------------------------------------------------------
if (! -f "$1" ) then
echo "No file: '$1'"
exit 1
endif
set tmpTime = newTime$$.dat
cat $1 | grep "ExecutionTime = " | awk 'BEGIN { NENTRIES = 0 ; TPREV = 0.0 }{NENTRIES++; printf("%f %e\n", NENTRIES, $3 - TPREV); TPREV = $3}' - > $tmpTime