Changeset 6692


Ignore:
Timestamp:
12/21/23 11:23:09 (5 months ago)
Author:
acosce
Message:

update compilation script for IPSLCM7 :

  • remove test on svn revision for lmdz (we always use with this config a version uptodate with radiative code)
  • add the definition of opt_rad for lmdz compilation in case of regular grid (for the case we don't compile ico grid)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh

    r6691 r6692  
    453453    echo >> $outfile ; echo " NOW COMPILE LMDZ FOR COUPLING TO DYNAMICO"   >> $outfile  
    454454     
    455     # Retrieve the final svn release number, needed for radiative code suffix of executable 
    456     lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
    457455    # Temporary use of SOURCES/LMDZ to handle modifications needed by IPSLCM7 
    458456    cp $mysrc_path/LMDZ/phylmd/*.*90  libf/phylmd/. 
     
    475473    case $rad in 
    476474        oldrad) opt_rad="" ;; 
    477         rrtm)   if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;; 
     475        rrtm)    opt_rad="-rad rrtm" ;; 
    478476        ecrad)  opt_rad="-rad ecrad" ;; 
    479477        *) echo Only oldrad rrtm ecrad for rad option ; exit 
    480478    esac 
    481479     
    482     if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi 
    483480     
    484481    if [ $compinca == y ] ; then 
     
    584581    fi 
    585582 
     583    # Need to define the proper option for radiative code compilation. By default, we use rrtm 
     584    case $rad in 
     585        oldrad) opt_rad="" ;; 
     586        rrtm)    opt_rad="-rad rrtm" ;; 
     587        ecrad)  opt_rad="-rad ecrad" ;; 
     588        *) echo Only oldrad rrtm ecrad for rad option ; exit 
     589    esac 
     590     
    586591    if [ $compinca == y ] ; then 
    587592        arginca="-chimie INCA" 
     
    605610    # Find executable suffix 
    606611    suffix=_${resol_atm}_phylmd 
    607     if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
     612    suffix=${suffix}_${rad}  
    608613    if [ $parallel == seq ] || [ $parallel == none ] ; then 
    609614        suffix=${suffix}_seq_orch_inca.e 
     
    642647    # Find executable suffix 
    643648    suffix=_${resol_atm}_phylmd 
    644     if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
     649    suffix=${suffix}_${rad}  
    645650    if [ $parallel == seq ] || [ $parallel == none ] ; then 
    646651        suffix=${suffix}_seq_orch.e 
Note: See TracChangeset for help on using the changeset viewer.