Changeset 153 for trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
- Timestamp:
- Jun 8, 2011, 6:01:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
r138 r153 27 27 28 28 scenario="" 29 #scenario="storm"29 scenario="storm" 30 30 31 31 if [[ "${LMDMOD}" = "" ]] … … 167 167 exit 168 168 fi 169 tracers=$(more ${simu_folder}/namelist.input | grep mars | awk '{print $3}' | sed s+','+''+g)170 case ${ tracers} in169 mars_scenario=$(more ${simu_folder}/namelist.input | grep mars | awk '{print $3}' | sed s+','+''+g) 170 case ${mars_scenario} in 171 171 0) tracers='1' ;; 172 172 1) tracers='2' ;; … … 178 178 echo '** Domain(s) >>> '${nest} 179 179 echo '** Tracer(s) >>> '${tracers} 180 181 ############ SCATTERERS SCATTERERS ###### 182 if [[ ${newphys} -eq 1 ]] 183 then 184 #### CHANGE THIS IF YOU ADD NEW SCENARIOS 185 case ${mars_scenario} in 186 0) scat=1 ;; 187 1) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;; 188 2) scat=1 ;; 189 3) scat=1 ;; 190 11) echo "!! How many scatterers are you using : 1,2,..." ; read scat ;; 191 20) scat=1 ;; 192 *) scat=1 ;; 193 esac 194 echo '** Scatterers >>> '${scat} 195 else 196 #### USELESS here BUT COMPATIBILITY 197 scat=1 198 fi 199 ######################################### 200 180 201 echo '** Grid points >>> '${nx}" x "${ny}" x "${nz} 181 202 echo '** Horizontal resolution >>> '${dx} 203 182 204 #echo "OK ? ('no' to exit, any key if OK)" ; read wellok 183 205 # if [[ "${wellok}" = "no" ]] … … 326 348 cd ${simu_folder} 327 349 ## corresponding executables 328 wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc} .exe329 realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc} .exe350 wrfexe=${work_folder}/wrf_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe 351 realexe=${work_folder}/real_x${nx}_y${ny}_z${nz}_d${nest}_t${tracers}_p${numproc}_s${scat}.exe 330 352 if [[ -f ${wrfexe} ]] 331 353 then … … 360 382 echo ${nest} >> ${simu_folder}/makemeso_input 361 383 echo ${tracers} >> ${simu_folder}/makemeso_input 362 #echo 'y' >> ${simu_folder}/makemeso_input 384 if [[ ${newphys} -eq 1 ]] 385 then 386 echo 'n' >> ${simu_folder}/makemeso_input 387 echo ${scat} >> ${simu_folder}/makemeso_input 388 fi 363 389 # 364 390 # COMPILE THE MODEL
Note: See TracChangeset
for help on using the changeset viewer.