Ignore:
Timestamp:
Sep 11, 2012, 3:50:51 PM (12 years ago)
Author:
emillour
Message:

Mars GCM utilities:
Bug correction (for the "above local surface", ie ztype==3, case) in zrecast utility.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/util/zrecast.F90

    r632 r777  
    565565  ! ask for # of points and end values for pressure or above areoid cases
    566566  write(*,*) ""
    567   if ((ztype.le.2).or.(ztype.le.4)) then
     567  if ((ztype.le.2).or.(ztype.ge.4)) then
    568568    write(*,*) "Enter min and max of vertical coordinate (Pa or m)"
    569569    write(*,*) " (in that order and on the same line)"
     
    573573      read(*,*) zamin,zamax
    574574    endif
    575   endif ! of if ((ztype.le.2).or.(ztype.le.4))
     575  endif ! of if ((ztype.le.2).or.(ztype.ge.4))
    576576
    577577  ! Build corresponding vertical coordinates
     
    668668      read(*,*) zareoid(i)
    669669    enddo
    670   else if (ztype.eq.2) then ! above local surface
     670  else if (ztype.eq.3) then ! above local surface
    671671    allocate(zsurface(nblev),stat=ierr)
    672672    if (ierr.ne.0) then
Note: See TracChangeset for help on using the changeset viewer.