Ignore:
Timestamp:
May 14, 2014, 11:00:12 AM (11 years ago)
Author:
emillour
Message:

zrecast utility: minor correction for the very specific "mcd" case,
no need to read in zamin and zamax.
EM

File:
1 edited

Legend:

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

    r1073 r1259  
    141141                            ! has to be computed; false if these are given
    142142                            ! by the user
    143 logical :: auto_mcd_levels ! Flag: specific case for MCD automatic above
    144                            ! local surface levels
     143logical :: auto_mcd_levels=.false. ! Flag: specific case for MCD automatic
     144                           ! above local surface levels
    145145integer,dimension(4) :: edges,corner ! needed to write variables for big files
    146146
     
    610610  elseif(trim(text).eq."no") then
    611611    auto_vert_levels=.false.
     612    auto_mcd_levels=.false.
    612613  elseif(trim(text).eq."mcd") then
    613614    auto_vert_levels=.true.
     
    618619if (auto_vert_levels) then
    619620  ! ask for # of points and end values for pressure or above areoid cases
    620   write(*,*) ""
    621   write(*,*) "Enter min and max of vertical coordinate (Pa or m)"
    622   write(*,*) " (in that order and on the same line)"
    623   if (ztype.eq.1) then ! pressure coordinate
    624     read(*,*) pmin,pmax
    625   else ! altitude coordinate
    626      read(*,*) zamin,zamax
     621  ! except in MCD case
     622  if (.not.auto_mcd_levels) then
     623    write(*,*) ""
     624    write(*,*) "Enter min and max of vertical coordinate (Pa or m)"
     625    write(*,*) " (in that order and on the same line)"
     626    if (ztype.eq.1) then ! pressure coordinate
     627      read(*,*) pmin,pmax
     628    else ! altitude coordinate, except in MCD case
     629      read(*,*) zamin,zamax
     630    endif
    627631  endif
    628632
Note: See TracChangeset for help on using the changeset viewer.