Changeset 6152 for trunk/NEMOGCM/SETTE
- Timestamp:
- 2015-12-21T23:33:57+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/SETTE/sette_rpt.sh
r6140 r6152 29 29 f2t=$vdir/$nam/$mach/$dorv/SHORT/tracer.stat 30 30 31 if [ ! -f $f1s ]; then 32 printf "%-20s %s\n" $nam " incomplete test"; 33 return; 34 fi 35 if [ ! -f $f2s ]; then 36 printf "%-20s %s\n" $nam " incomplete test"; 37 return; 38 fi 39 # 40 # Check for tracer.stat files 41 # 42 ttest=-1 43 if [ -f $f1t ]; then (( ttest++ )); fi 44 if [ -f $f2t ]; then (( ttest++ )); fi 31 if [ ! -f $f1s ] && [ ! -f $f1t ] ; then 32 printf "%-20s %s\n" $nam " incomplete test"; 33 return; 34 fi 35 if [ ! -f $f2s ] && [ ! -f $f2t ] ; then 36 printf "%-20s %s\n" $nam " incomplete test"; 37 return; 38 fi 39 # 45 40 done_oce=0 46 41 47 nl=(`wc -l $f2s`) 48 tail -${nl[0]} $f1s > f1.tmp$$ 49 cmp -s f1.tmp$$ $f2s 50 if [ $? == 0 ]; then 51 if [ $pass == 0 ]; then printf "%-20s %s\n" $nam " solver.stat restartability passed";fi 52 else 53 printf "%-20s %s\n" $nam " solver.stat restartability FAILED" 54 # 55 # Offer view of differences on the second pass 56 # 57 if [ $pass == 1 ]; then 58 echo "<return> to view solver.stat differences" 59 read y 60 sdiff f1.tmp$$ $f2s 61 echo "<return> to view ocean.output differences" 62 read y 63 sdiff $f1o $f2o | grep "|" 64 done_oce=1 65 echo "<return> to continue" 66 read y 42 if [ -f $f1s ] && [ -f $f2s ]; then 43 nl=(`wc -l $f2s`) 44 tail -${nl[0]} $f1s > f1.tmp$$ 45 cmp -s f1.tmp$$ $f2s 46 if [ $? == 0 ]; then 47 if [ $pass == 0 ]; then 48 printf "%-20s %s %s\n" $nam " solver.stat restartability passed : " $dorv 49 fi 50 else 51 printf "%-20s %s %s\n" $nam " solver.stat restartability FAILED : " $dorv 52 # 53 # Offer view of differences on the second pass 54 # 55 if [ $pass == 1 ]; then 56 echo "<return> to view solver.stat differences" 57 read y 58 sdiff f1.tmp$$ $f2s 59 echo "<return> to view ocean.output differences" 60 read y 61 sdiff $f1o $f2o | grep "|" 62 done_oce=1 63 echo "<return> to continue" 64 read y 65 fi 67 66 fi 68 67 fi … … 70 69 # Check tracer.stat files (if they exist) 71 70 # 72 if [ $ttest == 1]; then71 if [ -f $f1t ] && [ -f $f2t ]; then 73 72 nl=(`wc -l $f2t`) 74 73 tail -${nl[0]} $f1t > f1.tmp$$ 75 74 cmp -s f1.tmp$$ $f2t 76 75 if [ $? == 0 ]; then 77 if [ $pass == 0 ]; then printf "%-20s %s\n" $nam " tracer.stat restartability passed";fi 78 else 79 printf "%-20s %s\n" $nam " solver.stat restartability FAILED" 76 if [ $pass == 0 ]; then 77 printf "%-20s %s %s\n" $nam " tracer.stat restartability passed : " $dorv 78 fi 79 else 80 printf "%-20s %s %s\n" $nam " tracer.stat restartability FAILED : " $dorv 80 81 # 81 82 # Offer view of differences on the second pass … … 123 124 f2t=$vdir/$nam/$mach/$dorv/$rep2/tracer.stat 124 125 125 if [ ! -f $f1s ]; then 126 printf "%-20s %s\n" $nam " incomplete test"; 127 return; 128 fi 129 if [ ! -f $f2s ]; then 130 printf "%-20s %s\n" $nam " incomplete test"; 131 return; 132 fi 133 # 134 # Check for tracer.stat files 135 # 136 ttest=-1 137 if [ -f $f1t ]; then (( ttest++ )); fi 138 if [ -f $f2t ]; then (( ttest++ )); fi 126 if [ ! -f $f1s ] && [ ! -f $f1t ] ; then 127 printf "%-20s %s\n" $nam " incomplete test"; 128 return; 129 fi 130 if [ ! -f $f2s ] && [ ! -f $f2t ] ; then 131 printf "%-20s %s\n" $nam " incomplete test"; 132 return; 133 fi 134 # 139 135 done_oce=0 140 136 141 cmp -s $f1s $f2s 142 if [ $? == 0 ]; then 143 if [ $pass == 0 ]; then printf "%-20s %s\n" $nam " solver.stat reproducibility passed";fi 144 else 145 printf "%-20s %s\n" $nam " solver.stat reproducibility FAILED" 146 # 147 # Offer view of differences on the second pass 148 # 149 if [ $pass == 1 ]; then 150 echo "<return> to view solver.stat differences" 151 read y 152 sdiff f1.tmp$$ $f2s 153 echo "<return> to view ocean.output differences" 154 read y 155 sdiff $f1o $f2o | grep "|" 156 done_oce=1 157 echo "<return> to continue" 158 read y 137 if [ -f $f1s ] && [ -f $f2s ] ; then 138 cmp -s $f1s $f2s 139 if [ $? == 0 ]; then 140 if [ $pass == 0 ]; then 141 printf "%-20s %s %s\n" $nam " solver.stat reproducibility passed : " $dorv 142 fi 143 else 144 printf "%-20s %s %s\n" $nam " solver.stat reproducibility FAILED : " $dorv 145 # 146 # Offer view of differences on the second pass 147 # 148 if [ $pass == 1 ]; then 149 echo "<return> to view solver.stat differences" 150 read y 151 sdiff f1.tmp$$ $f2s 152 echo "<return> to view ocean.output differences" 153 read y 154 sdiff $f1o $f2o | grep "|" 155 done_oce=1 156 echo "<return> to continue" 157 read y 158 fi 159 159 fi 160 160 fi … … 162 162 # Check tracer.stat files (if they exist) 163 163 # 164 if [ $ttest == 1 ]; then164 if [ -f $f1t ] && [ -f $f2t ] ; then 165 165 cmp -s $f1t $f2t 166 166 if [ $? == 0 ]; then 167 if [ $pass == 0 ]; then printf "%-20s %s\n" $nam " tracer.stat reproducibility passed";fi 168 else 169 printf "%-20s %s\n" $nam " solver.stat reproducibility FAILED" 167 if [ $pass == 0 ]; then printf "%-20s %s %s\n" $nam " tracer.stat reproducibility passed : " $dorv 168 fi 169 else 170 printf "%-20s %s %s\n" $nam " tracer.stat reproducibility FAILED : " $dorv 170 171 # 171 172 # Offer view of differences on the second pass
Note: See TracChangeset
for help on using the changeset viewer.