Ignore:
Timestamp:
Oct 2, 2011, 5:10:54 PM (13 years ago)
Author:
emillour
Message:

Mars GCM utilities: Minor fix on extract (entering a blank line in interactive mode to signal end of list now works as expected).
EM

File:
1 edited

Legend:

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

    r293 r312  
    3737character(len=256) :: outfile
    3838
    39 character (len=64) :: text ! to store some text
     39character (len=256) :: text ! to store some text
    4040character (len=64) :: varname ! to store the name of the variable to retreive
    4141
     
    339339do
    340340  ! 2.1 read coordinates and do some sanity checks
     341  text="" !initialize text to empty string
     342  read(*,'(a)') text ! store input as text (to spot empty input line)
     343  if (len_trim(adjustl(text)).eq.0) exit
     344 
    341345  if (extract_mode==1) then
    342     read(*,*,iostat=status) lon,lat,alt,Ls,LT
     346    read(text,*,iostat=status) lon,lat,alt,Ls,LT
    343347    ! Ls in degrees, LT (local true solar time) in hours, i.e.  in [0:24]
    344348  else ! extract_mode==2 , read alt only
    345     read(*,*,iostat=status) alt
     349    read(text,*,iostat=status) alt
    346350  endif
    347351  if (status.ne.0) exit
     
    612616
    613617end subroutine extraction
     618
    614619!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    615620subroutine ls2sol(ls,sol)
     
    653658
    654659end subroutine ls2sol
     660
Note: See TracChangeset for help on using the changeset viewer.