Changeset 1871
- Timestamp:
- 09/07/12 15:49:44 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/showPackProgress.sh
r1868 r1871 250 250 nbOfListsNottreated=$(( $nbOfListsNottreated + 1 )) 251 251 simuOK=$(( $simuOK && 0 )) # marque une simu pas OK 252 simutreated=$(( $simutreated && 0 )) # marque une simu non completement traitee 252 253 fi 253 254 … … 272 273 outputFile= 273 274 detailed_mode=1 275 publish_mode=1 274 276 while [ $# -gt 0 ] 275 277 do … … 300 302 detailed_mode=0 301 303 ;; 304 -p) echo "option -p selectionnee : publication" 305 publish_mode=0 302 306 esac 303 307 shift … … 340 344 # exit 0 # gpdebug : a virer 341 345 346 TotalNbSimu=0 347 nbOfSimuPacked=0 348 nbOfSimuFailed=0 349 nbOfSimuNottreated=0 342 350 nbOfListsPacked=0 343 351 nbOfListsFailed=0 … … 347 355 totalTime=0 348 356 357 TotalNbSimu=`cat ${IGCM_DEM}/config_card.liste |wc -l` 358 359 if [ "x${outputFile}" == "x" ] && [ "x${publish_mode}" == "x0" ] 360 then 361 # Publication 362 echo "Simulation;Status" > ${outputFile}_${USER} 363 fi 349 364 350 365 for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do … … 367 382 368 383 simuOK=1 369 384 simutreated=1 385 370 386 if [ ! -e "${PATH_SIMU}/tar_full_simul.list" ] 371 387 then … … 378 394 then 379 395 echo " ${dir} n'existe pas pour cette simu" >> simuPrint.txt 380 simuOK=$(( $simuOK && 0 )) # marque une simu pas OK396 # simuOK=$(( $simuOK && 0 )) # marque une simu pas OK 381 397 continue 382 398 fi … … 406 422 resSimu="not OK" 407 423 fi 408 424 425 if [ "x${simutreated}" == "x0" ] 426 then 427 resSimu="not treated" 428 fi 429 430 if [ "x${resSimu}" == "xnot OK" ] 431 then 432 nbOfSimuFailed=$(( $nbOfSimuFailed + 1 )) 433 elif [ "x${resSimu}" == "xnot treated" ] 434 then 435 nbOfSimuNottreated=$(( $nbOfSimuNottreated + 1 )) 436 else 437 nbOfSimuPacked=$(( $nbOfSimuPacked + 1 )) 438 fi 439 409 440 if [ "x${outputFile}" == "x" ] 410 441 then … … 417 448 fi 418 449 else 450 if [ "x${publish_mode}" == "x1" ] 451 then 419 452 echo "***************************************************" >> ${outputFile} 420 453 echo "simulation : $simuName ===> $resSimu" >> ${outputFile} … … 424 457 cat simuPrint.txt $outRedirectStatement >> ${outputFile} 425 458 fi 459 else 460 # Publication 461 echo "$simuName;$resSimu" >> ${outputFile}_${USER} 462 fi 426 463 fi 427 464 rm simuPrint.txt … … 447 484 echo "##### BILAN #####" 448 485 echo "##################" 486 echo "nb of Simulations packed with success : ${nbOfSimuPacked} / ${TotalNbSimu}" 487 echo "nb of Simus failed : ${nbOfSimuFailed}" 488 echo "nb of Simus not treated : ${nbOfSimuNottreated}" 449 489 echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" 450 490 echo "nb of fails : $nbOfListsFailed" … … 458 498 459 499 else 500 if [ "x${publish_mode}" == "x1" ] 501 then 460 502 echo 461 503 echo "##################" >> ${outputFile} 462 504 echo "##### BILAN #####" >> ${outputFile} 463 505 echo "##################" >> ${outputFile} 506 echo "nb of Simulations packed with success : ${nbOfSimuPacked} / ${TotalNbSimu}" >> ${outputFile} 507 echo "nb of Simus failed : ${nbOfSimuFailed}" >> ${outputFile} 508 echo "nb of Simus not treated : ${nbOfSimuNottreated}" >> ${outputFile} 464 509 echo "nb of Lists packed with success : ${nbOfListsPacked} / ${totalNbOfList}" >> ${outputFile} 465 510 echo "nb of fails : $nbOfListsFailed" >> ${outputFile} … … 471 516 echo "Total time for elementary operations : $totalTime" >> ${outputFile} 472 517 echo "Time since launch start : $timeSinceLaunchStart" >> ${outputFile} 473 518 else 519 # Publication 520 echo "User;TotalNbSimu;NbOfSimuPacked;NbOfSimuFailed;NbOfSimuNottreated;TotalNbOfList;NbOfListsPacked;NbOfListsFailed;NbOfListsNottreated;TotalNbFiles;Nbfilestreated;Nbfilesafter;NbSimuTar" > ${outputFile} 521 echo "${USER};${TotalNbSimu};${nbOfSimuPacked};${nbOfSimuFailed};${nbOfSimuNottreated};${totalNbOfList};${nbOfListsPacked};$nbOfListsFailed;${nbOfListsNottreated};$TotalNbInodes;$NbInodeBefore;$NbInodeAfter;$TotalSimuTar" >> ${outputFile} 522 fi 474 523 fi
Note: See TracChangeset
for help on using the changeset viewer.