~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to routines/integ/svcar1.f

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
C/MEMBR ADD NAME=SVCAR1,SSI=0
 
2
       subroutine svcar1 (rsav, isav)
 
3
c%purpose
 
4
c this routine restores from rsav and isav the contents of common
 
5
c blocks ls0001, lsa001, and eh0001, which are used internally in the
 
6
c lsodar package.  this presumes that rsav and isav were loaded by means
 
7
c of subroutine svcma or the equivalent.
 
8
c!
 
9
      double precision isav
 
10
      integer ieh, ils, ilsa
 
11
      integer i, lenrls, lenils, lenrla, lenila
 
12
      double precision rsav
 
13
      double precision rls, rlsa,rlsr
 
14
      dimension rsav(*), isav(*)
 
15
      common /ls0001/ rls(219), ils(39)
 
16
      common /lsa001/ rlsa(22), ilsa(9)
 
17
      common /lsr001/ rlsr(5),ilsr(9)
 
18
      common /eh0001/ ieh(2)
 
19
      data lenrls/219/, lenils/39/, lenrla/22/, lenila/9/
 
20
      data lenrlr/5/,lenilr/9/
 
21
c
 
22
      l=1
 
23
      call dcopy(lenrls,rls,1,rsav(l),1)
 
24
      l=l+lenrls
 
25
      call dcopy(lenrla,rlsa,1,rsav(l),1)
 
26
      l=l+lenrla
 
27
      call dcopy(lenrlr,rlsr,1,rsav(l),1)
 
28
c
 
29
      l=0
 
30
      do 20 i = 1,lenils
 
31
        isav(l+i) =ils(i) 
 
32
 20   continue
 
33
      l=l+lenils
 
34
      do 25 i = 1,lenila
 
35
         isav(l+i)=ilsa(i)
 
36
 25   continue
 
37
      l=l+lenila
 
38
      do 26 i=1,lenilr
 
39
         isav(l+i)=ilsr(i)
 
40
 26   continue
 
41
      l=l+lenilr
 
42
c
 
43
      isav(l+1)=ieh(1)
 
44
      isav(l+2)=ieh(2)
 
45
      return
 
46
      end