Changeset 860 for CONFIG/LMDZINCA


Ignore:
Timestamp:
12/18/09 16:26:16 (12 years ago)
Author:
acosce
Message:

ACo : add change for Bands Files

Location:
CONFIG/LMDZINCA/branches/LMDZINCA_v3_1
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_AER/COMP/lmdz.card

    r674 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    2125        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2226        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    23         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    24         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .) 
     27        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2528  
    2629 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_AER/COMP/lmdz.driver

    r841 r860  
    6363    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6464 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6576    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6677    ##-- Otherwise we get the value in *.def 
     
    8798    fi 
    8899 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    89116    ## Mise en forme du fichier physiq.def 
    90     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    91         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    92         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    93120        physiq.def > physiq.def.tmp 
    94121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    95122 
    96123    ## Mise en forme du fichier gcm.def 
    97     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    98         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    99         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    100         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    101128        gcm.def > gcm.def.tmp 
    102129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    109136 
    110137    ## Mise en forme du fichier run.def 
    111     sed -e "s/_dayref_/${nbjour}/" \ 
    112         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    113140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    114         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    115         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    116144        run.def > run.def.tmp 
    117145    IGCM_sys_Mv run.def.tmp run.def 
     
    125153    IGCM_debug_PushStack "ATM_Finalize" 
    126154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    127156    echo FINALIZE ATM ! 
    128157 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_CH4/COMP/lmdz.card

    r591 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    1923        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2024        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    21         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    22         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .) 
     25        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2326  
    2427 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_CH4/COMP/lmdz.driver

    r841 r860  
    1 #- $Id: lmdz.driver 119 2007-07-31 13:56:33Z acosce $ 
     1#- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $ 
    22#!/bin/ksh 
    33 
     
    1616    esac 
    1717 
     18 
    1819    ##-- Calendar type for LMDZ 
    1920    case ${config_UserChoices_CalendarType} in 
     
    2728            CalendarTypeForLmdz=earth_360d 
    2829    esac 
    29  
    3030 
    3131    ##- Default number of processor for lmdz 
     
    6363    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6464 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6576    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6677    ##-- Otherwise we get the value in *.def 
     
    8798    fi 
    8899 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    89116    ## Mise en forme du fichier physiq.def 
    90     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    91         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    92         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    93120        physiq.def > physiq.def.tmp 
    94121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    95122 
    96123    ## Mise en forme du fichier gcm.def 
    97     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    98         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    99         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    100         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    101128        gcm.def > gcm.def.tmp 
    102129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    109136 
    110137    ## Mise en forme du fichier run.def 
    111     sed -e "s/_dayref_/${nbjour}/" \ 
    112         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    113140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    114         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    115         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    116144        run.def > run.def.tmp 
    117145    IGCM_sys_Mv run.def.tmp run.def 
     
    125153    IGCM_debug_PushStack "ATM_Finalize" 
    126154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    127156    echo FINALIZE ATM ! 
    128157 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_CH4_AER/COMP/lmdz.card

    r591 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    2024        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2125        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    22         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    23         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .) 
     26        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2427  
    2528 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_CH4_AER/COMP/lmdz.driver

    r841 r860  
    11#- $Id$ 
    22#!/bin/ksh 
     3 
    34#----------------------------------------------------------------- 
    45function ATM_Initialize 
     
    6263    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6364 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6476    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6577    ##-- Otherwise we get the value in *.def 
     
    8698    fi 
    8799 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    88116    ## Mise en forme du fichier physiq.def 
    89     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    90         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    91         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    92120        physiq.def > physiq.def.tmp 
    93121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    94122 
    95123    ## Mise en forme du fichier gcm.def 
    96     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    97         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    98         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    99         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    100128        gcm.def > gcm.def.tmp 
    101129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    108136 
    109137    ## Mise en forme du fichier run.def 
    110     sed -e "s/_dayref_/${nbjour}/" \ 
    111         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    112140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    113         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    114         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    115144        run.def > run.def.tmp 
    116145    IGCM_sys_Mv run.def.tmp run.def 
     
    124153    IGCM_debug_PushStack "ATM_Finalize" 
    125154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    126156    echo FINALIZE ATM ! 
    127157 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_GES/COMP/lmdz.card

    r591 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    2024        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2125        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    22         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    23         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .)  
     26        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2427 
    2528[RestartFiles] 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_GES/COMP/lmdz.driver

    r841 r860  
    1 #- $Id: lmdz.driver 119 2007-07-31 13:56:33Z acosce $ 
     1#- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $ 
    22#!/bin/ksh 
     3 
    34#----------------------------------------------------------------- 
    45function ATM_Initialize 
     
    1516    esac 
    1617 
     18 
    1719    ##-- Calendar type for LMDZ 
    1820    case ${config_UserChoices_CalendarType} in 
     
    2628            CalendarTypeForLmdz=earth_360d 
    2729    esac 
    28  
    2930 
    3031    ##- Default number of processor for lmdz 
     
    6263    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6364 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6476    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6577    ##-- Otherwise we get the value in *.def 
     
    8698    fi 
    8799 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    88116    ## Mise en forme du fichier physiq.def 
    89     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    90         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    91         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    92120        physiq.def > physiq.def.tmp 
    93121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    94122 
    95123    ## Mise en forme du fichier gcm.def 
    96     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    97         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    98         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    99         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    100128        gcm.def > gcm.def.tmp 
    101129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    108136 
    109137    ## Mise en forme du fichier run.def 
    110     sed -e "s/_dayref_/${nbjour}/" \ 
    111         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    112140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    113         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    114         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    115144        run.def > run.def.tmp 
    116145    IGCM_sys_Mv run.def.tmp run.def 
     
    124153    IGCM_debug_PushStack "ATM_Finalize" 
    125154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    126156    echo FINALIZE ATM ! 
    127157 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_NMHC/COMP/lmdz.card

    r591 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    2024        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2125        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    22         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    23         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .)  
     26        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2427 
    2528[RestartFiles] 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_NMHC/COMP/lmdz.driver

    r841 r860  
    1 #- $Id: lmdz.driver 119 2007-07-31 13:56:33Z acosce $ 
     1#- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $ 
    22#!/bin/ksh 
    33 
     
    2828            CalendarTypeForLmdz=earth_360d 
    2929    esac 
    30  
    31  
    3230 
    3331    ##- Default number of processor for lmdz 
     
    6563    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6664 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6776    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6877    ##-- Otherwise we get the value in *.def 
     
    8998    fi 
    9099 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    91116    ## Mise en forme du fichier physiq.def 
    92     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    93         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    94         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    95120        physiq.def > physiq.def.tmp 
    96121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    97122 
    98123    ## Mise en forme du fichier gcm.def 
    99     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    100         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    101         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    102         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    103128        gcm.def > gcm.def.tmp 
    104129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    111136 
    112137    ## Mise en forme du fichier run.def 
    113     sed -e "s/_dayref_/${nbjour}/" \ 
    114         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    115140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    116         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    117         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    118144        run.def > run.def.tmp 
    119145    IGCM_sys_Mv run.def.tmp run.def 
     
    127153    IGCM_debug_PushStack "ATM_Finalize" 
    128154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    129156    echo FINALIZE ATM ! 
    130157 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_NMHC_AER/COMP/lmdz.card

    r591 r860  
    44 
    55[UserChoices] 
     6LMDZ_NbPeriod_adjust=3 
     7# LMDZ_NbPeriod_adjust=0 
     8# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     9# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    610 
    711[InitialStateFiles] 
     
    2024        (${SUBMIT_DIR}/PARAM/gcm.def, gcm.def), \ 
    2125        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    22         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    23         (${SUBMIT_DIR}/PARAM/Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat, .) 
     26        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    2427  
    2528 
  • CONFIG/LMDZINCA/branches/LMDZINCA_v3_1/EXP_NMHC_AER/COMP/lmdz.driver

    r841 r860  
    1 #- $Id: lmdz.driver 119 2007-07-31 13:56:33Z acosce $ 
     1#- $Id: lmdz.driver 841 2009-12-08 09:48:13Z acosce $ 
    22#!/bin/ksh 
     3 
    34#----------------------------------------------------------------- 
    45function ATM_Initialize 
     
    1516    esac 
    1617 
     18 
    1719    ##-- Calendar type for LMDZ 
    1820    case ${config_UserChoices_CalendarType} in 
     
    2729    esac 
    2830 
    29  
    30  
    3131    ##- Default number of processor for lmdz 
    3232    NUM_PROC_ATM=1 
     
    3434        NUM_PROC_ATM=${BATCH_NUM_PROC_TOT} 
    3535    fi 
    36   
    3736 
    3837    ##--Frequency purpose .... 
     
    6463    PAT_ecritphy=$( grep 'ecritphy'    ${SUBMIT_DIR}/PARAM/gcm.def ) 
    6564 
     65 
     66    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     67    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     68    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     69 
     70    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     71        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     72        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     73    fi 
     74 
     75 
    6676    ##-- This could be define in lmdz.card, inside section [UserChoices] 
    6777    ##-- Otherwise we get the value in *.def 
     
    8898    fi 
    8999 
     100    if [ ${CumulPeriod} -eq 1 ] ; then 
     101        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     102            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     103            IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0 
     104            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_0" 
     105        fi 
     106    fi 
     107 
     108    LMDZ_adjust=n 
     109    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     110 
     111    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     112    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
     113 
     114    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat 
     115 
    90116    ## Mise en forme du fichier physiq.def 
    91     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    92         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
    93         -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
     117    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"     \ 
     118        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"     \ 
     119        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/"  \ 
    94120        physiq.def > physiq.def.tmp 
    95121    IGCM_sys_Mv physiq.def.tmp physiq.def 
    96122 
    97123    ## Mise en forme du fichier gcm.def 
    98     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    99         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    100         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    101         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     124    sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"   \ 
     125        -e "s/${PAT_day_step}/day_step=${day_step}/"    \ 
     126        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"       \ 
     127        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"       \ 
    102128        gcm.def > gcm.def.tmp 
    103129    IGCM_sys_Mv gcm.def.tmp gcm.def 
     
    110136 
    111137    ## Mise en forme du fichier run.def 
    112     sed -e "s/_dayref_/${nbjour}/" \ 
    113         -e "s/_anneeref_/${yractu}/" \ 
     138    sed -e "s/_dayref_/${nbjour}/"                      \ 
     139        -e "s/_anneeref_/${yractu}/"                    \ 
    114140        -e "s/_calend_/${CalendarTypeForLmdz}/"         \ 
    115         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    116         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     141        -e "s/_nday_/${PeriodLengthInDays}/"            \ 
     142        -e "s/_raz_date_/${RAZ_DATE}/"                  \ 
     143        -e "s/_adjust_/${LMDZ_adjust}/"                 \ 
    117144        run.def > run.def.tmp 
    118145    IGCM_sys_Mv run.def.tmp run.def 
     
    126153    IGCM_debug_PushStack "ATM_Finalize" 
    127154 
     155    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    128156    echo FINALIZE ATM ! 
    129157 
Note: See TracChangeset for help on using the changeset viewer.