2 SUBROUTINE DSRCMS
(RSAV
, ISAV
, JOB
)
3 C-----------------------------------------------------------------------
4 C This routine saves or restores (depending on JOB) the contents of
5 C the Common blocks DLS001, DLSS01, which are used
6 C internally by one or more ODEPACK solvers.
8 C RSAV = real array of length 224 or more.
9 C ISAV = integer array of length 71 or more.
10 C JOB = flag indicating to save or restore the Common blocks:
11 C JOB = 1 if Common is to be saved (written to RSAV/ISAV)
12 C JOB = 2 if Common is to be restored (read from RSAV/ISAV)
13 C A call with JOB = 2 presumes a prior call with JOB = 1.
14 C-----------------------------------------------------------------------
17 INTEGER I
, LENILS
, LENISS
, LENRLS
, LENRSS
18 DOUBLE PRECISION RSAV
, RLS
, RLSS
19 DIMENSION RSAV
(*), ISAV
(*)
20 SAVE LENRLS
, LENILS
, LENRSS
, LENISS
21 COMMON /DLS001
/ RLS
(218), ILS
(37)
22 COMMON /DLSS01
/ RLSS
(6), ILSS
(34)
23 DATA LENRLS
/218/, LENILS
/37/, LENRSS
/6/, LENISS
/34/
25 IF (JOB
.EQ
. 2) GO TO 100
29 15 RSAV
(LENRLS
+I
) = RLSS
(I
)
34 25 ISAV
(LENILS
+I
) = ILSS
(I
)
42 115 RLSS
(I
) = RSAV
(LENRLS
+I
)
47 125 ILSS
(I
) = ISAV
(LENILS
+I
)
50 C----------------------- End of Subroutine DSRCMS ----------------------