Changeset 9568 for branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/SETTE/sette_rpt.sh
- Timestamp:
- 2018-05-10T16:27:38+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_merge_2017_restart_datestamp_GO6_mixing/NEMOGCM/SETTE/sette_rpt.sh
r9223 r9568 35 35 cd ${TOOLS_DIR}/REBUILD_NEMO 36 36 #SF echo "REBUILD LONG restart SAS files, without standard output" 37 ./rebuild_nemo -t 4 ../../CONFIG/ SAS_ST/LONG/SAS_00000240_restart_ice $NPROC > /dev/null 2>&137 ./rebuild_nemo -t 4 ../../CONFIG/ORCA2_SAS_LIM3_ST/LONG/SAS_00000240_restart_ice $NPROC > /dev/null 2>&1 38 38 #SF echo "REBUILD SHORT restart SAS files, without standard output" 39 ./rebuild_nemo -t 4 ../../CONFIG/ SAS_ST/SHORT/SAS_00000240_restart_ice $NPROC >&-39 ./rebuild_nemo -t 4 ../../CONFIG/ORCA2_SAS_LIM3_ST/SHORT/SAS_00000240_restart_ice $NPROC >&- 40 40 cd ${SAS_RESTART_DIR}/LONG 41 41 #SF echo "COPY rebuild restart files" … … 46 46 f2o=$vdir/$nam/$mach/$dorv/SHORT/SAS_00000240_restart_ice.nc 47 47 if [ ! -f $f1o ] && [ ! -f $f2o ] ; then 48 printf "%-2 0s %s\n" $nam " REBUILD SAS restart ice DOES NOT exists; incomplete test";48 printf "%-27s %s\n" $nam " REBUILD SAS restart ice DOES NOT exists; incomplete test"; 49 49 return; 50 50 fi … … 70 70 if [ $difi == 0 ]; then 71 71 if [ $pass == 0 ]; then 72 printf "%-2 0s %s %s\n" $nam " ice restarts are IDENTICAL passed : " $dorv72 printf "%-27s %s %s\n" $nam " ice restarts are IDENTICAL passed : " $dorv 73 73 fi 74 74 else 75 printf "%-2 0s %s %s\n" $nam " ice restarts are DIFFERENT FAILED : " $dorv75 printf "%-27s %s %s\n" $nam " ice restarts are DIFFERENT FAILED : " $dorv 76 76 # 77 77 # Offer view of differences on the second pass … … 87 87 fi 88 88 else 89 printf "%-2 0s %s\n" $nam " incomplete test";89 printf "%-27s %s\n" $nam " incomplete test"; 90 90 return; 91 91 fi … … 114 114 115 115 if [ ! -f $f1s ] && [ ! -f $f1t ] ; then 116 printf "%-2 0s %s\n" $nam " incomplete test";116 printf "%-27s %s\n" $nam " incomplete test"; 117 117 return; 118 118 fi 119 119 if [ ! -f $f2s ] && [ ! -f $f2t ] ; then 120 printf "%-2 0s %s\n" $nam " incomplete test";120 printf "%-27s %s\n" $nam " incomplete test"; 121 121 return; 122 122 fi … … 130 130 if [ $? == 0 ]; then 131 131 if [ $pass == 0 ]; then 132 printf "%-2 0s %s %s\n" $nam " run.stat restartability passed : " $dorv132 printf "%-27s %s %s\n" $nam " run.stat restartability passed : " $dorv 133 133 fi 134 134 else 135 printf "%-2 0s %s %s\n" $nam " run.stat restartability FAILED : " $dorv135 printf "%-27s %s %s\n" $nam " run.stat restartability FAILED : " $dorv 136 136 # 137 137 # Offer view of differences on the second pass … … 159 159 if [ $? == 0 ]; then 160 160 if [ $pass == 0 ]; then 161 printf "%-2 0s %s %s\n" $nam " tracer.stat restartability passed : " $dorv161 printf "%-27s %s %s\n" $nam " tracer.stat restartability passed : " $dorv 162 162 fi 163 163 else 164 printf "%-2 0s %s %s\n" $nam " tracer.stat restartability FAILED : " $dorv164 printf "%-27s %s %s\n" $nam " tracer.stat restartability FAILED : " $dorv 165 165 # 166 166 # Offer view of differences on the second pass … … 209 209 210 210 if [ ! -f $f1s ] && [ ! -f $f1t ] ; then 211 printf "%-2 0s %s\n" $nam " incomplete test";211 printf "%-27s %s\n" $nam " incomplete test"; 212 212 return; 213 213 fi 214 214 if [ ! -f $f2s ] && [ ! -f $f2t ] ; then 215 printf "%-2 0s %s\n" $nam " incomplete test";215 printf "%-27s %s\n" $nam " incomplete test"; 216 216 return; 217 217 fi … … 223 223 if [ $? == 0 ]; then 224 224 if [ $pass == 0 ]; then 225 printf "%-2 0s %s %s\n" $nam " run.stat reproducibility passed : " $dorv225 printf "%-27s %s %s\n" $nam " run.stat reproducibility passed : " $dorv 226 226 fi 227 227 else 228 printf "%-2 0s %s %s\n" $nam " run.stat reproducibility FAILED : " $dorv228 printf "%-27s %s %s\n" $nam " run.stat reproducibility FAILED : " $dorv 229 229 # 230 230 # Offer view of differences on the second pass … … 249 249 cmp -s $f1t $f2t 250 250 if [ $? == 0 ]; then 251 if [ $pass == 0 ]; then printf "%-2 0s %s %s\n" $nam " tracer.stat reproducibility passed : " $dorv251 if [ $pass == 0 ]; then printf "%-27s %s %s\n" $nam " tracer.stat reproducibility passed : " $dorv 252 252 fi 253 253 else 254 printf "%-2 0s %s %s\n" $nam " tracer.stat reproducibility FAILED : " $dorv254 printf "%-27s %s %s\n" $nam " tracer.stat reproducibility FAILED : " $dorv 255 255 # 256 256 # Offer view of differences on the second pass … … 291 291 f1o=$vdir/$nam/$mach/$dorv/$rep1/ocean.output 292 292 if [ ! -f $f1o ] ; then 293 printf "%-2 0s %s\n" $nam " ocean.output is MISSING : " $dorv293 printf "%-27s %s %s\n" $nam " ocean.output is MISSING : " $dorv 294 294 return; 295 295 else 296 296 nerr=`grep 'E R R O R' $f1o | wc -l` 297 297 if [[ $nerr > 0 ]]; then 298 printf "%-2 0s %s %s\n" $nam " run FAILED : " $dorv298 printf "%-27s %s %s\n" $nam " run FAILED : " $dorv 299 299 if [ $pass == 1 ]; then 300 300 echo "<return> to view end of ocean.output" … … 307 307 fi 308 308 else 309 printf "%-2 0s %s %s\n" $nam " directory is MISSING : " $dorv309 printf "%-27s %s %s\n" $nam " directory is MISSING : " $dorv 310 310 fi 311 311 } … … 327 327 dorv2=`echo $dorv2 | sed -e 's:.*/::'` 328 328 329 rep1=`ls -1rt $vdir/$dir1/$mach/$dorv1/ | tail -2l | head -1 ` 330 rep2=`ls -1rt $vdir/$dir2/$mach/$dorv2/ | tail -1l` 329 rep1=`ls -1rt $vdir/$dir1/$mach/$dorv1/ | tail -1l` 330 #clem rep2=`ls -1rt $vdir/$dir2/$mach/$dorv2/ | tail -1l` 331 rep2=`ls -1rt $vdir/$dir1/$mach/$dorv1/ | tail -1l` 331 332 f1s=$vdir/$dir1/$mach/$dorv1/$rep1/run.stat 332 333 f2s=$vdir/$dir2/$mach/$dorv2/$rep2/run.stat 333 334 334 335 if [ ! -f $f1s ] && [ ! -f $f2s ] ; then 335 printf "%-2 0s %s\n" $dir1 $dir2 " incomplete test";336 printf "%-27s %s\n" $dir1 $dir2 " incomplete test"; 336 337 return; 337 338 fi … … 343 344 if [ $? == 0 ]; then 344 345 if [ $pass == 0 ]; then 345 printf "%- 20s %s %s %s %s\n" $rep1 $rep2 " AGRIF: run.stat unchanged - testpassed : " $dorv1 $dorv2346 printf "%-5s %s %-5s %s %s %s\n" $rep1 "AGRIF vs" $rep2 "NOAGRIF run.stat unchanged - passed : " $dorv1 $dorv2 346 347 fi 347 348 else 348 printf "%- 20s %s %s %s %s\n" $rep1 $rep2 " for AGRIF, run.stat testFAILED : " $dorv1 $dorv2349 printf "%-5s %s %-5s %s %s %s\n" $rep1 "AGRIF vs" $rep2 "NOAGRIF run.stat changed - FAILED : " $dorv1 $dorv2 349 350 # 350 351 # Offer view of differences on the second pass … … 361 362 fi 362 363 else 363 printf "%-2 0s %s\n" $dir1 $dir2 " incomplete test";364 printf "%-27s %s\n" $dir1 $dir2 " incomplete test"; 364 365 fi 365 366 } … … 381 382 # Directory to run the tests 382 383 SETTE_DIR=$(cd $(dirname "$0"); pwd) 383 MAIN_DIR=$ (dirname $SETTE_DIR)384 MAIN_DIR=$SETTE_DIR/../.. 384 385 CONFIG_DIR0=${MAIN_DIR}/CONFIG 385 386 TOOLS_DIR=${MAIN_DIR}/TOOLS 386 387 COMPIL_DIR=${TOOLS_DIR}/COMPILE 387 388 NPROC=32 388 SAS_RESTART_DIR=${CONFIG_DIR0}/ SAS_ST389 SAS_RESTART_DIR=${CONFIG_DIR0}/ORCA2_SAS_LIM3_ST 389 390 # 390 391 # Show current revision tag and branch name 391 392 # 392 393 cmd="svn" 393 [ ! -d "$SETTE_DIR/.svn" ] && cmd="git $cmd" 394 [ ! -d "$MAIN_DIR/.svn" ] && cmd="git $cmd" 395 echo $cmd 396 echo "$MAIN_DIR/.svn" 397 lastchange=`$cmd info ${MAIN_DIR} | grep -i "Last Changed Rev:" | sed -e "s/ //g" | cut -d ":" -f 2` 394 398 revision=`$cmd info | grep Revision | cut -d ":" -f 2 | tr -d ' '` 395 399 branchname=`$cmd info | grep URL | rev | cut -d "/" -f 3 | rev` 396 echo "SETTE validation report : $branchname @ r$revision "400 echo "SETTE validation report : $branchname @ r$revision ( last change @ r$lastchange )" 397 401 # 398 402 # The script also needs the date or revision tag. Currently this is taken from the latest sub-directory found in each directory … … 401 405 do 402 406 # 403 if [ $pass == 1 ]; then echo "---------------2nd pass------------------";fi 407 if [ $pass == 0 ]; then 408 echo "" 409 echo "!!---------------1st pass------------------!!" 410 fi 411 if [ $pass == 1 ]; then 412 echo "" 413 echo "!!---------------2nd pass------------------!!" 414 fi 404 415 # 405 416 406 417 # Rebuild and restartability test for SAS 407 # 408 for restart_file in WSAS_ST409 do410 restfile $NEMO_VALID $restart_file $pass411 done418 # clem: not needed anymore 419 # for restart_file in WORCA2_SAS_LIM3_ST 420 # do 421 # restfile $NEMO_VALID $restart_file $pass 422 # done 412 423 # 413 424 # Restartability test 414 # 415 for restart_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2AGR_ST 425 echo "" 426 echo " !----restart----! " 427 for restart_test in WGYRE_PISCES_ST WORCA2_LIM3_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_LIM3_ST WAGRIF_NORDIC_ST WSPITZ12_ST WISOMIP_ST WOVERFLOW_ST WLOCK_EXCHANGE_ST WVORTEX_ST WWAD_ST WSAS_BIPER_ST 416 428 do 417 429 resttest $NEMO_VALID $restart_test $pass … … 419 431 # 420 432 # Reproducibility tests 421 # 422 for repro_test in WGYREPIS_ST WORCA2LIM3PIS_ST WORCA2OFFPIS_ST WAMM12_ST WISOMIP_ST WORCA2_LIM3_OBS_ST WORCA2AGR_ST 433 echo "" 434 echo " !----repro----! " 435 for repro_test in WGYRE_PISCES_ST WORCA2_LIM3_PISCES_ST WORCA2_OFF_PISCES_ST WAMM12_ST WORCA2_SAS_LIM3_ST WORCA2_LIM3_OBS_ST WAGRIF_NORDIC_ST WSPITZ12_ST WISOMIP_ST 423 436 do 424 437 reprotest $NEMO_VALID $repro_test $pass … … 426 439 done 427 440 428 429 430 # AGRIF special check 431 dir1=W ORCA2AGUL_NOZOOM_ST432 dir2=W ORCA2AGUL_NOAGR_ST441 # AGRIF special check to ensure results are unchanged with and without key_agrif 442 echo "" 443 echo " !----agrif check----! " 444 dir1=WAGRIF_NORDIC_NOAGRIF_ST 445 dir2=WAGRIF_NORDIC_ST 433 446 identictest $NEMO_VALID $dir1 $dir2 $pass 434 447 435 436 448 done 437 449 # 438 ## Additional checks for ORCA2AGUL/FIRST standalone AGRIF test439 ## still to be added440 441 442 450 443 451 exit
Note: See TracChangeset
for help on using the changeset viewer.