- Timestamp:
- Jun 15, 2021, 4:00:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3922 r3943 106 106 opt_makelmdz_xios="" 107 107 108 ## compile with old/rrtm/ecrad radiatif code (Default=rrtm) 109 rad=rrtm 110 108 111 ## compile_with_fcm=1 : use makelmdz_fcm (1) or makelmdz (0) 109 112 compile_with_fcm=1 … … 132 135 $0 [ -v version ] [ -r svn_release ] 133 136 [ -parallel PARA ] [ -d GRID_RESOLUTION ] [ -bench 0/1 ] 134 [-name LOCAL_MODEL_NAME] [-gprof] [-opt_makelmdz] 137 [-name LOCAL_MODEL_NAME] [-gprof] [-opt_makelmdz] [-rad RADIATIF] 135 138 136 139 -v "version" like 20150828.trunk … … 166 169 167 170 -cospv2 to compile with cosp(v2) 171 172 -rad RADIATIF : can be old, rrtm or ecrad radiatif code 168 173 169 174 -nofcm to compile without fcm … … 198 203 "-SCM") SCM=1 ; shift ;; 199 204 "-opt_makelmdz") OPT_MAKELMDZ="$2" ; shift ; shift ;; 205 "-rad") rad=$2 206 case $rad in 207 "old"|"rrtm"|"ecrad") rad=$2 ; shift ; shift ;; 208 *) echo Only old rrtm ecrad for rad option ; exit 209 esac ;; 200 210 "-parallel") parallel=$2 201 211 case $parallel in … … 214 224 esac 215 225 done 226 227 #Option de compilation en fonction du code radiatif (-rad rrtm/ecrad) 228 if [ $rad = rrtm ] ; then 229 opt_rad="-rad rrtm" 230 elif [ $rad = ecrad ] ; then 231 opt_rad="-rad ecrad" 232 else 233 opt_rad="" 234 fi 216 235 217 236 # Check on veget version … … 922 941 # sequential compilation and bench 923 942 if [ "$sequential" = 1 ] ; then 924 echo "./$makelmdz $optim $OPT_MAKELMDZ $optim -rrtm true$opt_cosp -d ${grid_resolution} -v $veget_version gcm " >> compile.sh943 echo "./$makelmdz $optim $OPT_MAKELMDZ $optim $opt_rad $opt_cosp -d ${grid_resolution} -v $veget_version gcm " >> compile.sh 925 944 chmod +x ./compile.sh 926 945 if [ $bench != 0 ] ; then ./compile.sh > $lmdzlog 2>&1 ; fi … … 991 1010 echo resol=${grid_resolution} >> compile.sh 992 1011 if [ ${hostname:0:5} = jean- -a "$cospv2" = 1 ] ; then 993 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ -rrtm true$opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh994 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ -rrtm true$opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm1012 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ $opt_rad $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh 1013 echo ./$makelmdz -dev $optim $OPT_MAKELMDZ $opt_rad $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm 995 1014 else 996 echo ./$makelmdz $optim $OPT_MAKELMDZ -rrtm true$opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh997 echo ./$makelmdz $optim $OPT_MAKELMDZ -rrtm true$opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm1015 echo ./$makelmdz $optim $OPT_MAKELMDZ $opt_rad $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh 1016 echo ./$makelmdz $optim $OPT_MAKELMDZ $opt_rad $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm 998 1017 fi 999 1018 chmod +x ./compile.sh … … 1114 1133 fi 1115 1134 1135 cd .. 1136 fi 1137 1138 # Cas Bensh avec ecrad 1139 if [ "$rad" = "ecrad" ] ; then 1140 cd BENCH${grid_resolution} 1141 cp ../DefLists/namelist_ecrad . 1142 cp -r ../libf/phylmd/ecrad/data . 1143 # Attention au cas ou ne 1 1144 sed -e 's@iflag_rrtm=1@iflag_rrtm=2@' physiq.def > tmp 1145 \mv -f tmp physiq.def 1116 1146 cd .. 1117 1147 fi … … 1207 1237 tar xvf 1D.tar.gz 1208 1238 cd 1D 1209 ./run.sh 1239 ./run.sh -rad $rad 1210 1240 fi 1211 1241 set -vx
Note: See TracChangeset
for help on using the changeset viewer.