~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to scipy/sandbox/spline/fitpack/fpseno.f

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
      subroutine fpseno(maxtr,up,left,right,info,merk,ibind,nbind)
 
2
c  subroutine fpseno fetches a branch of a triply linked tree the
 
3
c  information of which is kept in the arrays up,left,right and info.
 
4
c  the branch has a specified length nbind and is determined by the
 
5
c  parameter merk which points to its terminal node. the information
 
6
c  field of the nodes of this branch is stored in the array ibind. on
 
7
c  exit merk points to a new branch of length nbind or takes the value
 
8
c  1 if no such branch was found.
 
9
c  ..
 
10
c  ..scalar arguments..
 
11
      integer maxtr,merk,nbind
 
12
c  ..array arguments..
 
13
      integer up(maxtr),left(maxtr),right(maxtr),info(maxtr),
 
14
     * ibind(nbind)
 
15
c  ..scalar arguments..
 
16
      integer i,j,k
 
17
c  ..
 
18
      k = merk
 
19
      j = nbind
 
20
      do 10 i=1,nbind
 
21
        ibind(j) = info(k)
 
22
        k = up(k)
 
23
        j = j-1
 
24
  10  continue
 
25
  20  k = right(merk)
 
26
      if(k.ne.0) go to 30
 
27
      merk = up(merk)
 
28
      if (merk.le.1) go to 40
 
29
      go to 20
 
30
  30  merk = k
 
31
      k = left(merk)
 
32
      if(k.ne.0) go to 30
 
33
  40  return
 
34
      end