Changeset 143 for trunk/MESOSCALE/LMD_MM_MARS
- Timestamp:
- Jun 1, 2011, 12:25:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_quarter_ss.F
r138 r143 127 127 !!MARS 128 128 REAL :: lon_input, lat_input, alt_input, tsurf_input 129 INTEGER :: ierr 129 130 !!MARS 130 131 … … 176 177 177 178 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 178 !!MARS : mountain 179 !!MARS : mountain ex. hm = 2000. xa = 6.0 180 open(unit=22,file='ze_hill',form='formatted',status='old') 181 rewind(22) 182 read(22,*) hm, xa 183 write(6,*) 'height, width ', hm, xa 184 close(22) 179 !!MARS : NOFILE === no mountain 180 !!MARS : FILE xa=0. === a linear slope with elevation hm 181 !!MARS : FILE === mountain height hm, width xa 182 open(unit=22,file='ze_hill',form='formatted',status='old',iostat=ierr) 183 IF (ierr .eq. 0) THEN 184 rewind(22) 185 read(22,*) hm, xa 186 write(6,*) 'hm, xa ', hm, xa 187 close(22) 188 ENDIF 185 189 !!MARS 186 190 !!MARS … … 390 394 DO i=its,ite 391 395 !!MARS 392 grid%ht(i,j) = alt_input 393 ! flat surface 394 !! grid%ht(i,j) = 0. 396 IF (ierr .eq. 0) THEN 397 write(6,*) ' IDEALIZED TOPOGRAPHY ' 398 IF (xa .ne. 0.) THEN 399 !!!2D hill 400 !grid%ht(i,j) = alt_input + hm/(1.+(float(i-icm)/xa)**2) 395 401 ! grid%ht(i,j) = hm1*exp(-(( float(i-icm)/xa1)**2)) & 396 402 ! *( (cos(pii*float(i-icm)/xal1))**2 ) 397 !****Mars 398 !!3D hill 399 ! grid%ht(i,j) = hm/(1.+(float(i-icm)/xa)**2+(float(j-jcm)/xa)**2) 400 401 !!!2D hill 402 !grid%ht(i,j) = alt_input + hm/(1.+(float(i-icm)/xa)**2) 403 404 !!3D hill 405 grid%ht(i,j) = alt_input + hm/(1.+(float(i-icm)/xa)**2+(float(j-jcm)/xa)**2) 406 407 !!!simple slope 408 !grid%ht(i,j) = alt_input - hm * float(i) 409 410 403 write(6,*) '3D hill or crater ' 404 write(6,*) 'height, width ',hm,xa 405 grid%ht(i,j) = alt_input + hm/(1.+(float(i-icm)/xa)**2+(float(j-jcm)/xa)**2) 406 ELSE 407 write(6,*) 'linear slope ' 408 write(6,*) 'height ',hm 409 grid%ht(i,j) = alt_input + hm * float(i) 410 ENDIF 411 411 !!!3D crater 412 412 !! grid%ht(i,j) = hm - hm/(1.+(float(i-icm)/xa)**2+(float(j-jcm)/xa)**2) … … 425 425 ! !grid%ht(i,j) = grid%ht(i,j) + alt_input 426 426 ! !if (rho_param .GE. dilat*10) ht(i,j) = hm 427 427 ELSE 428 write(6,*) ' FLAT SURFACE ' 429 grid%ht(i,j) = alt_input 430 !grid%ht(i,j) = 0. 431 ENDIF 428 432 grid%tsk(i,j) = tsurf_input 429 433 !!MARS
Note: See TracChangeset
for help on using the changeset viewer.