Subversion Repositories lagranto.ecmwf

Rev

Rev 15 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 19
Line 17... Line 17...
17
      
17
      
18
c     Maximum number of commands
18
c     Maximum number of commands
19
      integer          maxcmd
19
      integer          maxcmd
20
      parameter        (maxcmd=10000)
20
      parameter        (maxcmd=10000)
21
 
21
 
22
c     -------------------------------------------------------------- 
22
c     -------------------------------------------------------------
23
c     Declaration of variables
23
c     Declaration of variables
24
c     --------------------------------------------------------------
24
c     --------------------------------------------------------------
25
 
25
 
26
c     Input and output files
26
c     Input and output files
27
      character*120     inp_lslfile                  ! Input lsl file
27
      character*120     inp_lslfile                  ! Input lsl file
Line 871... Line 871...
871
                    j2=j
871
                    j2=j
872
                 endif
872
                 endif
873
              enddo   
873
              enddo   
874
              if ( (j1.eq.0).or.(j2.eq.0) ) goto 400
874
              if ( (j1.eq.0).or.(j2.eq.0) ) goto 400
875
              do j=j1,j2
875
              do j=j1,j2
876
                 flag(j)=1
876
                 flag(j)=i
877
              enddo
877
              enddo
878
              i=i+1
878
              i=i+1
879
 
879
 
880
c          Explicitly given time value
880
c          Explicitly given time value
881
           else
881
           else
882
              do j=1,ntimes
882
              do j=1,ntimes
883
                 if ( abs(tim(i)-times(j)).lt.eps ) then
883
                 if ( abs(tim(i)-times(j)).lt.eps ) then
884
                    flag(j)=1
884
                    flag(j)=i
885
                 endif
885
                 endif
886
              enddo
886
              enddo
887
              
887
              
888
           endif
888
           endif
889
 
889
 
Line 1024... Line 1024...
1024
 
1024
 
1025
c       A selection of times is given 
1025
c       A selection of times is given 
1026
        else
1026
        else
1027
           count=0
1027
           count=0
1028
           do i=1,ntimes
1028
           do i=1,ntimes
-
 
1029
              if ( flag(i).ne.0 ) then
1029
              count=count+flag(i)
1030
                 count=count+1
-
 
1031
              endif
1030
           enddo
1032
           enddo
1031
           n=n+1
1033
           n=n+1
1032
           out(n)=real(count)
1034
           out(n)=real(count)
-
 
1035
           do i=1,count
1033
           do i=1,ntimes
1036
             do j=1,ntimes
1034
              if (flag(i).eq.1) then
1037
               if (flag(j).eq.i) then
1035
                 n=n+1
1038
                 n      = n + 1
1036
                 out(n)=real(i)
1039
                 out(n) = real(j)
1037
              endif
1040
               endif
-
 
1041
             enddo
1038
           enddo
1042
           enddo
-
 
1043
 
1039
        endif
1044
        endif
1040
 
1045
 
1041
c       Write the time mode
1046
c       Write the time mode
1042
        if ( tmode.eq.'ALL') then
1047
        if ( tmode.eq.'ALL') then
1043
           n=n+1
1048
           n=n+1