Changeset 6664


Ignore:
Timestamp:
10/24/23 15:49:20 (6 months ago)
Author:
acosce
Message:

update IPSLCM6.3 configuration
1- remove option ESMCO2 from compilation
2- add option multi_sources_nat for futur commit in INCA

Location:
CONFIG/UNIFORM/v6/IPSLCM6.3
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.3/EXPERIMENTS/IPSLESM/AER/piControl_AER_CoupOceAtm_TEST/config.card

    r6633 r6664  
    2121#D- Choice of ConfigType to define which namelist and namcouple 
    2222#D- will be take for cycle couplage. 3 first letters need to be ESM 
    23 #D- ESMCO2 - ESMCO2DMS - ESMCO2N2O 
    24 ConfigType=ESMCO2DMS 
     23#D- ESMCO2 - ESMDMS - ESMN2O 
     24ConfigType=ESMDMS 
    2525#============================ 
    2626#-- leap, noleap, 360d 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/EXPERIMENTS/IPSLESM/GES/piControl_GES_CoupOceAtm_TEST/config.card

    r6633 r6664  
    1919#D- Choice of experiment in EXPERIMENTS directory 
    2020ExpType=IPSLESM/GES/piControl_GES_CoupOceAtm_TEST 
    21 ConfigType=ESMCO2 
     21ConfigType=ESMN2O 
    2222#============================ 
    2323#-- leap, noleap, 360d 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/GENERAL/DRIVER/inca.driver

    r6583 r6664  
    403403    fi 
    404404 
     405    #inca.def : choose  sflx_NAT.nc analyse (emission with multi sources or not)  
     406    if [ ! X${inca_UserChoices_multi_sources_nat} = X ]; then  
     407        IGCM_comp_modifyDefFile nonblocker inca.def multi_sources_nat ${inca_UserChoices_multi_sources_nat} 
     408    else 
     409        IGCM_comp_modifyDefFile nonblocker inca.def multi_sources_nat n 
     410    fi 
     411 
     412     
    405413    #inca.def : choose coupled model with Pisces 
    406414    if [ ! X${inca_UserChoices_CoupOceAtm} = X ]; then  
  • CONFIG/UNIFORM/v6/IPSLCM6.3/GENERAL/DRIVER/lmdz.driver

    r6632 r6664  
    367367    fi 
    368368 
    369     if   [ X${config_ListOfComponents_CHM} = Xinca ] && [ X${ConfigType:0:3} = XESM ] ; then 
     369    if   [ X${config_ListOfComponents_CHM} = Xinca ] && [ X${ConfigType:0:6} = XESMCO2 ] ; then 
    370370        echo "ESM config, with INCA and CO2i, set type_trac=inco in run.def" 
    371371        IGCM_comp_modifyDefFile blocker run.def type_trac inco 
     
    375375        echo 'default hadv=10 vadv=10 phases=g type=tracer parent=air' >> tracer.def 
    376376        echo 'CO2' >> tracer.def 
    377  
    378377    elif [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
    379378        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/GENERAL/PARAM/inca.def

    r6583 r6664  
    2525flag_plane=_AUTO_ 
    2626#choose which time interpolation you want to interpolate sflx file. ( 0 - 1 - 2) (no interpolation / point to point interpolation / Sheng & Zwiers interpolation)  
    27 emi_interp_time=_AUTO_ 
     27emi_interp_time=_AUTO_: DEFAULT=1 
     28#activate reading of sflx_NAT.nc file by year and with separate sources (oce, land, misc) for emissions 
     29multi_sources_nat=_AUTO_: DEFAULT=n 
    2830#activate the flag cmip_xml if you are running a CMIP experiment 
    2931cmip_xml=_AUTO_: DEFAULT =n 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/compile_ipslcm6.sh

    r6629 r6664  
    2222# Coupled with ocean biogeochemistry (y/n) 
    2323oceanbio=y 
    24 # Version ESM CO2: CO2 interactif ocean/atmosphere (y/n) 
    25 esmco2=n 
    26 # Version ESM AER : Aer interactif chemistry / atmosphere (y/n)  
    27 esmchem=n 
     24# Version ESM-CYCLE : coupling between INCA and PISCES (y/n) 
     25esmcycle=n 
    2826# Also compile ce0l subprogram to LMDZ (y/n) 
    2927ce0l=n 
     
    6462######################################################################## 
    6563# Usage of the script compile_ipslcm6.sh 
    66 # 
    6764######################################################################## 
    6865 
     
    7168 
    7269Options: [LR / VLR / MR1 / MR025] Model resolution, choose only one. Default: LR. 
    73          [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 
    74          [ESMCHEM] Compile IPSLCM6 for chemistry interactif on atmosphere 
    75          [ESMCYCLE] Compile IPSLCM6 for both interactive CO2 and chemistry, and transfer from PISCES to LMDZ and INCA. 
     70         [ESMCYCLE] Compile IPSLCM6 for interactive chemistry, and transfer from PISCES to LMDZ and INCA. 
    7671         [-full] Full recompilation of all components. This option can be added to all other options. 
    7772         [-cleannemo] Full recompilation of NEMO component  only. 
     
    7974 
    8075 
    81 Example 1: Default compilation of IPSLCM6 for resoltion LR  
    82           (Resolution atmos: 144x142x79, ocean: ORCA1) 
     76Example 1: Default compilation of IPSLCM6 for resolution LR. 
     77          (Resolution atmos: 144x142x79, ocean: ORCA1) 
    8378./compile_ipslcm6.sh 
    8479 
    85 Example 2: Compilation of IPSLCM6 for resolution MR025 
     80Example 2: Compilation of IPSLCM6 for resolution MR025. 
    8681           (atmos: 256x256x79, ocean: ORCA025, NOPISCES) 
    8782./compile_ipslcm6.sh MR025 
    8883 
    89 Example 3: Compilation of IPSLCM6 for ESM CO2 
    90 ./compile_ipslcm6.sh ESMCO2 -cleannemo 
    91  
    92 Example 4: Default resoltuion (LR) compiled in debug mode 
     84Example 3: Default resolution (LR) compiled in debug mode. 
    9385./compile_ipslcm6.sh -debug 
    9486 
    95 Example 5: Default compilation with full recompilation of all components. No clean is needed. 
     87Example 4: Default compilation with full recompilation of all components. No clean is needed. 
    9688./compile_ipslcm6.sh -full 
    9789 
    98 Example 6: Full recompilation of resolution MR05 in debug mode 
     90Example 5: Full recompilation of resolution MR025 in debug mode. 
    9991./compile_ipslcm6.sh MR025 -debug -full 
    10092 
    101 Example 7: choose radiative schema for LMDZ (oldrad/rrtm/ecrad). Default is rrtm 
     93Example 6: Choose radiative schema for LMDZ (oldrad/rrtm/ecrad). Default is rrtm. 
    10294./compile_ipslcm6.sh MR025 -rad ecrad 
    10395 
    104 Example 8: Compilation of IPSLCM6 for ESM with coupling between ATM / OCE  and  INCA chemistry AER 
     96Example 7: Compilation of IPSLCM6 for ESM with coupling between ATM/OCE and INCA chemistry AER. 
    10597./compile_ipslcm6.sh ESMCYCLE -chimie AER 
    10698 
    107 Example 9: Compilation of IPSLCM6 for ESM with INCA chemistry and choose the chemistry  
    108 ./compile_ipslcm6.sh ESMCHEM -chimie GES 
    109  
     99Example 8: Compilation of IPSLCM6 for ESM with INCA chemistry and choose the chemistry, without coupling between INCA and PISCES. 
     100./compile_ipslcm6.sh -chimie GES 
    110101 
    111102end_help 
     
    115106        "MR1")         resol_atm=256x256x79; resol_oce=ORCA1 ; icemodel=lim3; oceanbio=y; shift ;; 
    116107        "MR025")       resol_atm=256x256x79; resol_oce=ORCA025 ; icemodel=lim3; oceanbio=n;   shift ;; 
    117         "ESMCO2")      esmco2=y;  shift ;;  
    118         "ESMCHEM")     esmchem=y; shift ;;  
    119         "ESMCYCLE")    esmco2=y; esmchem=y; shift ;; 
     108        "ESMCYCLE")    esmcycle=y;  shift ;; 
    120109        "CE0L")        ce0l=y ; shift ;; 
    121110        "-rad")        rad=$2; shift ; shift;; 
     
    140129echo "Following options are set in current compiling:" >> $outfile 
    141130echo "   resol_atm=${resol_atm}, resol_oce=${resol_oce}, icemodel=${icemodel}, oceanbio=${oceanbio}" >> $outfile  
    142 echo "   esmco2=${esmco2}, esmchem=${esmchem}, chemistry=${optchimie}" >> $outfile  
     131echo "   esmcycle=${esmcycle}, chemistry=${optchimie}" >> $outfile  
    143132echo "   ce0l=${ce0l}" >> $outfile  
    144133echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile  
     
    297286   addkeys="key_top key_pisces key_age key_cfc key_cpl_carbon_cycle key_gas key_oasis3" 
    298287   if [ ${oceanbio} == y ] ; then 
    299       if [ ${esmco2} == y ] ; then 
    300         if [ ${esmchem} == y ] ; then 
    301            delkeys="key_nosignedzero key_mpp_rep" 
    302         else 
    303            delkeys="key_nosignedzero key_mpp_rep" 
    304         fi 
     288      if [ ${esmcycle} == y ] ; then 
     289         delkeys="key_nosignedzero key_mpp_rep key_cpl_carbon_cycle" 
    305290      else 
    306291         delkeys="key_nosignedzero key_mpp_rep key_cpl_carbon_cycle key_gas" 
     
    352337 
    353338echo >> $outfile 
    354 echo "Move nemo executable to modipsl/bin" >> $outfile 
     339echo "Move NEMO executable to modipsl/bin" >> $outfile 
    355340echo ls -lrt $nemo_root/$cfg_wrk/BLD/bin   >> $outfile 
    356341ls -lrt $nemo_root/$cfg_wrk/BLD/bin  >> $outfile 
     
    358343 
    359344if [ -f $nemo_root/$cfg_wrk/BLD/bin/nemo.exe ] ; then 
    360     if [ ${esmco2} == y ] && [ ${esmchem} == n ] ;  then  
    361         mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCO2_${resol_oce}_${optmode} 
    362     elif [ ${esmco2} == y ] && [ ${esmchem} == y ] ;  then 
    363     mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCYCLE_${resol_oce}_${optmode} 
     345    if [ ${esmcycle} == y ]  ;  then  
     346        mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCYCLE_${resol_oce}_${optmode} 
    364347    else 
    365348        mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa_${resol_oce}_${optmode} 
     
    370353## 2.6 Compile LMDZ for regular latlon configuration 
    371354# If necessary compile INCA modele with AER configuration  
    372 if [ ${esmchem} == y ] ;  then  
    373     cd $modipsl/modeles/INCA 
    374     #compile INCA regulat lat_lon chimie library  
    375     echo; echo "NOW COMPILE INCA ${optchimie} on resolution = ${resol_atm}" 
     355cd $modipsl/modeles/INCA 
     356#compile INCA regulat lat_lon chimie library  
     357echo; echo "NOW COMPILE INCA ${optchimie} on resolution = ${resol_atm}" 
     358 
     359if [ ${esmcycle} == y ]  ;  then  
     360 
     361    echo ./makeinca_fcm -chimie ${optchimie} -cplocninca -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 
     362    ./makeinca_fcm -chimie ${optchimie} -cplocninca -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca -cplocninca >> $outfile 2>&1 
     363else 
    376364    echo ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 
    377          ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca -cplocninca >> $outfile 2>&1 
    378      
    379     # Test if compiling finished 
    380     if [[ $? != 0 ]] ; then 
    381         echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
    382         exit 
    383     fi 
    384  
    385     echo "Move inca.dat modipsl/bin" 
    386     if [[ -f $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat ]] ;  then   
    387         mv $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat $modipsl/bin/inca_${optchimie}.dat ; 
    388     else 
    389         echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
    390         exit     
    391     fi 
    392  
    393     echo "Move tracer.def to  modipsl/bin" 
    394     if [[ -f $modipsl/modeles/INCA/tracer.def ]] ;  then 
    395         mv $modipsl/modeles/INCA/tracer.def $modipsl/bin/tracer_${optchimie}.def ; 
    396     fi 
    397  
    398  
    399      
    400 fi  
     365    ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca -cplocninca >> $outfile 2>&1 
     366fi 
     367         
     368# Test if compiling finished 
     369if [[ $? != 0 ]] ; then 
     370    echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
     371    exit 
     372fi 
     373 
     374echo "Move inca.dat to modipsl/bin" 
     375if [[ -f $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat ]] ;  then   
     376    mv $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat $modipsl/bin/inca_${optchimie}.dat ; 
     377else 
     378    echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
     379    exit         
     380fi 
     381 
     382echo "Move tracer.def to modipsl/bin/tracer_${optchimie}.def" 
     383if [[ -f $modipsl/modeles/INCA/tracer.def ]] ; then 
     384   mv $modipsl/modeles/INCA/tracer.def $modipsl/bin/tracer_${optchimie}.def ; 
     385fi 
    401386 
    402387 
     
    431416esac 
    432417 
    433 if [ ${esmchem} == n ] ;  then 
    434     echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 
    435          ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    436 else 
    437     #in esm aer case add chemistry option to lmdz compilation 
    438     echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 
    439          ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    440 fi 
     418# In ESM AER case add chemistry option to LMDZ compilation 
     419echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 
     420./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
    441421 
    442422# Test if compiling finished 
     
    446426fi 
    447427 
    448  
    449428# Move executables to modipsl/bin folder 
    450429echo >> $outfile 
     
    454433echo >> $outfile 
    455434 
    456  
    457435suffix=_${resol_atm}_phylmd 
    458436suffix=${suffix}_${rad}  
    459437suffix=${suffix}_para_mem_orch_couple 
    460 if [ ${esmchem} == n ] ;  then  
    461     suffix=${suffix}.e 
    462 else 
    463     suffix=${suffix}_inca.e 
    464 fi 
     438suffix=${suffix}_inca.e 
    465439 
    466440echo gcm suffix = $suffix 
    467441 
    468442if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ;  then  
    469     if [ ${esmchem} == n ] ;  then  
    470         mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 
    471     else 
    472         mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_${optchimie}.e 
    473     fi 
     443    mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_${optchimie}.e 
     444    cd $modipsl/bin 
     445    rm -f gcm_${resol_atm}_${optmode}.e 
     446    ln -s gcm_${resol_atm}_${optmode}_${optchimie}.e gcm_${resol_atm}_${optmode}.e 
    474447else 
    475448    echo "ERROR gcm${suffix} executable does not exist."  
     
    478451fi   
    479452 
    480  
    481  
    482  
    483  
    484 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
     453# Compile ce0l initialization program for LMDZ regular lat-lon executable 
    485454if [ $ce0l == y ] ; then 
    486455    echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 
     
    490459    ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
    491460 
    492 # 1er aout - remove xios from ce0l compilation # 
     461# 1er aout - remove XIOS from ce0l compilation # 
    493462#    echo ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    494463#    ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     
    499468        exit 
    500469    fi 
    501  
    502470 
    503471    # Move executables to modipsl/bin folder 
Note: See TracChangeset for help on using the changeset viewer.