Ignore:
Timestamp:
Jun 1, 2011, 12:25:21 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: modifications dans module_initialize_quarter_ss.F pour que la presence/absence de ze_hill et son contenu controle la topographie dans les simulations idealisees (plate, pente +/-, montagne, cratere) sans qu'il ne soit donc desormais necessaire de recompiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/dyn_em/module_initialize_quarter_ss.F

    r138 r143  
    127127!!MARS
    128128 REAL :: lon_input, lat_input, alt_input, tsurf_input
     129 INTEGER :: ierr
    129130!!MARS
    130131
     
    176177
    177178!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    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
    185189!!MARS
    186190!!MARS
     
    390394  DO i=its,ite
    391395!!MARS
    392     grid%ht(i,j) = alt_input
    393       ! flat surface
    394       !!    grid%ht(i,j) = 0.
     396IF (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)
    395401      !    grid%ht(i,j) = hm1*exp(-(( float(i-icm)/xa1)**2))   &
    396402      !               *( (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
    411411      !!!3D crater   
    412412      !!        grid%ht(i,j) = hm - hm/(1.+(float(i-icm)/xa)**2+(float(j-jcm)/xa)**2)
     
    425425      !           !grid%ht(i,j) = grid%ht(i,j) + alt_input 
    426426      !   !if (rho_param .GE. dilat*10) ht(i,j) = hm
    427 
     427ELSE
     428    write(6,*) ' FLAT SURFACE '
     429    grid%ht(i,j) = alt_input
     430    !grid%ht(i,j) = 0.
     431ENDIF
    428432    grid%tsk(i,j) = tsurf_input
    429433!!MARS
Note: See TracChangeset for help on using the changeset viewer.