diff --git a/bin/foamGraphExecTime b/bin/foamGraphExecTime index 2b1be274b0..3dc2fa2c70 100755 --- a/bin/foamGraphExecTime +++ b/bin/foamGraphExecTime @@ -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 diff --git a/bin/foamGraphResKE b/bin/foamGraphResKE index ae9d713ef2..d00798f507 100755 --- a/bin/foamGraphResKE +++ b/bin/foamGraphResKE @@ -29,6 +29,10 @@ # Description # #------------------------------------------------------------------------------ +if (! -f "$1" ) then + echo "No file: '$1'" + exit 1 +endif set tmpK = newK$$.dat cat $1 | grep "Solving for k" | grep -v "solution singularity" | sed s/,//g | awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%f %e\n", NENTRIES, $8)}' - > $tmpK diff --git a/bin/foamGraphResUVWP b/bin/foamGraphResUVWP index 036cf47b5a..1b34258fcf 100755 --- a/bin/foamGraphResUVWP +++ b/bin/foamGraphResUVWP @@ -29,6 +29,10 @@ # Description # #------------------------------------------------------------------------------ +if (! -f "$1" ) then + echo "No file: '$1'" + exit 1 +endif set tmpU = newU$$.dat cat $1 | grep "Solving for Ux" | grep -v "solution singularity" | sed s/,//g | awk 'BEGIN { NENTRIES = 0 }{NENTRIES++; printf("%d %e\n", NENTRIES, $8)}' - > $tmpU