- Timestamp:
- Jun 8, 2011, 6:01:00 PM (13 years ago)
- Location:
- trunk/MESOSCALE/LMD_MM_MARS
- Files:
-
- 2 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 -
trunk/MESOSCALE/LMD_MM_MARS/makemeso
r147 r153 248 248 fi 249 249 fi 250 if [[ "${phys}" == "newphys_" ]] 251 then 252 echo "How many scatterers are you using : 1,2,..." ; read scat 253 else 254 scat=1 ## dummy stuff 255 fi 256 250 257 # summary 251 258 echo '**********************' … … 268 275 echo ' '${dom} domains 269 276 echo ' '${tra} tracers 277 if [[ "${phys}" == "newphys_" ]] 278 then 279 echo ' '${scat} scatterers 280 fi 270 281 echo '****************************************' 271 282 # save answer … … 283 294 echo ${tra} >> last 284 295 echo ${answer} >> last 296 echo ${scat} >> last 285 297 286 298 #------------ … … 547 559 touch gr_fi_dyn.F.lien 548 560 ln -sf ../dyn3d/gr_fi_dyn.F . ## dommage, a corriger ## attention idem 561 ############################### 562 ############################### 563 \rm scatterers.h 564 cat << EOF > scatterers.h 565 !----------------------------------------------------------------------- 566 ! INCLUDE 'scatterers.h' 567 ! 568 ! Number of kind of tracer radiative properties 569 ! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 570 ! (ex: naerkind=1 if you use one dust mode without ice ...) 571 ! (ex: naerkind=2 if you use one dust mode and active ice ...) 572 !----------------------------------------------------------------------- 573 574 integer, parameter :: naerkind=${scat} 575 576 !----------------------------------------------------------------------- 577 EOF 578 ############################### 579 ############################### 549 580 fi 550 581 ### … … 600 631 # save a copy 601 632 #-------------- 602 cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra} 633 cp -f libo/liblmd.a libo/liblmd.a_${lon}_${lat}_${level}_${dom}_${tra}_${scat} 603 634 echo '****************************************' 604 635 … … 655 686 echo 'Looks good ! wrf.exe is here...' 656 687 fi 657 cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe658 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe688 cp -f real.exe ../../real_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 689 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 659 690 cd .. ;; 660 691 'ideal') #mkdir 'test/em_quarter_ss' 2> /dev/null … … 671 702 echo 'Looks good ! wrf.exe is here...' 672 703 fi 673 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe674 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe704 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 705 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 675 706 cd .. ;; 676 707 'les') echo '>>> YOUR CONFIG IS : '${config} … … 687 718 echo 'Looks good ! wrf.exe is here...' 688 719 fi 689 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe690 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} .exe720 cp -f ideal.exe ../../ideal_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 721 cp -f wrf.exe ../../wrf_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat}.exe 691 722 cd .. ;; 692 723 *) echo not supported... please use ; echo ideal les ; exit ;; … … 700 731 echo 'done.' 701 732 echo '****************************************' 702 cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc} 733 cp last ../makemeso_x${lon}_y${lat}_z${level}_d${dom}_t${tra}_p${numproc}_s${scat} 703 734 mv last ../../ 704 735
Note: See TracChangeset
for help on using the changeset viewer.