Changeset 457 for trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
- Timestamp:
- 04/13/11 10:32:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
r455 r457 20 20 # Debug Print : 21 21 echo 22 IGCM_debug_Print 1 "IGCM_post_Configure :" 23 echo 22 IGCM_debug_Print 1 "IGCM_post_Configure" 24 23 # 25 24 # Initialize … … 85 84 done 86 85 # 87 echo 88 IGCM_debug_Print 1 "POST-TREATEMENT flag value : ${POST}" 86 IGCM_debug_Print 2 "POST-TREATEMENT flag value : ${POST}" 89 87 # 90 88 IGCM_debug_PopStack "IGCM_post_Configure" … … 101 99 if [ ${POST} = true ]; then 102 100 echo 103 IGCM_debug_Print 1 "IGCM_post_Submit :"101 IGCM_debug_Print 1 "IGCM_post_Submit" 104 102 echo 105 IGCM_debug_Print 1"POST_DIR = ${POST_DIR}"103 IGCM_debug_Print 2 "POST_DIR = ${POST_DIR}" 106 104 fi 107 105 … … 109 107 if [ ${TimeSeriesFrequency} = true ] ; then 110 108 111 IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ACTIVATED :"109 IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ACTIVATED" 112 110 echo 113 111 … … 130 128 if [ X$( eval echo \${TimeSeries${Dimension}} ) = Xtrue ] ; then 131 129 # 132 IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ${Dimension} ACTIVATED :"130 IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ${Dimension} ACTIVATED" 133 131 echo 134 132 # … … 219 217 if [ X$( eval echo \${TimeSeriesChunck${Dimension}} ) = Xtrue ] ; then 220 218 # 221 IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ${Dimension} WITH CHUNCK ACTIVATED :"219 IGCM_debug_Print 1 "TIME SERIES POST-PROCESSING ${Dimension} WITH CHUNCK ACTIVATED" 222 220 echo 223 221 # Need to Remember This One … … 340 338 if [ ${SeasonalFrequency} = true ] ; then 341 339 # 342 IGCM_debug_Print 2 "SEASONNAL POST-TREATMENT :"340 IGCM_debug_Print 1 "SEASONNAL POST-TREATMENT" 343 341 echo 344 342 # … … 435 433 if [ ${RebuildFrequency} = true ] ; then 436 434 if ( [ ${config_Post_RebuildFromArchive} = true ] ) ; then 437 IGCM_debug_Print 2 "REBUILD POST-TREATMENT FROM ARCHIVE:"435 IGCM_debug_Print 1 "REBUILD POST-TREATMENT FROM ARCHIVE" 438 436 echo 439 437 # 440 438 script=rebuild_fromArchive 441 439 else 442 IGCM_debug_Print 2 "REBUILD POST-TREATMENT FROM WORKDIR:"440 IGCM_debug_Print 1 "REBUILD POST-TREATMENT FROM WORKDIR" 443 441 echo 444 442 # … … 505 503 SlaveFrequency=$( eval echo \${${2}} ) 506 504 507 IGCM_debug_Print 1"IGCM_post_CheckModuloFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency}"505 IGCM_debug_Print 2 "IGCM_post_CheckModuloFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency}" 508 506 509 507 case ${MasterFrequency} in … … 515 513 if ( [ ${PeriodSlaveYear} -gt ${PeriodMasterYear} ] || \ 516 514 [ $(( ${PeriodMasterYear} % ${PeriodSlaveYear} )) -ne 0 ] ); then 517 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"518 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"515 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 516 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 519 517 IGCM_debug_Exit "Check your frequency" 520 518 fi ;; … … 523 521 if ( [ ${PeriodSlaveMonth} -gt $(( ${PeriodMasterYear} * 12 )) ] || \ 524 522 [ $(( ( ${PeriodMasterYear} * 12 ) % ${PeriodSlaveMonth} )) -ne 0 ] ) ; then 525 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"526 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"523 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 524 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 527 525 IGCM_debug_Exit "Check your frequency" 528 526 fi ;; … … 533 531 if ( [ ${PeriodSlaveDay} -gt $(( ${PeriodMasterYear} * ${NbDays} )) ] || \ 534 532 [ $(( ( ${PeriodMasterYear} * ${NbDays} ) % ${PeriodSlaveDay} )) -ne 0 ] ; ) then 535 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"536 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"533 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 534 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 537 535 IGCM_debug_Exit "Check your frequency" 538 536 fi 539 537 else 540 IGCM_debug_Print 3"For ${MasterName} with leap calendar:"541 IGCM_debug_Print 3"We have a daily ${SlaveName} frequency and ${MasterName}=${MasterFrequency}"542 IGCM_debug_Print 3"No post-treatment. Case not properly handle at this moment by libIGCM. Sorry"538 IGCM_debug_Print 1 "For ${MasterName} with leap calendar:" 539 IGCM_debug_Print 1 "We have a daily ${SlaveName} frequency and ${MasterName}=${MasterFrequency}" 540 IGCM_debug_Print 1 "No post-treatment. Case not properly handle at this moment by libIGCM. Sorry" 543 541 IGCM_debug_Exit "Check your frequency ${MasterName} and choose a daily frequency for this one too." 544 542 fi ;; … … 551 549 if ( [ ${PeriodMasterMonth} -gt $(( ${PeriodSlaveYear} * 12 )) ] || \ 552 550 [ $(( ${PeriodMasterMonth} % ( ${PeriodSlaveYear} * 12 ) )) -ne 0 ] ) ; then 553 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"554 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"551 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 552 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 555 553 IGCM_debug_Exit "Check your frequency" 556 554 fi ;; … … 559 557 if ( [ ${PeriodSlaveMonth} -gt ${PeriodMasterMonth} ] || \ 560 558 [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ; then 561 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"562 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"559 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 560 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 563 561 IGCM_debug_Exit "Check your frequency" 564 562 fi ;; 565 563 *D|*d) 566 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"567 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"564 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 565 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 568 566 IGCM_debug_Exit "Check your frequency" ;; 569 567 esac ;; … … 572 570 case ${SlaveFrequency} in 573 571 *Y|*y) 574 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"575 IGCM_debug_Print 3"${MasterName} frequency ${MasterFrequency}"572 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 573 IGCM_debug_Print 1 "${MasterName} frequency ${MasterFrequency}" 576 574 IGCM_debug_Exit "Check your frequency" ;; 577 575 *M|*m) 578 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"579 IGCM_debug_Print 3"${MasterName} frequency ${MasterFrequency}"576 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 577 IGCM_debug_Print 1 "${MasterName} frequency ${MasterFrequency}" 580 578 IGCM_debug_Exit "Check your frequency" ;; 581 579 *D|*d) … … 583 581 if ( [ ${PeriodSlaveDay} -gt ${PeriodMasterDay} ] || \ 584 582 [ $(( ${PeriodMasterDay} % ${PeriodSlaveDay} )) -ne 0 ] ) ; then 585 IGCM_debug_Print 3"${SlaveName} frequency ${SlaveFrequency} not compatbile with"586 IGCM_debug_Print 3"${MasterName} frequency : ${MasterFrequency}"583 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 584 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" 587 585 IGCM_debug_Exit "Check your frequency" 588 586 fi ;; … … 591 589 ;; 592 590 *) 593 IGCM_debug_Print 3"KeyWord ${MasterFrequency} not allowed for ${MasterName} in config.card"591 IGCM_debug_Print 1 "KeyWord ${MasterFrequency} not allowed for ${MasterName} in config.card" 594 592 IGCM_debug_Exit "Check your ${MasterName} in config.card" ;; 595 593 esac … … 622 620 623 621 echo 624 IGCM_debug_Print 1 "IGCM_post_ModuloRuntimeFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency} CumulPeriod=${CumulPeriod}" 625 echo 622 IGCM_debug_Print 2 "IGCM_post_ModuloRuntimeFrequency : Master=${MasterFrequency} Slave=${SlaveFrequency} CumulPeriod=${CumulPeriod}" 626 623 627 624 case ${MasterFrequency} in … … 675 672 fi;; 676 673 *D|*d) 677 IGCM_debug_Print 3"PeriodLength frequency ${SlaveFrequency} not compatbile with"678 IGCM_debug_Print 3"${flag_post} frequency : ${MasterFrequency} " ;;674 IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 675 IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 679 676 esac ;; 680 677 *D|*d) … … 682 679 case ${SlaveFrequency} in 683 680 *Y|*y) 684 IGCM_debug_Print 3"PeriodLength frequency ${SlaveFrequency} not compatbile with"685 IGCM_debug_Print 3"${flag_post} frequency : ${MasterFrequency} " ;;681 IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 682 IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 686 683 *M|*m) 687 IGCM_debug_Print 3"PeriodLength frequency ${SlaveFrequency} not compatbile with"688 IGCM_debug_Print 3"${flag_post} frequency : ${MasterFrequency} " ;;684 IGCM_debug_Print 1 "PeriodLength frequency ${SlaveFrequency} not compatbile with" 685 IGCM_debug_Print 1 "${flag_post} frequency : ${MasterFrequency} " ;; 689 686 *D|*d) 690 687 PeriodSlaveDay=$( echo ${SlaveFrequency} | sed -e "s/[dD]//" ) … … 699 696 ;; 700 697 *) 701 IGCM_debug_Print 3"KeyWord not allowed for ${post_freq} in config.card"698 IGCM_debug_Print 1 "KeyWord not allowed for ${post_freq} in config.card" 702 699 ;; 703 700 esac
Note: See TracChangeset
for help on using the changeset viewer.