Ignore:
Timestamp:
03/09/23 17:02:01 (16 months ago)
Author:
acosce
Message:

Merge between ICOLMDZOR and ICOLMDZORINCA

  • add in ICOLMDZOR possibility to nudge winds on experiments like it's done in regular configurations (flag ok_guide in dynamico.card ant not any more in lmdz.card)
  • uniformisation in ICOLMDZORINCA of monitoring.cfg files names
  • take in ICOLMDZORINCA modification of surface parameters
  • add in ICOLMDZOR management of nbtrac from dynamico.driver
  • add in ICOLMDZORINCA parameter for co2_ppm0
Location:
CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/dynamico.driver

    r6280 r6337  
    2424 
    2525 
     26    if [ -f ${SUBMIT_DIR}/../../../bin/inca_${OptMode}_${ConfChem}.dat ];  then  
     27        eval $(grep nbtrac ${SUBMIT_DIR}/../../../bin/inca_${OptMode}_${ConfChem}.dat) || nbtrac=1 
     28    else 
     29        nbtrac=1 
     30    fi 
     31    ((nbtrac=nbtrac+3)) 
     32 
     33 
    2634    if [ ! -f ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml ];  then  
    2735        module load python3 
    2836        python3 ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml.py > ${SUBMIT_DIR}/../../../modeles/DYNAMICO/xml/file_def_dynamico.xml 
    2937    fi 
    30  
    3138 
    3239    IGCM_debug_PopStack "ICO_Initialize" 
     
    4552    fi 
    4653 
     54    # set number of tracer in run_dynamico.def  
     55    IGCM_comp_modifyDefFile nonblocker run_dynamico.def nqtot ${nbtrac} 
     56 
    4757    # Set lenght for execution  
    4858    IGCM_comp_modifyDefFile blocker run_dynamico.def run_length $(( ${PeriodLengthInDays} * 86400 )) 
     59 
     60    #  Activate nudging if ok_guide=y set in dynamico.card 
     61    if [  X${dynamico_UserChoices_ok_guide} = Xy ] ; then 
     62        IGCM_comp_modifyDefFile nonblocker run_dynamico.def guided_type  nudging 
     63    else 
     64        IGCM_comp_modifyDefFile nonblocker run_dynamico.def guided_type  none 
     65    fi 
    4966 
    5067    # Change run_dynamico.def according to UserChoices options set in dynmaico.card 
     
    98115    fi 
    99116 
     117    if [ -f tracers_dynamico.xml ] ; then 
     118        echo '<context id="icosagcm" src="./tracers_dynamico.xml" />'  >> add.tmp 
     119    fi 
     120 
     121    if [  X${dynamico_UserChoices_ok_guide} = Xy ] ; then 
     122        if [ -f nudging_dynamico.xml ] ; then 
     123            echo '<context id="icosagcm" src="./nudging_dynamico.xml" />'  >> add.tmp 
     124        else 
     125            IGCM_debug_Exit "you choose ok_guide=y and forget to add the copy of nudging_dynamico.xml file in dynamico.card" 
     126            IGCM_debug_Verif_Exit 
     127        fi 
     128    fi 
     129 
     130    if [ -f file_def_dynamico.xml ] ; then 
     131        echo '<context id="icosagcm" src="./file_def_dynamico.xml" />' >> add.tmp 
     132    fi  
     133 
     134 
    100135    # Include xml files for output configuration if running with workflow CMIP6 
    101136    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     
    121156      rm add.tmp 
    122157    fi 
     158 
     159    #remove unlimited time axis on winds files  
     160    if [ -f u.nc ] ; then  
     161        nccopy -u u.nc tmp.nc 
     162        mv tmp.nc u.nc 
     163    fi  
     164    if [ -f v.nc ] ; then  
     165        nccopy -u v.nc tmp.nc 
     166        mv tmp.nc v.nc 
     167    fi  
     168 
    123169 
    124170    if [ X${config_ListOfComponents_CPL} = Xoasis ] ; then 
  • CONFIG/UNIFORM/v7/ICOLMDZOR_v7/GENERAL/DRIVER/lmdz.driver

    r6290 r6337  
    3131        RESOL_ATM_Z=${dynamico_UserChoices_RESOL_ATM_Z} 
    3232        RESOL_NBP=${dynamico_UserChoices_RESOL_NBP} 
    33     RESOL_ATM="nbp${RESOL_NBP}" 
     33        RESOL_ATM="nbp${RESOL_NBP}" 
    3434    fi 
    3535 
     
    382382    fi 
    383383 
    384     if [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ; then 
    385     echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def" 
    386     IGCM_comp_modifyDefFile blocker run.def type_trac inco 
    387     IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
    388     elif [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
     384    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    389385        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
    390386        IGCM_comp_modifyDefFile blocker run.def type_trac inca 
     
    399395        IGCM_comp_modifyDefFile blocker run.def type_trac co2i 
    400396        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    401     IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
     397        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1  
    402398    elif [ X${lmdz_UserChoices_LMDZ_strataero} = Xy ] ; then 
    403399        echo "No coupling to chemistry model but it is a LMDZ STRATAER configuration, set type_trac=coag in run.def" 
     
    405401        IGCM_comp_modifyDefFile blocker run.def config_inca none 
    406402        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1   
     403    elif [ X${config_UserChoices_ConfigType} = XESMCO2AER ] ; then 
     404        echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def" 
     405        IGCM_comp_modifyDefFile blocker run.def type_trac inco 
     406        IGCM_comp_modifyDefFile blocker run.def iflag_phytrac 1 
    407407    else 
    408408        echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
Note: See TracChangeset for help on using the changeset viewer.