ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/DistributedModelCalculations/ShapeLimits/CreateModel.sh
(Generate patch)

Comparing UserCode/cbrown/Development/DistributedModelCalculations/ShapeLimits/CreateModel.sh (file contents):
Revision 1.2 by buchmann, Wed Apr 25 13:34:44 2012 UTC vs.
Revision 1.3 by buchmann, Fri Apr 27 07:09:25 2012 UTC

# Line 68 | Line 68 | else
68   fi
69  
70   echo "Going to run $command"
71 < time eval $command
71 > #time eval $command 3>&1 >&2 2>&3 3>&- | tee $1/log.txt
72 > time eval $command 2>&1 | tee $1/log.txt
73   echo "Done running limits"
74 + errorsencountered=`cat $1/log.txt | grep nan | wc -l`
75 + echo "DURING LIMIT COMPUTATOIN, AN ERROR LOG HAS BEEN WRITTEN TO $1/errorlog.txt which contains $errorsencountered not-a-value's"
76 + if [[ $errorsencountered -gt 20 ]]; then
77 + # something is seriously wrong, there's no point in continuing
78 +  exit -1
79 + fi
80 +
81   outfile="INVALID"
82   echo `pwd`
83   for i in `ls -ltrh | grep root | grep ombine | awk '{ print $9 }'`; do

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines