- Timestamp:
- 2014-11-28T14:59:01+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2014/dev_r4650_UKMO13_CICE_changes_take2/NEMOGCM/SETTE/sette_rpt
r3725 r4921 17 17 cd $NEMO_VALID 18 18 # 19 # The script also needs the date or revision tag. Currently this is taken from the latest sub-directory 20 # found in the WGYRE_LONG directory 21 # 22 set dorv = `ls -1rtd ./WGYRE_LONG/{$mach}/* | tail -1l ` 23 set dorv = $dorv:t 19 # The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory 20 # 24 21 # 25 22 # Now loop through all the test directories. On the second pass the user can optionally examine any mismatched … … 30 27 foreach pass (0 1 ) 31 28 if ( -d ./WGYRE_LONG ) then 29 set dorv = `ls -1rtd ./WGYRE_LONG/{$mach}/* | tail -1l ` 30 set dorv = $dorv:t 32 31 set f1o = ./WGYRE_LONG/{$mach}/{$dorv}/LONG/ocean.output 33 32 set f1s = ./WGYRE_LONG/{$mach}/{$dorv}/LONG/solver.stat … … 39 38 cmp -s f1.tmp$$ $f2s 40 39 if ( $status == 0 ) then 41 echo "GYRE restartability passed"42 else 43 echo "GYRE restartability FAILED"40 echo "GYRE restartability passed" 41 else 42 echo "GYRE restartability FAILED" 44 43 if ( $pass == 1 ) then 45 44 echo "<return> to view solver.stat differences" … … 57 56 58 57 if ( -d ./WORCA2LIMPIS_LONG ) then 58 set dorv = `ls -1rtd ./WORCA2LIMPIS_LONG/{$mach}/* | tail -1l ` 59 set dorv = $dorv:t 59 60 set f1o = ./WORCA2LIMPIS_LONG/{$mach}/{$dorv}/LONG/ocean.output 60 61 set f1s = ./WORCA2LIMPIS_LONG/{$mach}/{$dorv}/LONG/solver.stat … … 84 85 85 86 if ( -d ./WORCA2OFFPIS_LONG ) then 87 set dorv = `ls -1rtd ./WORCA2OFFPIS_LONG/{$mach}/* | tail -1l ` 88 set dorv = $dorv:t 86 89 set f1o = ./WORCA2OFFPIS_LONG/{$mach}/{$dorv}/LONG/ocean.output 87 90 set f1s = ./WORCA2OFFPIS_LONG/{$mach}/{$dorv}/LONG/tracer.stat … … 111 114 112 115 if ( -d ./WAMM12_LONG ) then 116 set dorv = `ls -1rtd ./WAMM12_LONG/{$mach}/* | tail -1l ` 117 set dorv = $dorv:t 113 118 set f1o = ./WAMM12_LONG/{$mach}/{$dorv}/LONG/ocean.output 114 119 set f1s = ./WAMM12_LONG/{$mach}/{$dorv}/LONG/solver.stat … … 136 141 rm f1.tmp$$ 137 142 endif 138 143 NEXT0: 144 if ( -d ./WSAS_LONG ) then 145 set dorv = `ls -1rtd ./WSAS_LONG/{$mach}/* | tail -1l ` 146 set dorv = $dorv:t 147 set f1o = ./WSAS_LONG/{$mach}/{$dorv}/LONG/ocean.output 148 set f1s = ./WSAS_LONG/{$mach}/{$dorv}/LONG/solver.stat 149 set f2o = ./WSAS_LONG/{$mach}/{$dorv}/SHORT/ocean.output 150 set f2s = ./WSAS_LONG/{$mach}/{$dorv}/SHORT/solver.stat 151 152 foreach f ( $f1o $f1s $f2o $f2s ) 153 if ( ! -f $f ) then 154 echo 'SAS restartability inconclusive ( ' $f:t ' not found )' 155 goto NEXT 156 endif 157 end 158 159 set nl = `wc -l $f2s` 160 tail -$nl[1] $f1s > f1.tmp$$ 161 cmp -s f1.tmp$$ $f2s 162 if ( $status == 0 ) then 163 echo "SAS restartability passed" 164 else 165 echo "SAS restartability FAILED" 166 if ( $pass == 1 ) then 167 echo "<return> to view solver.stat differences" 168 set y = $< 169 sdiff f1.tmp$$ $f2s 170 echo "<return> to view ocean.output differences" 171 set y = $< 172 sdiff $f1o $f2o | grep "|" 173 echo "<return> to continue" 174 set y = $< 175 endif 176 endif 177 rm f1.tmp$$ 178 endif 179 180 NEXT: 139 181 echo 140 182 141 183 if ( -d ./WGYRE_4 ) then 184 set dorv = `ls -1rtd ./WGYRE_4/{$mach}/* | tail -1l ` 185 set dorv = $dorv:t 142 186 set f1o = ./WGYRE_4/{$mach}/{$dorv}/REPRO_1_4/ocean.output 143 187 set f1s = ./WGYRE_4/{$mach}/{$dorv}/REPRO_1_4/solver.stat … … 147 191 cmp -s $f1s $f2s 148 192 if ( $status == 0 ) then 149 echo "GYRE reproducibility passed"150 else 151 echo "GYRE reproducibility FAILED"193 echo "GYRE reproducibility passed" 194 else 195 echo "GYRE reproducibility FAILED" 152 196 if ( $pass == 1 ) then 153 197 echo "<return> to view solver.stat differences" … … 164 208 165 209 if ( -d ./WORCA2LIMPIS_16 ) then 210 set dorv = `ls -1rtd ./WORCA2LIMPIS_16/{$mach}/* | tail -1l ` 211 set dorv = $dorv:t 166 212 set f1o = ./WORCA2LIMPIS_16/{$mach}/{$dorv}/REPRO_2_8/ocean.output 167 213 set f1s = ./WORCA2LIMPIS_16/{$mach}/{$dorv}/REPRO_2_8/solver.stat … … 188 234 189 235 if ( -d ./WORCA2OFFPIS_16 ) then 236 set dorv = `ls -1rtd ./WORCA2OFFPIS_16/{$mach}/* | tail -1l ` 237 set dorv = $dorv:t 190 238 set f1o = ./WORCA2OFFPIS_16/{$mach}/{$dorv}/REPRO_2_8/ocean.output 191 239 set f1s = ./WORCA2OFFPIS_16/{$mach}/{$dorv}/REPRO_2_8/tracer.stat … … 212 260 213 261 if ( -d ./WAMM12_32 ) then 262 set dorv = `ls -1rtd ./WAMM12_32/{$mach}/* | tail -1l ` 263 set dorv = $dorv:t 214 264 set f1o = ./WAMM12_32/{$mach}/{$dorv}/REPRO_4_8/ocean.output 215 265 set f1s = ./WAMM12_32/{$mach}/{$dorv}/REPRO_4_8/solver.stat … … 235 285 endif 236 286 287 if ( -d ./WSAS_32 ) then 288 set dorv = `ls -1rtd ./WSAS_32/{$mach}/* | tail -1l ` 289 set dorv = $dorv:t 290 set f1o = ./WSAS_32/{$mach}/{$dorv}/REPRO_4_8/ocean.output 291 set f1s = ./WSAS_32/{$mach}/{$dorv}/REPRO_4_8/solver.stat 292 set f2o = ./WSAS_32/{$mach}/{$dorv}/REPRO_8_4/ocean.output 293 set f2s = ./WSAS_32/{$mach}/{$dorv}/REPRO_8_4/solver.stat 294 295 foreach f ( $f1o $f1s $f2o $f2s ) 296 if ( ! -f $f ) then 297 echo 'SAS reproducibility inconclusive ( ' $f:t ' not found )' 298 goto NEXT1 299 endif 300 end 301 302 cmp -s $f1s $f2s 303 if ( $status == 0 ) then 304 echo "SAS reproducibility passed" 305 else 306 echo "SAS reproducibility FAILED" 307 if ( $pass == 1 ) then 308 echo "<return> to view solver.stat differences" 309 set y = $< 310 sdiff $f1s $f2s 311 echo "<return> to view ocean.output differences" 312 set y = $< 313 sdiff $f1o $f2o | grep "|" 314 echo "<return> to continue" 315 set y = $< 316 endif 317 endif 318 endif 319 NEXT1: 320 237 321 if ( -d ./WORCA2AGUL_1_2 ) then 322 set dorv = `ls -1rtd ./WORCA2AGUL_1_2/{$mach}/* | tail -1l ` 323 set dorv = $dorv:t 238 324 set f1o = ./WORCA2AGUL_1_2/{$mach}/{$dorv}/SHORT/ocean.output 239 325 set f1s = ./WORCA2AGUL_1_2/{$mach}/{$dorv}/SHORT/solver.stat
Note: See TracChangeset
for help on using the changeset viewer.