Changeset 6427 for CONFIG


Ignore:
Timestamp:
04/24/23 16:27:40 (14 months ago)
Author:
acosce
Message:

update compile_lmdzorinca.sh, remove tests done on svn lmdz version. Now we always are using a version with ecrad

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/LMDZORINCA_v6.2/compile_lmdzorinca.sh

    r6307 r6427  
    178178    echo " Personal module list before sourcing of ARCH/arch.env file:"    >> $outfile   
    179179    module list   >> $outfile 2>&1  
    180     # Get initial svn version 
    181     svn_version=$(module list -t | grep subversion) 
    182180     
    183181    # Make a link to this file, to be used also in config.card 
     
    187185    # Source the file 
    188186    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 
    193187 
    194188    echo >> $outfile  
     
    282276    echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm_3d}"   >> $outfile  
    283277 
    284     # Retrieve the final svn release number, needed for radiative code suffix of executable 
    285     lmdzsvn=`svnversion . | egrep -o "[0-9]+"  | awk 'NR==1'` 
    286     echo >> $outfile ; echo "lmdzsvn= $lmdzsvn "   >> $outfile 
    287278 
    288279    # Check if the compilation of LMDZ was previsouly interupted prematured.  
     
    302293    case $rad in 
    303294        oldrad) opt_rad="" ;; 
    304         rrtm)   if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;; 
     295        rrtm)   opt_rad="-rad rrtm" ;; 
    305296        ecrad)  opt_rad="-rad ecrad" ;; 
    306297        *) echo Only oldrad rrtm ecrad for rad option ; exit 
    307298    esac 
    308  
    309     if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi 
    310  
    311  
    312299 
    313300 
     
    322309 
    323310    suffix=_${resol_atm_3d}_phylmd 
    324     if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 
     311    suffix=${suffix}_${rad}  
    325312 
    326313    # Find executable suffix 
Note: See TracChangeset for help on using the changeset viewer.