Ignore:
Timestamp:
09/16/19 14:49:56 (5 years ago)
Author:
acosce
Message:

update IPSLCM6 - ESMAER experiment

  • add esmaer compilation on compile script
  • correct an error of resolution on config.card
  • add traceur file
  • update orchidee and opa.card
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh

    r4645 r4707  
    2424# Version ESM CO2: CO2 interactif ocean/atmosphere (y/n) 
    2525esmco2=n 
     26# Version ESM AER : Aer interactif chemistry / atmosphere (y/n)  
     27esmaer=n 
    2628# Also compile ce0l subprogram to LMDZ (y/n) 
    2729ce0l=n 
     
    3739full_flag="" 
    3840full_nemo=n 
     41full_inca="" 
    3942full_xios="" 
    4043full_lmdz="" 
     
    6467Options: [LR / VLR / MR1 / MR025] Model resolution, choose only one. Default: LR. 
    6568         [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 
     69         [ESMAER] Compile IPSLCM6 for AER interactif on atmosphere 
    6670         [-full] Full recompilation of all components. This option can be added to all other options. 
    6771         [-cleannemo] Full recompilation of NEMO component  only. 
     
    96100        "MR025")       resol_atm=256x256x79; resol_oce=ORCA025 ; icemodel=lim3; oceanbio=n;   shift ;; 
    97101        "ESMCO2")      esmco2=y;  shift ;;  
     102        "ESMAER")      esmaer=y; shift ;;  
    98103        "CE0L")        ce0l=y ; shift ;; 
    99104        "-parallel")   parallel=$2 ; shift ; shift ;;  
     
    107112        "-full_orch")  full_orch="-full"  ; shift ;; 
    108113        "-full_nemo")  full_nemo=y ; shift ;; 
     114        "-full_inca")  full_inca="-clean"; shift ;; 
    109115        "-cleannemo")  full_nemo=y ; shift ;; 
    110116        *)             echo "unknown option "$1" , exiting..." ; exit 
     
    301307 
    302308## 2.6 Compile LMDZ for regular latlon configuration 
     309# If necessary compile INCA modele with AER configuration  
     310if [ ${esmaer} == y ] ;  then  
     311    cd $modipsl/modeles/INCA 
     312    #compile INCA regulat lat_lon chimie librairy  
     313    echo; echo "NOW COMPILE INCA AER on resolution = ${resol_atm}" 
     314    echo ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -resol ${resol_atm} -j 8 -arch ${fcm_arch}  -arch_path $arch_path $full_flag $full_inca >> $outfile  
     315    ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -resol ${resol_atm} -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca >> $outfile 2>&1 
     316 
     317    # Test if compiling finished 
     318    if [[ $? != 0 ]] ; then 
     319        echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
     320        exit 
     321    fi 
     322 
     323    echo "Move inca.dat modipsl/bin" 
     324    if [[ -f $modipsl/modeles/INCA/SIMULATIONS/AER/inca.dat ]] ;  then   
     325        mv $modipsl/modeles/INCA/SIMULATIONS/AER/inca.dat $modipsl/bin/inca_${resol_atm}_${optmode}_AER.dat ; 
     326    else 
     327        echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 
     328        exit     
     329    fi 
     330         
     331fi  
     332 
     333 
    303334cd $modipsl/modeles/LMDZ 
    304335# Compile LMDZ regular lat-lon exectuable 
     
    319350fi 
    320351 
    321 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
    322      ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     352if [ ${esmaer} == n ] ;  then  
     353    echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile  
     354    ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     355else 
     356    #in esm aer case add chemistry option to lmdz compilation  
     357    echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -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  
     358    ./makelmdz_fcm -d ${resol_atm} -c OMCT -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 
     359fi  
    323360# Test if compiling finished 
    324361if [[ $? != 0 ]] ; then 
     
    333370ls -lrt $modipsl/modeles/LMDZ/bin  >> $outfile 
    334371echo >> $outfile 
    335 suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 
     372if [ ${esmaer} == n ] ;  then  
     373    suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 
     374else 
     375    suffix=_${resol_atm}_phylmd_para_mem_orch_couple_inca.e 
     376fi 
    336377echo gcm suffix = $suffix 
    337378 
    338379if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ;  then  
    339     mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 
     380    if [ ${esmaer} == n ] ;  then  
     381        mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 
     382    else 
     383        mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_AER.e 
     384    fi 
    340385else 
    341386    echo "ERROR gcm${suffix} executable does not exist."  
Note: See TracChangeset for help on using the changeset viewer.