Changeset 6533 for CONFIG/UNIFORM


Ignore:
Timestamp:
07/07/23 13:26:43 (12 months ago)
Author:
jgipsl
Message:

Updated as done previously in IPSLCM6.2

Location:
CONFIG/UNIFORM/v6/IPSLCM6.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM6.3/ARCH/arch-X64_IRENE-AMD.env

    r6385 r6533  
    55module load mpi/openmpi/4.1.4 
    66module load flavor/hdf5/parallel 
    7 module load hdf5/1.12.0 
     7module load hdf5/1.12.2 
    88module load netcdf-fortran/4.5.3 
     9module load netcdf95 
    910module load mkl/20.0.0 
    1011module load feature/bridge/heterogenous_mpmd 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/ARCH/arch-X64_IRENE.env

    r6385 r6533  
    55module load mpi/openmpi/4.1.4 
    66module load flavor/hdf5/parallel 
    7 module load hdf5/1.12.0 
     7module load hdf5/1.12.2 
    88module load netcdf-fortran/4.5.3 
     9module load netcdf95 
    910module load mkl/20.0.0 
    1011module load feature/bridge/heterogenous_mpmd 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/ARCH/arch-X64_JEANZAY.env

    r5555 r6533  
    66module load netcdf/4.7.2-mpi 
    77module load netcdf-fortran/4.5.2-mpi 
     8module load netcdf95 
    89 
     10# Load svn needed for the compilation script 
     11module load subversion 
  • CONFIG/UNIFORM/v6/IPSLCM6.3/compile_ipslcm6.sh

    r5555 r6533  
    2828# Also compile ce0l subprogram to LMDZ (y/n) 
    2929ce0l=n 
     30# choose radiative code compilation option  
     31rad=rrtm 
     32opt_rad="" 
    3033 
    3134# Optimization mode 
     
    6871         [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 
    6972         [ESMAER] Compile IPSLCM6 for AER interactif on atmosphere 
     73         [ESMCO2AER] Compile IPSLCM6 for both interactive CO2 and AER, and also with transfer of species from PISCES to INCA. 
    7074         [-full] Full recompilation of all components. This option can be added to all other options. 
    7175         [-cleannemo] Full recompilation of NEMO component  only. 
     
    9296Example 6: Full recompilation of resolution MR05 in debug mode 
    9397./compile_ipslcm6.sh MR025 -debug -full 
     98 
     99Example 7: choose radiative schema for LMDZ (oldrad/rrtm/ecrad). Default is rrtm 
     100./compile_ipslcm6.sh MR025 -rad ecrad 
     101 
    94102 
    95103end_help 
     
    101109        "ESMCO2")      esmco2=y;  shift ;;  
    102110        "ESMAER")      esmaer=y; shift ;;  
     111        "ESMCO2AER")   esmco2=y; esmaer=y; shift ;; 
    103112        "CE0L")        ce0l=y ; shift ;; 
     113        "-rad")        rad=$2; shift ; shift;; 
    104114        "-parallel")   parallel=$2 ; shift ; shift ;;  
    105115        "-arch")       fcm_arch="$2" ; shift ; shift ;; 
     
    168178    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
    169179    module list   >> $outfile 2>&1  
     180    # Get initial svn version 
     181    svn_version=$(module list -t | grep subversion) 
    170182 
    171183    # Make a link to this file, to be used also in config.card 
     
    175187    # Source the file 
    176188    source ARCH/arch.env   >> $outfile 2>&1  
     189    if [ X$svn_version != X ] ; then 
     190        # Put back initial version of svn 
     191        module load ${svn_version} 
     192    fi 
    177193    echo >> $outfile  
    178194    echo " New module list after sourcing of ARCH/arch.env file:"    >> $outfile   
     
    263279   delkeys="key_nosignedzero key_mpp_rep" 
    264280else 
    265    addkeys="key_top key_pisces key_age key_cfc key_cpl_carbon_cycle key_gas key_oasis3" 
     281   addkeys="key_top key_pisces key_age key_cfc key_cpl_carbon_cycle key_gas key_oasis3 key_transm_ocninca" 
    266282   if [ ${oceanbio} == y ] ; then 
    267283      if [ ${esmco2} == y ] ; then 
    268          delkeys="key_nosignedzero key_mpp_rep" 
     284        if [ ${esmaer} == y ] ; then 
     285           delkeys="key_nosignedzero key_mpp_rep" 
     286        else 
     287           delkeys="key_nosignedzero key_mpp_rep key_transm_ocninca" 
     288        fi 
    269289      else 
    270          delkeys="key_nosignedzero key_mpp_rep key_cpl_carbon_cycle key_gas" 
     290         delkeys="key_nosignedzero key_mpp_rep key_cpl_carbon_cycle key_gas key_transm_ocninca" 
    271291      fi 
    272292   else 
    273       delkeys="key_nosignedzero key_mpp_rep key_top key_pisces key_cfc key_age key_cpl_carbon_cycle key_gas" 
     293      delkeys="key_nosignedzero key_mpp_rep key_top key_pisces key_cfc key_age key_cpl_carbon_cycle key_gas key_transm_ocninca" 
    274294   fi 
    275295fi 
     
    320340 
    321341if [ -f $nemo_root/$cfg_wrk/BLD/bin/nemo.exe ] ; then 
    322     if [ ${esmco2} == y ] ;  then  
     342    if [ ${esmco2} == y ] && [ ${esmaer} == n ] ;  then  
    323343        mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCO2_${resol_oce}_${optmode} 
     344    elif [ ${esmco2} == y ] && [ ${esmaer} == y ] ;  then 
     345    mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCO2AER_${resol_oce}_${optmode} 
    324346    else 
    325347        mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa_${resol_oce}_${optmode} 
     
    332354if [ ${esmaer} == y ] ;  then  
    333355    cd $modipsl/modeles/INCA 
    334     #compile INCA regulat lat_lon chimie librairy  
     356    #compile INCA regulat lat_lon chimie library  
    335357    echo; echo "NOW COMPILE INCA AER on resolution = ${resol_atm}" 
    336     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  
    337     ./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 
    338  
     358    if [ ${esmco2} == y ] ; then 
     359      echo ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 
     360      ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca -cplocninca >> $outfile 2>&1 
     361    else 
     362      echo ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile  
     363      ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path  $full_flag $full_inca >> $outfile 2>&1 
     364    fi 
    339365    # Test if compiling finished 
    340366    if [[ $? != 0 ]] ; then 
     
    358384echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 
    359385echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}"   >> $outfile  
     386# Retrieve the final svn release number, needed for radiative code suffix of executable 
     387lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
     388echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    360389 
    361390# Check if the compilation of LMDZ was previsouly interupted prematured.  
     
    372401fi 
    373402 
    374 if [ ${esmaer} == n ] ;  then  
    375     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  
    376     ./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 
     403# Need to define the proper option for radiative code compilation. By default, we use rrtm 
     404case $rad in 
     405    oldrad) opt_rad="" ;; 
     406    rrtm)   if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;; 
     407    ecrad)  opt_rad="-rad ecrad" ;; 
     408    *) echo Only oldrad rrtm ecrad for rad option ; exit 
     409esac 
     410 
     411if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi 
     412 
     413 
     414if [ ${esmaer} == n ] ;  then 
     415    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 
     416    ./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 
    377417else 
    378     #in esm aer case add chemistry option to lmdz compilation  
    379     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  
    380     ./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 
    381 fi  
     418    #in esm aer case add chemistry option to lmdz compilation 
     419    if [ ${esmco2} == y ] ; then 
     420      echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -cplocninca -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 
     421      ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -cplocninca -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm    >> $outfile 2>&1 
     422    else 
     423      echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -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 
     424      ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -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 
     425    fi 
     426fi 
     427 
    382428# Test if compiling finished 
    383429if [[ $? != 0 ]] ; then 
     
    386432fi 
    387433 
     434 
     435 
     436 
    388437# Move executables to modipsl/bin folder 
    389438echo >> $outfile 
     
    392441ls -lrt $modipsl/modeles/LMDZ/bin  >> $outfile 
    393442echo >> $outfile 
     443 
     444 
     445suffix=_${resol_atm}_phylmd 
     446if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
     447suffix=${suffix}_para_mem_orch_couple 
    394448if [ ${esmaer} == n ] ;  then  
    395     suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 
     449    suffix=${suffix}.e 
    396450else 
    397     suffix=_${resol_atm}_phylmd_para_mem_orch_couple_inca.e 
    398 fi 
     451    suffix=${suffix}_inca.e 
     452fi 
     453 
    399454echo gcm suffix = $suffix 
    400455 
     
    412467 
    413468 
     469 
     470 
     471 
    414472# Compile ce0l initialization program for LMDZ regular lat-lon exectuable 
    415473if [ $ce0l == y ] ; then 
     
    417475    echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}"   >> $outfile  
    418476     
    419     echo ./makelmdz_fcm -d ${resol_atm} -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
    420     ./makelmdz_fcm -d ${resol_atm} -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     477    echo ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     478    ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile 2>&1 
     479 
     480# 1er aout - remove xios from ce0l compilation # 
     481#    echo ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l    >> $outfile  
     482#    ./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 
     483 
    421484    # Test if compiling finished 
    422485    if [[ $? != 0 ]] ; then 
     
    432495    ls -lrt $modipsl/modeles/LMDZ/bin  >> $outfile 
    433496    echo >> $outfile 
    434 #    suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 
     497 
    435498    suffix=_${resol_atm}_phylmd_seq.e 
     499    if [ $lmdzsvn -ge 4186 ] ; then suffix=_${resol_atm}_phylmd_${rad}_seq.e ; fi 
    436500    echo ce0l suffix = $suffix 
    437501 
Note: See TracChangeset for help on using the changeset viewer.