Changeset 4196


Ignore:
Timestamp:
Jul 8, 2022, 4:33:06 PM (2 years ago)
Author:
Laurent Fairhead
Message:

Modifications needed as the radiation option used is now part of the suffix
used in naming the object libraries and the executable
AS/FH/LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r4111 r4196  
    114114opt_makelmdz_xios=""
    115115
    116 ## compile with old/rrtm/ecrad radiatif code (Default=rrtm)
     116## compile with oldrad/rrtm/ecrad radiatif code (Default=rrtm)
    117117rad=rrtm
    118118
     
    174174    -cosp      to run without our with cospv1 or cospv2 [none/v1/v2]
    175175 
    176     -rad RADIATIF can be old, rrtm or ecrad radiatif code
     176    -rad RADIATIF can be oldrad, rrtm or ecrad radiatif code
    177177
    178178    -nofcm     to compile without fcm
     
    209209     "-SCM") SCM=1 ; shift ;;
    210210     "-opt_makelmdz") OPT_MAKELMDZ="$2" ; shift ; shift ;;
     211     "-rrtm") rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;;
    211212     "-rad") rad=$2
    212213             case $rad in
    213                 "old"|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;;
    214                 *) echo Only old rrtm ecrad for rad option ; exit
     214                "oldrad"|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;;
     215                *) echo Only oldrad rrtm ecrad for rad option ; exit
    215216             esac ;;
    216217     "-parallel") parallel=$2
     
    231232done
    232233
    233 # Option de compilation du rayonnement
    234 opt_rad=""
    235 case $rad in
    236    rrtm) opt_rad="-rad rrtm" ;;
    237    ecrad) opt_rad="-rad ecrad" ;;
    238 esac
     234# Option de compilation du rayonnement : depend de $mysvn ><= r4185, sera donc definie plus bas
     235#opt_rad=""
     236#case $rad in
     237#   rrtm) opt_rad="-rad rrtm" ;;
     238#   ecrad) opt_rad="-rad ecrad" ;;
     239#esac
    239240
    240241
     
    928929set -e
    929930
     931##################################################################
     932# Retrieve the final svn release number, and adjust compilation options accordingly
     933mysvn=`svnversion . | egrep -o "[0-9]+"`
     934
     935# Option de compilation du rayonnement : depend de $mysvn ><= r4185
     936opt_rad=""
     937case $rad in
     938   rrtm) if [ $mysvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;;
     939   ecrad) opt_rad="-rad ecrad" ;;
     940esac
     941
     942if [ $mysvn -le 4185 -a $rad -eq "ecrad" ] ; then echo "ecrad only available for LMDZ rev >4185 " ; exit ; fi
     943
     944##################################################################
     945
    930946echo '##################################################################'
    931947echo "Preparing script compile.sh for LMDZ compilation"
     
    10401056
    10411057# Recherche de l'executable dont le nom a change au fil du temps ...
     1058# suffix contains radiative option starting with revision 4186
     1059if [ $mysvn -ge 4186 ] ; then suff_exe=_${rad}${suff_exe} ; fi
    10421060gcm=""
    10431061#for exe in gcm.e bin/gcm_${grid_resolution}_phylmd_seq_orch.e bin/gcm_${grid_resolution}_phylmd_seq.e bin/gcm_${grid_resolution}_phylmd_para_mem_orch.e bin/gcm_${grid_resolution}_phylmd_para_mem.e  ; do
Note: See TracChangeset for help on using the changeset viewer.