1
subroutine srcom (rsav, isav, job)
2
c-----------------------------------------------------------------------
3
c this routine saves or restores (depending on job) the contents of
4
c the common blocks ls0001 and eh0001, which are used internally
5
c by one or more odepack solvers.
7
c rsav = real array of length 218 or more.
8
c isav = integer array of length 41 or more.
9
c job = flag indicating to save or restore the common blocks..
10
c job = 1 if common is to be saved (written to rsav/isav)
11
c job = 2 if common is to be restored (read from rsav/isav)
12
c a call with job = 2 presumes a prior call with job = 1.
13
c-----------------------------------------------------------------------
16
integer i, lenils, lenrls
17
double precision rsav, rls
18
dimension rsav(1), isav(1)
19
common /ls0001/ rls(218), ils(39)
20
common /eh0001/ ieh(2)
21
data lenrls/218/, lenils/39/
23
if (job .eq. 2) go to 100
29
isav(lenils+1) = ieh(1)
30
isav(lenils+2) = ieh(2)
38
ieh(1) = isav(lenils+1)
39
ieh(2) = isav(lenils+2)
41
c----------------------- end of subroutine srcom -----------------------