Ignore:
Timestamp:
05/07/15 17:24:54 (9 years ago)
Author:
jgipsl
Message:

Updated with modifications done in v6/IPSLCM6 up until revision 2510. Not considering modifictions done for NEMO and pmagic.

File:
1 edited

Legend:

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

    r2343 r2511  
    338338 
    339339    # XIOS XML definition 
     340    if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
    340341    # Default init : files are desactivated 
    341342        IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth enabled .FALSE.  
     
    348349        IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC enabled .FALSE. 
    349350        IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC enabled .FALSE. 
    350         if [ X${lmdz_UserChoices_XIOS}  = Xy ] ; then 
     351        IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .FALSE. 
     352        IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .FALSE. 
     353        IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .FALSE. 
     354 
    351355    # Default output level : 5 
    352             IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5  
    353             IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5  
    354             IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 
    355 #           IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 
    356 #           IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 
    357             IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 
    358             IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 
    359             IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 
    360             IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 
     356        IGCM_comp_modifyXmlFile force file_def_histmth_lmdz.xml histmth output_level 5  
     357        IGCM_comp_modifyXmlFile force file_def_histday_lmdz.xml histday output_level 5  
     358        IGCM_comp_modifyXmlFile force file_def_histhf_lmdz.xml histhf output_level 5 
     359#       IGCM_comp_modifyXmlFile force file_def_histhf3h_lmdz.xml histhf3h output_level 5 
     360#       IGCM_comp_modifyXmlFile force file_def_histhf3hm_lmdz.xml histhf3hm output_level 5 
     361        IGCM_comp_modifyXmlFile force file_def_histstn_lmdz.xml histstn output_level 5 
     362        IGCM_comp_modifyXmlFile force file_def_histmthNMC_lmdz.xml histmthNMC output_level 5 
     363        IGCM_comp_modifyXmlFile force file_def_histdayNMC_lmdz.xml histdayNMC output_level 5 
     364        IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC output_level 5 
     365        IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_level 5 
     366        IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_level 5 
     367        IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_level 5 
    361368     # Filling of XML files  
    362369        if [ X${ok_mensuel} = Xy ] ; then 
     
    411418            IGCM_comp_modifyXmlFile force file_def_histhfNMC_lmdz.xml histhfNMC name histhfNMC 
    412419        fi 
     420        if [ X${LMDZ_COSP_monthly} = Xy ] ; then 
     421            IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP enabled .TRUE.  
     422            IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP output_freq 1mo 
     423            IGCM_comp_modifyXmlFile force file_def_histmthCOSP_lmdz.xml histmthCOSP name histmthCOSP 
     424        fi 
     425        if [ X${LMDZ_COSP_daily} = Xy ] ; then 
     426            IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP enabled .TRUE.  
     427            IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP output_freq 1d 
     428            IGCM_comp_modifyXmlFile force file_def_histdayCOSP_lmdz.xml histdayCOSP name histdayCOSP 
     429        fi 
     430        if [ X${LMDZ_COSP_hf} = Xy ] ; then 
     431            IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP enabled .TRUE.  
     432            IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP output_freq 6h 
     433            IGCM_comp_modifyXmlFile force file_def_histhfCOSP_lmdz.xml histhfCOSP name histhfCOSP 
     434        fi 
     435 
    413436    fi 
    414437 
     
    416439    # Modification of variable iphysiq depending on the physics 
    417440    if [ X${LMDZ_Physics} = X"AP" ] ; then 
    418         value=10 
    419     else 
     441        if [ ${RESOL_ATM_3D} = 96x95x39 ]; then 
     442            value=10 
     443        elif [ ${RESOL_ATM_3D} = 144x142x39 ]; then 
     444            value=15 
     445        else 
     446            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     447            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     448            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     449        fi 
     450    elif [ X${LMDZ_Physics} = X"NPv3.1" ] ; then 
     451        if  [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     452            value=5 
     453        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     454            value=5 
     455        else 
     456            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     457            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     458            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     459        fi 
     460    elif [ X${LMDZ_Physics} = X"NPv3.2" ] ; then 
     461        if [ ${RESOL_ATM_3D} = 96x95x39 ] ; then 
     462            value=5 
     463        elif [ ${RESOL_ATM_3D} = 144x142x39 ] ; then 
     464            value=5 
     465        elif [ ${RESOL_ATM_3D} = 128x118x39 ] ; then 
     466            value=15 
     467        else 
     468            IGCM_debug_Print 1 "LMDZ_Physics=${LMDZ_Physics} has not been tested for the current resolution RESOL_ATM_3D=${RESOL_ATM_3D}. " 
     469            IGCM_debug_Print 1 "iphysiq must be defined for the current combination of resolution and phyiscs package" 
     470            IGCM_debug_Exit "You need to add a special case in lmdz.driver to handle the above combination." 
     471        fi 
     472    else 
     473        # Take default value set in gcm.def 
    420474        value=DEFAULT 
    421475    fi 
    422476    IGCM_comp_modifyDefFile nonblocker gcm.def iphysiq $value 
    423  
     477     
    424478 
    425479    ## run.def parameters 
     
    437491        IGCM_comp_modifyDefFile blocker run.def anneeref ${year} 
    438492        IGCM_comp_modifyDefFile blocker run.def calend   ${CalendarTypeForCreate} 
     493 
     494        # Temporary, set use_filtre_fft=n because we now use dyn3d for ce0l version where fft is not implemented.  
     495        # In more recent versions of LMDZ, this will not be needed.  
     496        IGCM_comp_modifyDefFile force   run.def use_filtre_fft n 
    439497    else 
    440498        # for case gcm : take first year of simulation 
     
    570628            iodef.xml.tmp > iodef.xml 
    571629        rm iodef.xml.tmp add.tmp 
     630 
     631        # Set ok_all_xml=y in run.def 
     632        IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml y 
     633    else 
     634        # Deactivate ok_all_xml in run.def 
     635        IGCM_comp_modifyDefFile nonblocker run.def ok_all_xml n 
    572636    fi 
    573637     
Note: See TracChangeset for help on using the changeset viewer.