Changeset 312 for trunk/LMDZ.MARS/util/extract.F90
- Timestamp:
- Oct 2, 2011, 5:10:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/util/extract.F90
r293 r312 37 37 character(len=256) :: outfile 38 38 39 character (len= 64) :: text ! to store some text39 character (len=256) :: text ! to store some text 40 40 character (len=64) :: varname ! to store the name of the variable to retreive 41 41 … … 339 339 do 340 340 ! 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 341 345 if (extract_mode==1) then 342 read( *,*,iostat=status) lon,lat,alt,Ls,LT346 read(text,*,iostat=status) lon,lat,alt,Ls,LT 343 347 ! Ls in degrees, LT (local true solar time) in hours, i.e. in [0:24] 344 348 else ! extract_mode==2 , read alt only 345 read( *,*,iostat=status) alt349 read(text,*,iostat=status) alt 346 350 endif 347 351 if (status.ne.0) exit … … 612 616 613 617 end subroutine extraction 618 614 619 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 615 620 subroutine ls2sol(ls,sol) … … 653 658 654 659 end subroutine ls2sol 660
Note: See TracChangeset
for help on using the changeset viewer.