Changeset 242 for trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
- Timestamp:
- Jul 25, 2011, 12:24:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/runmeso
r236 r242 48 48 echo '**** LMD Martian Mesoscale Model launcher ****' 49 49 echo '**********************************************' 50 #echo '** Hello '$(whoami)' on '$(hostname)' !'51 #echo '** ['$(uname -a)']'52 50 echo '** User >>> '$(whoami) 53 51 echo '** Hostname >>> '$(hostname) … … 146 144 dx="$(more ${simu_folder}/namelist.input | grep -e '[^!]*dx *=' | awk '{print $3}' | sed s+','+''+g)" 147 145 dy="$(more ${simu_folder}/namelist.input | grep -e '[^!]*dy *=' | awk '{print $3}' | sed s+','+''+g)" 148 149 146 150 147 # … … 201 198 echo '** Horizontal resolution >>> '${dx} 202 199 203 #echo "OK ? ('no' to exit, any key if OK)" ; read wellok204 # if [[ "${wellok}" = "no" ]]205 # then206 # exit207 # fi208 209 200 ########### 210 201 # ACTIONS # … … 324 315 echo 'Please define the domain (not for nests for the moment) : ' 325 316 echo " - 1/4 Projection: polar lambert mercator ? previous is "${proj} ; read proj 326 echo " - 2/4 Data source (multiple if nests): 'gcm' '32ppd' '64ppd' '64ppd_noHRti' '32ppd_HRalb'? previous is "${data_source} ; read data_source317 echo " - 2/4 Data source (multiple if nests): gcm 32ppd 64ppd 64ppd_noHRti 32ppd_HRalb ? previous is "${data_source} ; read data_source 327 318 echo " - 3/4 North Latitude of domain centre ? previous is "${lat} ; read lat 328 319 echo " - 4/4 East Longitude of domain centre ? previous is "${lon} ; read lon … … 330 321 sed s+"__INTERVAL_SECONDS__"+"${interval_seconds}"+g ${meso_folder}/SIMU/namelist.wps | sed s+"__MAX_DOM__"+"${max_dom}"+g | sed s+"__PARENT_ID__"+"${parent_id}"+g | sed s+"__PARENT_GRID_RATIO__"+"${parent_grid_ratio}"+g | sed s+"__I_PARENT_START__"+"${i_parent_start}"+g | sed s+"__J_PARENT_START__"+"${j_parent_start}"+g | sed s+"__E_WE__"+"${e_we}"+g | sed s+"__E_SN__"+"${e_sn}"+g | sed s+"__DX__"+"${dx}"+g | sed s+"__DY__"+"${dy}"+g | sed s+"__PROJ__"+"${proj}"+g | sed s+"__DATA_SOURCE__"+"${data_source}"+g | sed s+"__LAT__"+"${lat}"+g | sed s+"__LON__"+"${lon}"+g | sed s+'0000-00-00_00:00:00'+${year}'-'${month}'-'${day}'_'${hour}':00:00'+g | sed s+'1111-11-11_11:11:11'+${eyear}'-'${emonth}'-'${eday}'_'${ehour}':00:00'+g > ${simu_folder}/namelist.wps 331 322 #### 323 if [[ ${nest} -gt 1 ]] 324 then 325 echo '**********************************************' 326 echo "USEFUL RULES for NESTS :" 327 echo "* parent_grid_ratio divides (e_we-s_we+1)" 328 echo "* nproc divides e_we-1" 329 echo "* nproc divides e_we-1" 330 fi 331 if [[ ${nest} -ge 4 ]] 332 then 333 echo more than 3 nests, not supported 334 echo please edit the namelist.wps template in WPS to allow this 335 exit 336 fi 337 #### 332 338 ln -sf ${simu_folder}/namelist.wps ${work_folder}/WPS/namelist.wps 333 #vi ${work_folder}/WPS/namelist.wps334 339 echo '**********************************************' 335 340 echo OK, thank you. Please wait... ncview will pop up soon ! 336 341 cd ${work_folder}/WPS/ 337 342 \rm geo_em.d0*.nc 2> /dev/null 338 ./geogrid.exe > /dev/null 2> /dev/null343 ./geogrid.exe #> /dev/null 2> /dev/null 339 344 ncview geo_em.d01.nc > /dev/null 2> /dev/null & 340 345 if [[ -f "geo_em.d02.nc" ]]
Note: See TracChangeset
for help on using the changeset viewer.