source: PSPA/parmelaPSPA/trunk/interv.f @ 418

Last change on this file since 418 was 12, checked in by lemeur, 12 years ago

parmela pspa initial

File size: 633 bytes
Line 
1      subroutine interv (x,n,y,i)
2c---find the interval in the motonically increasing table
3c---of n elements starting in x(1) in which y is located.
4c---i is the index of the lower element of the table.
5c------------------------------------------------------------------------
6c
7      include 'ucom.h'
8c
9      dimension x(n)
10c-----------------------------------------------------------------------
11c*
12      m=1
13      if (n.lt.2) go to 20
14      do 10 j=2,n
15      if (y.le.x(j)) go to 20
16      m=j
17  10  continue
18  20  continue
19      i=m
20      return
21      end
22c++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*
Note: See TracBrowser for help on using the repository browser.