- Timestamp:
- Jul 8, 2022, 4:33:06 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r4111 r4196 114 114 opt_makelmdz_xios="" 115 115 116 ## compile with old /rrtm/ecrad radiatif code (Default=rrtm)116 ## compile with oldrad/rrtm/ecrad radiatif code (Default=rrtm) 117 117 rad=rrtm 118 118 … … 174 174 -cosp to run without our with cospv1 or cospv2 [none/v1/v2] 175 175 176 -rad RADIATIF can be old , rrtm or ecrad radiatif code176 -rad RADIATIF can be oldrad, rrtm or ecrad radiatif code 177 177 178 178 -nofcm to compile without fcm … … 209 209 "-SCM") SCM=1 ; shift ;; 210 210 "-opt_makelmdz") OPT_MAKELMDZ="$2" ; shift ; shift ;; 211 "-rrtm") rrtm="$2" ; if [ "$2" = "false" ] ; then rad="oldrad" ; else rad="rrtm" ; fi ; shift ; shift ;; 211 212 "-rad") rad=$2 212 213 case $rad in 213 "old "|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;;214 *) echo Only old rrtm ecrad for rad option ; exit214 "oldrad"|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;; 215 *) echo Only oldrad rrtm ecrad for rad option ; exit 215 216 esac ;; 216 217 "-parallel") parallel=$2 … … 231 232 done 232 233 233 # Option de compilation du rayonnement 234 opt_rad=""235 case $rad in236 rrtm) opt_rad="-rad rrtm" ;;237 ecrad) opt_rad="-rad ecrad" ;;238 esac234 # 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 239 240 240 241 … … 928 929 set -e 929 930 931 ################################################################## 932 # Retrieve the final svn release number, and adjust compilation options accordingly 933 mysvn=`svnversion . | egrep -o "[0-9]+"` 934 935 # Option de compilation du rayonnement : depend de $mysvn ><= r4185 936 opt_rad="" 937 case $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" ;; 940 esac 941 942 if [ $mysvn -le 4185 -a $rad -eq "ecrad" ] ; then echo "ecrad only available for LMDZ rev >4185 " ; exit ; fi 943 944 ################################################################## 945 930 946 echo '##################################################################' 931 947 echo "Preparing script compile.sh for LMDZ compilation" … … 1040 1056 1041 1057 # Recherche de l'executable dont le nom a change au fil du temps ... 1058 # suffix contains radiative option starting with revision 4186 1059 if [ $mysvn -ge 4186 ] ; then suff_exe=_${rad}${suff_exe} ; fi 1042 1060 gcm="" 1043 1061 #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.