Ignore:
Timestamp:
07/11/18 10:32:51 (3 years ago)
Author:
acosce
Message:

update configuration IPSLESM to NPv6.1.5

Location:
CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER
Files:
6 edited

Legend:

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

    r3758 r3969  
    159159    IGCM_comp_modifyDefFile nonblocker config.def solaire $value 
    160160 
     161    # Read value for eccentricity from file Eccentricity.txt. If file not existing, take DEFAULT value from file. 
     162    if [ -f Eccentricity.txt ] ; then 
     163        value=`grep Annee_${year} Eccentricity.txt | awk -F= '{print $2}'` 
     164        if [ X"${value}" = X ] ; then 
     165            # The grep returned empty variable, stop execution 
     166            IGCM_debug_Exit "The file Eccentricity.txt do not contain the current year." 
     167            IGCM_debug_Verif_Exit 
     168        fi 
     169    else 
     170        value=DEFAULT 
     171    fi 
     172    IGCM_comp_modifyDefFile nonblocker config.def R_ecc $value 
     173 
     174    # Read value for obliquity from file Obliquity.txt. If file not existing, take DEFAULT value from file. 
     175    if [ -f Obliquity.txt ] ; then 
     176        value=`grep Annee_${year} Obliquity.txt | awk -F= '{print $2}'` 
     177        if [ X"${value}" = X ] ; then 
     178            # The grep returned empty variable, stop execution 
     179            IGCM_debug_Exit "The file Obliquity.txt do not contain the current year." 
     180            IGCM_debug_Verif_Exit 
     181        fi 
     182    else 
     183        value=DEFAULT 
     184    fi 
     185    IGCM_comp_modifyDefFile nonblocker config.def R_incl $value 
     186 
     187    # Read value for perihelie from file Perihelie.txt. If file not existing, take DEFAULT value from file. 
     188    if [ -f Perihelie.txt ] ; then 
     189        value=`grep Annee_${year} Perihelie.txt | awk -F= '{print $2}'` 
     190        if [ X"${value}" = X ] ; then 
     191            # The grep returned empty variable, stop execution 
     192            IGCM_debug_Exit "The file Perihelie.txt do not contain the current year." 
     193            IGCM_debug_Verif_Exit 
     194        fi 
     195    else 
     196        value=DEFAULT 
     197    fi 
     198    IGCM_comp_modifyDefFile nonblocker config.def R_peri $value 
    161199 
    162200    # Read value for co2_ppm from file CO2.txt. If file not existing, take DEFAULT value from file.  
     
    349387    else 
    350388        echo "LMDZ is running in forced mode without ocean model, set type_ocean=force in run.def" 
    351         IGCM_comp_modifyDefFile blocker run.def type_ocean force 
     389        IGCM_comp_modifyDefFile nonblocker run.def type_ocean force 
    352390    fi 
    353391 
     
    401439    fi  
    402440 
     441    # config.def : Activate online Ozone chemistry coupled model if chemistry_couple=y 
     442    if [ ! X${lmdz_UserChoices_chemistry_couple} = X ]; then  
     443        IGCM_comp_modifyDefFile nonblocker config.def chemistry_couple ${lmdz_UserChoices_chemistry_couple} 
     444    else 
     445        IGCM_comp_modifyDefFile nonblocker config.def chemistry_couple n 
     446    fi  
     447 
    403448    # config.def : Activate reading of ozone in climatology if read_climoz=2 
    404449    if [ ! X${lmdz_UserChoices_read_climoz} = X ]; then  
     
    439484    fi  
    440485 
     486    # physiq.def : Modify parameter tau_gl if it is set in lmdz.card 
     487    if [ ! X${lmdz_UserChoices_tau_gl} = X ]; then  
     488        IGCM_comp_modifyDefFile nonblocker physiq.def tau_gl ${lmdz_UserChoices_tau_gl} 
     489    else 
     490        # Take default value set in physiq.def 
     491        IGCM_comp_modifyDefFile nonblocker config.def tau_gl DEFAULT 
     492    fi 
     493    
     494 
    441495    # guide.def : Activate nudging if ok_guide=y set in lmdz.card 
    442496    if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then 
     
    445499        IGCM_comp_modifyDefFile nonblocker guide.def ok_guide n 
    446500    fi 
     501 
    447502 
    448503    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/oasis.driver

    r3121 r3969  
    2525        esac 
    2626    done 
     27 
     28    # Initialisation required for AddNoise done during one Period 
     29    Test_AddNoise_First_Only=y 
    2730 
    2831    IGCM_debug_PopStack "CPL_Initialize" 
     
    99102    IGCM_comp_modifyXmlFile force iodef.xml using_oasis NONE true 
    100103 
     104    if [ X"${Test_AddNoise_First_Only}" = X"y" ]; then 
     105 
     106    Test_AddNoise_First_Only=n 
     107 
     108    # AddNoise if required but only for one Period 
     109 
     110    # Read ByPass_addnoise_sst option in oasis.card --> apply addnoise for sst in CPL restart file if [ $ByPass_addnoise_sst = y ] 
     111    ByPass_addnoise_sst=${oasis_UserChoices_ByPass_addnoise_sst} 
     112    if [ X"${ByPass_addnoise_sst}" = X"y" ] ; then 
     113       
     114      ByPass_PerturbExe=${oasis_UserChoices_ByPass_PerturbExe} 
     115      ByPass_FileOut=${oasis_UserChoices_ByPass_FileOut} 
     116      ByPass_PerturbVar=${oasis_UserChoices_ByPass_PerturbVar} 
     117      ByPass_PerturbAmp=${oasis_UserChoices_ByPass_PerturbAmp} 
     118 
     119      IGCM_sys_Chmod 644 ${RUN_DIR}/${ByPass_FileOut}.nc 
     120      IGCM_debug_Print 1 "${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp}" 
     121 
     122      ${ByPass_PerturbExe} ${RUN_DIR}/${ByPass_FileOut}.nc ${ByPass_PerturbVar} ${ByPass_PerturbAmp}  
     123      if [ $? -ne 0 ] ; then 
     124        IGCM_debug_Exit "Error with $( basename ${ByPass_PerturbExe} )" 
     125        IGCM_debug_Verif_Exit 
     126      fi 
     127 
     128      echo 
     129      IGCM_debug_Print 1 "ByPass_addnoise_sst : applied addnoise for sst in CPL restart file" 
     130      echo 
     131      ByPass_addnoise_sst=n 
     132      # necessary to reset ByPass in next Period during the same Job (PeriodNb<>1) 
     133      export oasis_UserChoicesByPass_addnoise_sst=n 
     134      IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/oasis.card UserChoices ByPass_addnoise_sst "${ByPass_addnoise_sst}" 
     135    fi 
     136 
     137    fi 
     138 
    101139    IGCM_debug_PopStack "CPL_Update" 
    102140} 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/opa9.driver

    r3758 r3969  
    6969    fi 
    7070 
    71     if [[ ${opa9_UserChoices_TimeOrigin} -gt ${InitYear} ]] ; then 
    72         echo 
    73         echo 
    74         IGCM_debug_Exit "TimeOrigin=${opa9_UserChoices_TimeOrigin} is greater than initial year=${InitYear}. IT MUST BE LOWER ! Change this value in opa9.card" 
    75         IGCM_debug_Verif_Exit 
    76     fi 
    77  
    78      
    7971    IGCM_debug_PopStack "OCE_Initialize" 
    8072    
     
    126118      OPA_NRSTDT=2 
    127119      #echo "OPA RESTART" 
    128       IGCM_debug_Print 1 'WARNING : dangerous option' 
     120      IGCM_debug_Print 1 'WARNING : dangerous option for NEMO opa9 pisces lim3' 
    129121      IGCM_debug_Print 1 'Reproducibility_after_Restart forced ie kt forced to kt red in restart file : ' ${opa9_UserChoices_Reproducibility_after_restart} 
     122 
    130123    elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_OCE_Restart}" = "n" ] ) ; then 
    131124      OPA_LRSTAR=.FALSE. 
     
    166159 
    167160    if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 
    168       NEMO_KT_FROM_RESTART=$(ncdump -v kt restartopa_0000.nc|grep 'kt ='|awk '{print $3}' ) 
     161      ##-- choose the right restart file 
     162      NEMO_RESTART_FILE=restartopa.nc 
     163      [ -f restartopa_0000.nc ] && NEMO_RESTART_FILE=restartopa_0000.nc 
     164      ##-- Getting from restart file the last time step of the run at which we want to re-start 
     165      NEMO_KT_FROM_RESTART=$(ncdump -v kt ${NEMO_RESTART_FILE}|grep 'kt ='|awk '{print $3}' ) 
     166 
     167      if ( [ "${CumulPeriod}" -eq 1 ] ) ; then 
     168        ## Force the date in the restart file to be the last day before the begining of the new run 
     169        dateendprevious=$( IGCM_date_AddDaysToGregorianDate ${DateBegin} -1 ) 
     170        IGCM_debug_Print 1 "Previous Date  ${dateendprevious}" 
     171        IGCM_debug_Print 1 "cmd done to modify NEMO restartfile:   ncap2 -s ndastp=${dateendprevious} ${NEMO_RESTART_FILE}  tmp.nc" 
     172        if [ -f restartopa_0000.nc ] ; then 
     173           typeset -Z4 ncpu=0 
     174           while [ $ncpu -lt ${OCE_PROC_MPI} ] ; do 
     175              ncap2 -s "ndastp=${dateendprevious}" restartopa_${ncpu}.nc  tmp.nc 
     176              mv tmp.nc restartopa_${ncpu}.nc 
     177              (( ncpu = ncpu + 1 )) 
     178           done 
     179        else 
     180           ncap2 -s "ndastp=${dateendprevious}" ${NEMO_RESTART_FILE}  tmp.nc 
     181           mv tmp.nc ${NEMO_RESTART_FILE} 
     182        fi 
     183        ##-- Getting from restart file the "new" restart date of run at which we want to re-start 
     184        NEMO_NDASTP_FROM_RESTART=$(ncdump -v ndastp ${NEMO_RESTART_FILE}|grep 'ndastp ='|awk '{print $3}' ) 
     185        IGCM_debug_Print 1 "NEMO_NDASTP (from Restart) for 1st Period       : ${NEMO_NDASTP_FROM_RESTART}" 
     186 
     187      fi 
     188 
    169189      (( NEMO_NIT000 = NEMO_KT_FROM_RESTART + 1 )) 
    170190      (( NEMO_NITEND = NEMO_KT_FROM_RESTART + OPA_NITEND - OPA_NIT000 + 1 )) 
     
    208228 
    209229 
    210     IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${opa9_UserChoices_TimeOrigin} 
     230    IGCM_comp_modifyXmlFile force context_nemo.xml ref_year NONE ${InitYear}  
    211231         
    212232  
    213     # vargas/titane/MPP and switch from 1 proc to 5 procs. We need to suppres restartopa the second month, if restartopa_0000 exist 
     233    # for MPP and switch to different number of procs for NEMO.  We need to suppres restartopa the second period, if restartopa_0000 exist 
    214234    # same thing for restart_trc and restart_ice_in 
    215235 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/orchidee.driver

    r3687 r3969  
    5959    else 
    6060        IGCM_comp_modifyDefFile nonblocker orchidee.def VEGET_UPDATE 0Y 
     61    fi 
     62 
     63    # Set LAI_MAP in orchidee.def acording to value set in orchidee.card section UserChoices 
     64    # If LAI_MAP is not definded in orchidee.card, set default value n 
     65    # Note: this option is only read by ORCHIDEE if starting without restart files 
     66    if [ ! X${orchidee_UserChoices_LAI_MAP} = X ] ; then 
     67        IGCM_comp_modifyDefFile nonblocker orchidee.def LAI_MAP   ${orchidee_UserChoices_LAI_MAP} 
     68    else 
     69        IGCM_comp_modifyDefFile nonblocker orchidee.def LAI_MAP   DEFAULT 
     70    fi 
     71 
     72    # Set DO_WOOD_HARVEST in orchidee.def acording to value set in orchidee.card section UserChoices 
     73    # If DO_WOOD_HARVEST is not definded in orchidee.card, set default value y 
     74    if [ ! X${orchidee_UserChoices_DO_WOOD_HARVEST} = X ] ; then 
     75        IGCM_comp_modifyDefFile nonblocker orchidee.def DO_WOOD_HARVEST   ${orchidee_UserChoices_DO_WOOD_HARVEST} 
     76    else 
     77        IGCM_comp_modifyDefFile nonblocker orchidee.def DO_WOOD_HARVEST   DEFAULT 
    6178    fi 
    6279 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/pisces.driver

    r3758 r3969  
    4343 
    4444    ##-- Restart configuration 
    45     if ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "n" ] ) ; then 
     45    ##-- Restart configuration 
     46    if ( [ "${opa9_UserChoices_Reproducibility_after_restart}" = "y" ] ) ; then 
     47        TOP_LN_RSTR=.TRUE. 
     48        TOP_NN_RSTR=2 
     49        IGCM_debug_Print 1 'WARNING : dangerous option for NEMO pisces too' 
     50        IGCM_debug_Print 1 'Reproducibility_after_Restart forced : ' ${opa9_UserChoices_Reproducibility_after_restart} 
     51 
     52    elif ( [ "${CumulPeriod}" -eq 1 ] && [ "${config_MBG_Restart}" = "n" ] ) ; then 
    4653 
    4754        #echo "NO RESTART FOR TOP" 
     
    5663 
    5764        # If we start from IPSLCM5* restart files. 
    58         for file in restart_trc*.nc ; do 
     65            for file in restart_trc*.nc ; do 
     66            IGCM_debug_Print 1 "cmd done to modify IPSLCM5* NEMO pisces restartfile: " ncrename -v TRBDSi,TRBGSi -v TRNDSi,TRNGSi -v TRNBSi,TRNDSi -v TRBBSi,TRBDSi ${file} > /dev/null 2>&1 
    5967            ncrename -v TRBDSi,TRBGSi -v TRNDSi,TRNGSi -v TRNBSi,TRNDSi -v TRBBSi,TRBDSi ${file} > /dev/null 2>&1 
    60         done 
     68            done 
    6169 
    6270    else 
  • CONFIG/UNIFORM/v6/IPSLESM6/GENERAL/DRIVER/xios.driver

    r2606 r3969  
    1919    IGCM_comp_modifyXmlFile force iodef.xml using_server NONE true 
    2020 
     21# Activate 2nd server level for CMIP6 type experiments (CMIP6 workflow) 
     22    if [ X"$( echo ${config_UserChoices_ExpType} | grep CMIP6 )" != "X" ] ; then 
     23    IGCM_comp_modifyXmlFile force iodef.xml using_server2 NONE true 
     24    fi 
     25 
    2126    if [ -f namcouple ] ; then 
    2227        sed -e "s/2  LMDZ oceanx/3 LMDZ oceanx ${config_Executable_IOS[1]}/" namcouple > namcouple.tmp  
Note: See TracChangeset for help on using the changeset viewer.