Ignore:
Timestamp:
02/25/16 16:20:34 (6 years ago)
Author:
jgipsl
Message:

Update with modifications done on LMDZOR_v6:

  • pmagic changed to 0.0 in config.def_preind
  • clean amoung old physics
  • clean in drivers to remove everything related to IOIPSL
  • removed old parameters not longer supported by the new model source versions
  • general cleaning
Location:
CONFIG/UNIFORM/v6/IPSLCM6/GENERAL
Files:
12 deleted
8 edited
14 copied
3 moved

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/lmdz.driver

    r2597 r2758  
    1313    RESOL_ATM_Y=$( echo ${RESOL_ATM_3D} | awk "-Fx" '{print $2}' ) 
    1414    RESOL_ATM_XY="${RESOL_ATM_X}x${RESOL_ATM_Y}" 
    15  
    16     ##-- Calendar type for LMDZ and create_etat0_limit 
    17     case ${config_UserChoices_CalendarType} in 
    18         leap|gregorian) 
    19             CalendarTypeForLmdz=gregorian 
    20             CalendarTypeForCreate=gregorian;; 
    21         noleap) 
    22             CalendarTypeForLmdz=earth_365d 
    23             CalendarTypeForCreate=${CalendarTypeForLmdz};; 
    24         360d) 
    25             CalendarTypeForLmdz=earth_360d 
    26             CalendarTypeForCreate=${CalendarTypeForLmdz};; 
    27         *) 
    28             CalendarTypeForLmdz=earth_360d 
    29             CalendarTypeForCreate=${CalendarTypeForLmdz} 
    30     esac 
    3115 
    3216    ##- LMDZ physics version 
     
    6347    ##-- Output frequency purpose .... 
    6448    ##--  Initialisation  .... 
    65     ok_mensuel=n 
    66     ok_journe=n 
    67     ok_hf=n 
    68     ok_hf3h=n 
    69     ok_hf3hm=n 
    70     ok_stn=n 
     49    ok_mensuel=.FALSE. 
     50    ok_journe=.FALSE. 
     51    ok_hf=.FALSE. 
     52    ok_hf3h=.FALSE. 
     53    ok_hf3hm=.FALSE. 
     54    ok_stn=.FALSE. 
    7155 
    7256    case ${config_UserChoices_PeriodLength} in 
    73         1Y|1y|1M|1m) ok_mensuel=y ;; 
    74         5D|5d|1D|1d) ok_journe=y ;; 
     57        1Y|1y|1M|1m) ok_mensuel=.TRUE. ;; 
     58        5D|5d|1D|1d) ok_journe=.TRUE. ;; 
    7559    esac 
    7660 
    7761    for frequency in ${config_ATM_WriteFrequency} ; do 
    7862        case ${frequency} in 
    79             1M|1m) ok_mensuel=y ;; 
     63            1M|1m) ok_mensuel=.TRUE. ;; 
    8064        esac 
    8165        case ${frequency} in 
    82             5D|5d|1D|1d) ok_journe=y ;; 
     66            5D|5d|1D|1d) ok_journe=.TRUE. ;; 
    8367        esac 
    8468        case ${frequency} in 
    85             HF|hf) ok_hf=y ;; 
     69            HF|hf) ok_hf=.TRUE. ;; 
    8670        esac 
    8771        case ${frequency} in  
    88             HF3h|hf3h) ok_hf3h=y ;; 
     72            HF3h|hf3h) ok_hf3h=.TRUE. ;; 
    8973        esac 
    9074        case ${frequency} in  
    91             HF3hm|hf3hm) ok_hf3hm=y ;; 
     75            HF3hm|hf3hm) ok_hf3hm=.TRUE. ;; 
    9276        esac 
    9377        case ${frequency} in 
    94             STN|stn) ok_stn=y ;; 
     78            STN|stn) ok_stn=.TRUE. ;; 
    9579        esac 
    9680    done 
     
    11094 
    11195    ##  Read LMDZ_COSP_OK in lmdz.card 
    112     if [ ! X${lmdz_UserChoices_LMDZ_COSP_OK} = X ] ; then 
    113         LMDZ_COSP_OK=${lmdz_UserChoices_LMDZ_COSP_OK} 
    114     else 
    115         LMDZ_COSP_OK=n 
    116     fi 
    117     ##  Read LMDZ_COSP_monthly in lmdz.card 
    118     if [ ! X${lmdz_UserChoices_LMDZ_COSP_monthly} = X ] ; then 
    119         LMDZ_COSP_monthly=${lmdz_UserChoices_LMDZ_COSP_monthly} 
    120     else 
    121         LMDZ_COSP_monthly=n 
    122     fi 
    123     ##  Read LMDZ_COSP_daily in lmdz.card 
    124     if [ ! X${lmdz_UserChoices_LMDZ_COSP_daily} = X ] ; then 
    125         LMDZ_COSP_daily=${lmdz_UserChoices_LMDZ_COSP_daily} 
    126     else 
    127         LMDZ_COSP_daily=n 
    128     fi 
    129     ##  Read LMDZ_COSP_hf in lmdz.card 
    130     if [ ! X${lmdz_UserChoices_LMDZ_COSP_hf} = X ] ; then 
    131         LMDZ_COSP_hf=${lmdz_UserChoices_LMDZ_COSP_hf} 
    132     else 
    133         LMDZ_COSP_hf=n 
    134     fi 
     96    if [ X${lmdz_UserChoices_LMDZ_COSP_OK} = Xy ] ; then 
     97        ##  LMDZ_COSP_OK=y, now read all other COSP variables 
     98        ##  Read LMDZ_COSP_monthly in lmdz.card 
     99        if [ X${lmdz_UserChoices_LMDZ_COSP_monthly} = Xy ] ; then 
     100            LMDZ_COSP_monthly=.TRUE. 
     101        else 
     102            LMDZ_COSP_monthly=.FALSE. 
     103        fi 
     104        ##  Read LMDZ_COSP_daily in lmdz.card 
     105        if [ X${lmdz_UserChoices_LMDZ_COSP_daily} = Xy ] ; then 
     106            LMDZ_COSP_daily=.TRUE. 
     107        else 
     108            LMDZ_COSP_daily=.FALSE. 
     109        fi 
     110        ##  Read LMDZ_COSP_hf in lmdz.card 
     111        if [ X${lmdz_UserChoices_LMDZ_COSP_hf} = Xy ] ; then 
     112            LMDZ_COSP_hf=.TRUE. 
     113        else 
     114            LMDZ_COSP_hf=.FALSE. 
     115        fi 
     116    else 
     117        # LMDZ_COSP_OK=n : All cosp output are deactivated 
     118        LMDZ_COSP_monthly=.FALSE. 
     119        LMDZ_COSP_daily=.FALSE. 
     120        LMDZ_COSP_hf=.FALSE. 
     121    fi   
    135122 
    136123    ##  Read LMDZ_NMC_monthly in lmdz.card 
    137     if [ ! X${lmdz_UserChoices_LMDZ_NMC_monthly} = X ] ; then 
    138         LMDZ_NMC_monthly=${lmdz_UserChoices_LMDZ_NMC_monthly} 
    139     else 
    140         LMDZ_NMC_monthly=n 
    141     fi 
    142  
     124    if [ X${lmdz_UserChoices_LMDZ_NMC_monthly} = Xy ] ; then 
     125        LMDZ_NMC_monthly=.TRUE. 
     126    else 
     127        LMDZ_NMC_monthly=.FALSE. 
     128    fi 
     129     
    143130    ## Read LMDZ_NMC_daily in lmdz.card 
    144     if [ ! X${lmdz_UserChoices_LMDZ_NMC_daily} = X ] ; then 
    145         LMDZ_NMC_daily=${lmdz_UserChoices_LMDZ_NMC_daily} 
    146     else 
    147         LMDZ_NMC_daily=n 
     131    if [ X${lmdz_UserChoices_LMDZ_NMC_daily} = Xy ] ; then 
     132        LMDZ_NMC_daily=.TRUE. 
     133    else 
     134        LMDZ_NMC_daily=.FALSE. 
    148135    fi 
    149136     
    150137    ## Read LMDZ_NMC_hf in lmdz.card 
    151     if [ ! X${lmdz_UserChoices_LMDZ_NMC_hf} = X ] ; then 
    152         LMDZ_NMC_hf=${lmdz_UserChoices_LMDZ_NMC_hf} 
    153     else 
    154         LMDZ_NMC_hf=n 
    155     fi 
    156  
     138    if [ X${lmdz_UserChoices_LMDZ_NMC_hf} = Xy ] ; then 
     139        LMDZ_NMC_hf=.TRUE. 
     140    else 
     141        LMDZ_NMC_hf=.FALSE. 
     142    fi 
     143     
    157144 
    158145    IGCM_debug_PopStack "ATM_Initialize" 
     
    164151    IGCM_debug_PushStack "ATM_Update" 
    165152 
    166  
    167     case ${config_UserChoices_PeriodLength} in 
    168         *Y|*y)  
    169                LMDZ_ecrit_ISCCP=30. 
    170                LMDZ_periodav=30. 
    171                if [ "${config_UserChoices_CalendarType}" != "360d" ] ; then 
    172                   echo Do not consider following warning if your running create_etat0_limit : 
    173                   echo WARNING !!! For lmdz : calendartype in config.card. PeriodLength=1Y allowed only for CalendarType=360d  
    174                fi 
    175                ;; 
    176         *) 
    177                LMDZ_ecrit_ISCCP=${PeriodLengthInDays}. 
    178                LMDZ_periodav=${PeriodLengthInDays}. 
    179                ;; 
    180     esac 
    181    
    182     ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def 
    183     if [ ${CumulPeriod} -eq 1 ] ; then 
    184         RAZ_DATE=1 
    185     else 
    186         RAZ_DATE=0 
    187     fi 
    188153 
    189154    ## Algorithme for special treatment for Bands_xxx file 
     
    322287    ##   COSP daily output for years 1979 and later (mandatory for historical CMIP5 run). 
    323288    if ([ X"${lmdz_UserChoices_LMDZ_COSP_daily1979}" = X"y" ] &&  [ ${year} -ge 1979 ]) ; then 
    324         LMDZ_COSP_daily=y 
    325     fi 
    326  
    327     # Default init : files are desactivated 
    328     IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE.  
    329     IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .FALSE.  
    330     IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .FALSE. 
    331     #IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .FALSE. 
    332     #IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .FALSE. 
    333     IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .FALSE. 
    334     IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .FALSE. 
    335     IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 
    336     IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 
    337     IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .FALSE. 
    338     IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .FALSE. 
    339     IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .FALSE. 
    340  
    341     # Default output level : 5 
    342     IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5  
    343     IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5  
    344     IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 
    345     #IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 
    346     #IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 
    347     IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 
    348     IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 
    349     IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 
    350     IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 
    351     IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 5 
    352     IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 5 
    353     IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 5 
    354  
    355     # FILLING XIOS XMLs 
    356     if [ X${ok_mensuel} = Xy ] ; then 
    357         IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .TRUE.  
    358         IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_freq 1mo 
    359         IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth name histmth 
    360     fi 
    361     if [ X${ok_journe} = Xy ] ; then     
    362         IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday enabled .TRUE.  
    363         IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_freq 1d 
    364         IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday name histday 
    365         if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 
    366             IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 2 
    367         fi 
    368     fi 
    369     if [ X${ok_hf} = Xy ] ; then 
    370         IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf enabled .TRUE.  
    371         IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_freq 6h 
    372         IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf name histhf 
    373         if [ X${OutLevel} = Xlow ] ; then 
    374             IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 
    375         elif [ X${OutLevel} = Xmedium ] ; then 
    376             IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 6 
    377         elif [ X${OutLevel} = Xhigh ] ; then 
    378             IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 7 
    379         fi 
    380     fi   
    381     if [ X${ok_hf3h} = Xy ] ; then 
    382         IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h enabled .TRUE.  
    383         IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_freq 3h 
    384         IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h name histhf3h 
    385     fi   
    386     if [ X${ok_hf3hm} = Xy ] ; then 
    387         IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm enabled .TRUE.  
    388         IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_freq 3h 
    389         IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm name histhf3hm 
    390     fi 
    391     if [ X${ok_stn} = Xy ] ; then 
    392         IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn enabled .TRUE.  
    393         IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_freq 1800s 
    394         IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn name histstn 
    395     fi 
    396     if [ X${LMDZ_NMC_monthly} = Xy ] ; then 
    397         IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC enabled .TRUE.  
    398         IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_freq 1mo 
    399         IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC name histmthNMC 
    400     fi 
    401     if [ X${LMDZ_NMC_daily} = Xy ] ; then 
    402         IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .TRUE.  
    403         IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_freq 1d 
    404         IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC name histdayNMC 
    405     fi 
    406     if [ X${LMDZ_NMC_hf} = Xy ] ; then 
    407         IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .TRUE.  
    408         IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_freq 6h 
    409         IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 
    410     fi 
    411     if [  X${LMDZ_COSP_OK} = Xy ] ; then 
    412         if [ X${LMDZ_COSP_monthly} = Xy ] ; then 
    413             IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .TRUE.  
    414             IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_freq 1mo 
    415             IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP name histmthCOSP 
    416         fi 
    417         if [ X${LMDZ_COSP_daily} = Xy ] ; then 
    418             IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .TRUE.  
    419             IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_freq 1d 
    420             IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP name histdayCOSP 
    421         fi 
    422         if [ X${LMDZ_COSP_hf} = Xy ] ; then 
    423             IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .TRUE.  
    424             IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_freq 6h 
    425             IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP name histhfCOSP 
    426         fi 
    427     fi 
     289        LMDZ_COSP_daily=.TRUE. 
     290    fi 
     291 
     292    ## Modifiy  
     293    IGCM_comp_modifyXmlFile nonblocker file_def_histmth_lmdz.xml histmth enabled ${ok_mensuel} 
     294     
     295    IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday enabled ${ok_journe} 
     296     
     297    if [ X${OutLevel} = Xlow ] || [ X${OutLevel} = Xmedium ] ; then 
     298        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 2 
     299    else 
     300        IGCM_comp_modifyXmlFile nonblocker file_def_histday_lmdz.xml histday output_level 5 
     301    fi 
     302     
     303    IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf enabled ${ok_hf} 
     304     
     305    if [ X${OutLevel} = Xlow ] ; then 
     306        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 5 
     307    elif [ X${OutLevel} = Xmedium ] ; then 
     308        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 6 
     309    elif [ X${OutLevel} = Xhigh ] ; then 
     310        IGCM_comp_modifyXmlFile nonblocker file_def_histhf_lmdz.xml histhf output_level 7 
     311    fi 
     312         
     313    IGCM_comp_modifyXmlFile nonblocker file_def_histhf3h_lmdz.xml histhf3h enabled ${ok_hf3h} 
     314    IGCM_comp_modifyXmlFile nonblocker file_def_histhf3hm_lmdz.xml histhf3hm enabled ${ok_hf3hm} 
     315 
     316    IGCM_comp_modifyXmlFile nonblocker file_def_histstn_lmdz.xml histstn enabled ${ok_stn} 
     317 
     318    IGCM_comp_modifyXmlFile nonblocker file_def_histmthNMC_lmdz.xml histmthNMC enabled ${LMDZ_NMC_monthly} 
     319    IGCM_comp_modifyXmlFile nonblocker file_def_histdayNMC_lmdz.xml histdayNMC enabled ${LMDZ_NMC_daily} 
     320    IGCM_comp_modifyXmlFile nonblocker file_def_histhfNMC_lmdz.xml histhfNMC enabled ${LMDZ_NMC_hf} 
     321     
     322    IGCM_comp_modifyXmlFile nonblocker file_def_histmthCOSP_lmdz.xml histmthCOSP enabled ${LMDZ_COSP_monthly} 
     323    IGCM_comp_modifyXmlFile nonblocker file_def_histdayCOSP_lmdz.xml histdayCOSP enabled ${LMDZ_COSP_daily} 
     324    IGCM_comp_modifyXmlFile nonblocker file_def_histhfCOSP_lmdz.xml histhfCOSP enabled ${LMDZ_COSP_hf} 
     325         
    428326 
    429327    ## gcm.def parameters :  
     
    469367 
    470368    ## run.def parameters 
     369 
     370 
     371    ##-- Remise ou non a zero de la date initiale de LMDZ pour le fichier run.def 
     372    if [ ${CumulPeriod} -eq 1 ] ; then 
     373        IGCM_comp_modifyDefFile blocker run.def raz_date  1 
     374    else 
     375        IGCM_comp_modifyDefFile blocker run.def raz_date  0 
     376    fi 
     377 
     378    ##-- Calendar type for LMDZ and create_etat0_limit 
     379    case ${config_UserChoices_CalendarType} in 
     380        leap|gregorian) 
     381            IGCM_comp_modifyDefFile blocker run.def calend  gregorian ;; 
     382        noleap) 
     383            IGCM_comp_modifyDefFile blocker run.def calend  earth_365d ;; 
     384        360d) 
     385            IGCM_comp_modifyDefFile blocker run.def calend  earth_360d ;; 
     386        *) 
     387            IGCM_comp_modifyDefFile blocker run.def calend  earth_360d ;; 
     388    esac 
     389 
    471390    IGCM_comp_modifyDefFile blocker run.def dayref    ${InitDay} 
    472391    IGCM_comp_modifyDefFile blocker run.def nday      ${PeriodLengthInDays} 
    473     IGCM_comp_modifyDefFile blocker run.def raz_date  ${RAZ_DATE} 
    474     IGCM_comp_modifyDefFile blocker run.def periodav  ${LMDZ_periodav} 
    475392    IGCM_comp_modifyDefFile nonblocker run.def adjust ${LMDZ_adjust} 
    476393 
    477394    # Set anneeref different for gcm and ce0l 
    478     # Variable calend is different for a run with create_etat0_limit and the gcm 
    479395    # Test if executable create_etat0_limit is present and lmdz.x is not present 
    480396    if [ -f create_etat0_limit* ] || [ -f ce0l* ] && [ ! -f lmdz.x ] ; then 
    481397        # for case ce0l : always take current year 
    482398        IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
    483         IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForCreate} 
    484399 
    485400        # Temporary, set use_filtre_fft=n because we now use dyn3d for ce0l version where fft is not implemented.  
     
    489404        # for case gcm : take first year of simulation 
    490405        IGCM_comp_modifyDefFile blocker run.def anneeref ${InitYear} 
    491         IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForLmdz} 
    492     fi 
    493  
    494     # Activate creation of file grilles_gcm.nc only at first period 
    495     if [ ${CumulPeriod} -eq 1 ] ; then 
    496         IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf y 
    497     else 
    498         IGCM_comp_modifyDefFile nonblocker run.def grilles_gcm_netcdf n 
    499406    fi 
    500407 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/orchidee.driver

    r2674 r2758  
    4444    fi 
    4545 
    46     # Modify in orchidee.def VEGET_UPDATE and LAND_COVER_CHANGE if they are set in orchidee.card section UserChoices 
     46    # Modify in orchidee.def VEGET_UPDATE if it is set in orchidee.card section UserChoices 
    4747    if [ ! X${orchidee_UserChoices_VEGET_UPDATE} = X ] ; then 
    4848        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE   ${orchidee_UserChoices_VEGET_UPDATE} 
     
    5050        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE 0Y 
    5151    fi 
    52     if [ ! X${orchidee_UserChoices_LAND_COVER_CHANGE} = X ] ; then 
    53         IGCM_comp_modifyDefFile nonblocker orchidee.def LAND_COVER_CHANGE ${orchidee_UserChoices_LAND_COVER_CHANGE} 
    54     else 
    55         IGCM_comp_modifyDefFile nonblocker orchidee.def LAND_COVER_CHANGE n 
    56     fi 
    5752 
    5853    # Activate creation of river description file only for the first period 
    59     #if [ ${CumulPeriod} -eq 1 ] ; then 
    60     #    IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC y 
    61     #else 
     54    if [ ${CumulPeriod} -eq 1 ] ; then 
     55        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC y 
     56    else 
    6257        IGCM_comp_modifyDefFile nonblocker orchidee.def RIVER_DESC n 
    63     #fi 
     58    fi 
    6459 
    6560 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/DRIVER/stomate.driver

    r2582 r2758  
    11#!/bin/ksh 
    22 
    3 #D- Driver du script pour ORCHIDEE 
     3#D- Driver pour ORCHIDEE stomate component 
    44 
    55#----------------------------------------------------------------- 
     
    77{ 
    88    IGCM_debug_PushStack "SBG_Initialize" 
    9  
    10     RESOL_SBG=ALL 
    119 
    1210    IGCM_debug_PopStack "SBG_Initialize" 
     
    1715{ 
    1816    IGCM_debug_PushStack "SBG_Update" 
     17     
     18    # Output management 
    1919 
    20     # Default init : files are desactivated 
    21     IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .FALSE. 
    22     IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .FALSE. 
     20    # Set default values for stomate output files. 
     21    stomate_enabled=.FALSE. 
     22    stomate_freq=0s 
    2323 
    24     case ${config_SBG_WriteFrequency} in 
    25         *Y|*y) 
    26             WriteInYears=$( echo ${config_SBG_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 
    27             PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 
    28             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 
    29             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInYears}y 
    30             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 
    31             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 
    32             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInYears}y 
    33             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
    34             ;; 
    35         *M|*m) 
    36             WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 
    37             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 
    38             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq ${WriteInMonths}mo 
    39             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 
    40             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 
    41             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInMonths}mo 
    42             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
    43             ;; 
    44         5D|5d) 
    45             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 
    46             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 5d 
    47             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 
    48             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 
    49             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 5d 
    50             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
    51             ;; 
    52         1D|1d) 
    53             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 enabled .TRUE. 
    54             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 output_freq 1d 
    55             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate1 name stomate_history 
    56             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 
    57             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq 1d 
    58             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
    59             ;; 
    60         *s) 
    61             WriteInSeconds=$( echo ${config_SBG_WriteFrequency} | awk -F '[s]' '{print $1}' ) 
    62             IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 enabled .TRUE. 
    63             IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 output_freq ${WriteInSeconds}s 
    64             IGCM_comp_modifyXmlFile force file_def_orchidee.xml sechiba1 name sechiba_history 
    65             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 enabled .TRUE. 
    66             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 output_freq ${WriteInSeconds}s 
    67             IGCM_comp_modifyXmlFile force file_def_orchidee.xml stomate2 name stomate_ipcc_history 
    68             ;; 
    69         *) 
    70             IGCM_debug_Exit "SBG_Update " ${config_SBG_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 
    71             IGCM_debug_Verif_Exit ;; 
    72     esac 
     24    # Read WriteFrequency set in config.card section SBG.  
     25    # Only one choice can be set as WriteFrequency. The same choice will be used for  
     26    # both stomate_history and stomate_ipcc_history files.  
     27    for frequency in ${config_SBG_WriteFrequency} ; do 
     28        case ${frequency} in 
     29            *Y|*y)  
     30                NbYears=$( echo ${frequency} | awk -F '[yY]' '{print $1}' ) 
     31                NbDaysYear=$( IGCM_date_DaysInYear ${year} ) 
     32                stomate_enabled=.TRUE. 
     33                stomate_freq=${NbYears}y ;; 
     34            *M|*m)  
     35                NbMonths=$( echo ${frequency} | awk -F '[mM]' '{print $1}' ) 
     36                stomate_enabled=.TRUE. 
     37                stomate_freq=${NbMonths}mo ;; 
     38            *D|*d) 
     39                NbDays=$( echo ${frequency} | awk -F '[dD]' '{print $1}' ) 
     40                stomate_enabled=.TRUE. 
     41                stomate_freq=${NbDays}d ;; 
     42            *)  
     43                IGCM_debug_Exit "SBG WriteFrequency=${frequency} is invalid. Choose between xY, xM and xD for Stomate." ;; 
     44        esac 
     45    done 
    7346 
     47    # Modify file_def_orchidee.xml 
     48    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 enabled ${stomate_enabled} 
     49    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate1 output_freq ${stomate_freq} 
     50    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 enabled ${stomate_enabled} 
     51    IGCM_comp_modifyXmlFile nonblocker file_def_orchidee.xml stomate2 output_freq ${stomate_freq} 
     52     
     53 
     54    # Define in orchidee.def if restart file should be used 
    7455    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SBG_Restart}" = "n" ] ) ; then 
    7556        echo "STOMATE : without restart" 
     
    8566function SBG_Finalize 
    8667{ 
    87 #set -vx 
    8868    IGCM_debug_PushStack "SBG_Finalize" 
    89  
    90     if [ $( IGCM_date_DaysBetweenGregorianDate ${PeriodDateEnd} ${year}1230 ) -ge 0 ] ; then 
    91         IGCM_sys_Put_Out stomate_Cforcing.nc ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_Cforcing.nc 
    92         IGCM_sys_Put_Out stomate_forcing.nc  ${R_OUT_SBG_R}/${config_UserChoices_JobName}_${PeriodDateEnd}_stomate_forcing.nc 
    93 #       rm -f stomate_Cforcing.nc 
    94 #       rm -f stomate_forcing.nc 
    95     fi 
    96  
     69     
    9770    IGCM_debug_PopStack "SBG_Finalize" 
    9871} 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/config.def_preind

    r2535 r2758  
    1212 
    1313##  Facteur additif pour l'albedo 
    14 pmagic=-0.01 
     14pmagic=0.0 
    1515 
    1616# 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/gcm.def_144x142

    r2750 r2758  
    1 ## $Id: gcm.def 1403 2010-07-01 09:02:53Z fairhead $ 
     1## $Id$ 
    22## nombre de pas par jour (multiple de iperiod) ( ici pour  dt = 1 min )       
    33day_step=720 
     
    1515tetagdiv=3600. 
    1616## temps de dissipation des plus petites long.d ondes pour u,v(nxgradrot) 
    17 #tetagrot=5400. 
    1817tetagrot=7200. 
    1918## temps de dissipation des plus petites long.d ondes pour  h ( divgrad)  
     
    3332read_start=y 
    3433## periode de la physique (en pas dynamiques, n'a de sens que si iflag_phys=1)                                        
     34## iphysiq est modifie pour la nouvelle physique par le lmdz.driver pour les autres cas le valeur par defaut est utilise 
    3535iphysiq=_AUTO_ : DEFAULT = 5 
    36 # 
    37 # 
    38 ### Parametres du zoom 
    3936## longitude en degres du centre du zoom                                  
    4037clon=0. 
     
    5754##  Fonction  f(y) avec y = Sin(latit.) si = .true. , sinon y = latit.          
    5855ysinus=y 
     56## 
    5957ngroup=4 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/orchidee.def_CWRR

    r2674 r2758  
    3333HYDROL_CWRR = y 
    3434 
    35 # Total depth of soil reservoir 
    36 # default = 2./4. depending on HYDROL_CWRR 
    37 HYDROL_SOIL_DEPTH = 2. 
    38  
    39 # Root profile 
    40 HYDROL_HUMCSTE = 5.0, 0.8, 0.8, 1.0, 0.8, 0.8, 1.0, 1.0, 0.8, 4.0, 4.0, 4.0, 4.0  
    41  
    4235# Activate river routing 
    4336# default = n 
     
    6255# Parmeters related to vegetation map 
    6356#************************************************************************** 
    64 # Read a land_use vegetation map 
    65 # default = n 
    66 LAND_USE = y 
    67  
    6857# Year of the land_use vegetation map readed 
    6958# year off the pft map 
     
    8372VEGET_UPDATE = _AUTO_ 
    8473 
    85 # treat land use modifications 
    86 # With this variable, you can use a Land Use map 
    87 # to simulate anthropic modifications such as    
    88 # deforestation.                                 
    89 # If LAND_USE 
    90 # default = y 
    91 LAND_COVER_CHANGE = _AUTO_ 
    92  
    9374# Do not use default fire module 
    9475FIRE_DISABLE = y 
     
    9879RIVER_DESC_FILE =  river_desc.nc 
    9980 
     81# Read bare soil albedo from file with background MODIS data 
     82ALB_BG_MODIS = y 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/orchidee.def_Choi

    r2582 r2758  
    6262# Parmeters related to vegetation map 
    6363#************************************************************************** 
    64 # Read a land_use vegetation map 
    65 # default = n 
    66 LAND_USE = y 
    67  
    6864# Year of the land_use vegetation map readed 
    6965# year off the pft map 
     
    8379VEGET_UPDATE = _AUTO_ 
    8480 
    85 # treat land use modifications 
    86 # With this variable, you can use a Land Use map 
    87 # to simulate anthropic modifications such as    
    88 # deforestation.                                 
    89 # If LAND_USE 
    90 # default = y 
    91 LAND_COVER_CHANGE = _AUTO_ 
     81# Do not use default fire module 
     82FIRE_DISABLE = y 
    9283 
     84# Create river description file 
     85RIVER_DESC = _AUTO_ 
     86RIVER_DESC_FILE =  river_desc.nc 
     87 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/physiq.def_AP

    r2756 r2758  
    33##  Choix ou non  de  New oliq                
    44new_oliq=y 
    5 ##  Activation ou non de la parametrisation de Hines pour la strato 
    6 ok_hines=y 
    75##  Orodr  ou  non   pour l orographie               
    86ok_orodr=y 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/physiq.def_NPv3.2

    r2756 r2758  
    3737NSW=2    
    3838# 
    39 ##  Activation ou non de la parametrisation de Hines pour la strato 
    40 #****************************************************************** 
    41 ok_hines=y 
    4239# 
    4340# Parametres nuages 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/run.def

    r2477 r2758  
    33INCLUDEDEF=physiq.def 
    44INCLUDEDEF=gcm.def 
     5INCLUDEDEF=vert.def 
    56INCLUDEDEF=orchidee.def 
    6 INCLUDEDEF=output.def 
    77INCLUDEDEF=config.def 
    88INCLUDEDEF=reprobus.def 
     
    2626## flag de sortie dynzon 
    2727ok_dynzon=n 
    28 ## periode de stockage fichier dynzon (en jour) 
    29 periodav= _AUTOBLOCKER_ 
    3028## activation du calcul d equilibrage de charge 
    3129adjust= _AUTO_ 
     
    5250### config_inca=aero/chem needed only if type_trac=inca 
    5351config_inca=_AUTOBLOCKER_  
    54 ### Only concerning the program ce0l : for creating file grilles_gcm.nc 
    55 grilles_gcm_netcdf=_AUTO_ 
    5652### To activate XIOS ouputs only 
    5753ok_all_xml= _AUTO_ 
  • CONFIG/UNIFORM/v6/IPSLCM6/GENERAL/PARAM/vert.def_L79

    r2756 r2758  
    3333##  Avec ou sans strato 
    3434ok_strato=y 
     35##  Activation ou non de la parametrisation de Hines pour la strato 
    3536ok_hines=n 
    3637#  Couche eponge dans les couches de pression plus faible que 100 fois la pression de la derniere couche 
Note: See TracChangeset for help on using the changeset viewer.