1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
3 ;;; "f2cl2.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
4 ;;; "f2cl3.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
5 ;;; "f2cl4.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
6 ;;; "f2cl5.l,v 95098eb54f13 2013/04/01 00:45:16 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 1409c1352feb 2013/03/24 20:44:50 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2013-11 (20E Unicode)
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':array)
14 ;;; (:array-slicing t) (:declare-common nil)
15 ;;; (:float-format single-float))
17 (in-package "ODEPACK")
20 (defun dainvgs (neq t$ y wk iwk tem ydot ier res adda
)
21 (declare (type (array f2cl-lib
:integer4
(*)) iwk
)
22 (type (array double-float
(*)) ydot tem wk y
)
23 (type (double-float) t$
)
24 (type (f2cl-lib:integer4
) ier neq
))
26 (symbol-macrolet ((iesp (aref (dlss01-part-1 *dlss01-common-block
*) 1))
27 (iys (aref (dlss01-part-1 *dlss01-common-block
*) 3))
28 (iba (aref (dlss01-part-1 *dlss01-common-block
*) 4))
29 (ibjan (aref (dlss01-part-1 *dlss01-common-block
*) 6))
30 (ipian (aref (dlss01-part-1 *dlss01-common-block
*) 8))
31 (ipjan (aref (dlss01-part-1 *dlss01-common-block
*) 9))
32 (ipr (aref (dlss01-part-1 *dlss01-common-block
*) 12))
33 (ipc (aref (dlss01-part-1 *dlss01-common-block
*) 13))
34 (ipic (aref (dlss01-part-1 *dlss01-common-block
*) 14))
35 (ipisp (aref (dlss01-part-1 *dlss01-common-block
*) 15))
36 (iprsp (aref (dlss01-part-1 *dlss01-common-block
*) 16))
37 (ipa (aref (dlss01-part-1 *dlss01-common-block
*) 17))
38 (nlu (aref (dlss01-part-1 *dlss01-common-block
*) 29))
39 (nnz (aref (dlss01-part-1 *dlss01-common-block
*) 30))
40 (nsp (aref (dlss01-part-1 *dlss01-common-block
*) 31)))
41 (f2cl-lib:with-multi-array-data
42 ((y double-float y-%data% y-%offset%
)
43 (wk double-float wk-%data% wk-%offset%
)
44 (tem double-float tem-%data% tem-%offset%
)
45 (ydot double-float ydot-%data% ydot-%offset%
)
46 (iwk f2cl-lib
:integer4 iwk-%data% iwk-%offset%
))
47 (prog ((kmax 0) (kmin 0) (k 0) (j 0) (imul 0) (i 0))
48 (declare (type (f2cl-lib:integer4
) i imul j k kmin kmax
))
49 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
53 (setf (f2cl-lib:fref wk-%data%
54 ((f2cl-lib:int-add iba i
))
59 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
64 (f2cl-lib:array-slice wk-%data%
71 (declare (ignore var-2 var-3 var-4
))
78 (if (> ier
1) (go end_label
))
79 (setf kmin
(f2cl-lib:fref iwk-%data%
(ipian) ((1 *)) iwk-%offset%
))
80 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
85 (f2cl-lib:fref iwk-%data%
86 ((f2cl-lib:int-add ipian j
))
90 (f2cl-lib:fdo
(k kmin
(f2cl-lib:int-add k
1))
94 (f2cl-lib:fref iwk-%data%
95 ((f2cl-lib:int-add ibjan k
))
99 (setf (f2cl-lib:fref tem-%data%
(i) ((1 *)) tem-%offset%
)
101 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
107 (f2cl-lib:array-slice iwk-%data%
112 (f2cl-lib:array-slice iwk-%data%
118 (declare (ignore var-2 var-4 var-5 var-6
))
125 (f2cl-lib:fdo
(k kmin
(f2cl-lib:int-add k
1))
129 (f2cl-lib:fref iwk-%data%
130 ((f2cl-lib:int-add ibjan k
))
134 (setf (f2cl-lib:fref wk-%data%
135 ((f2cl-lib:int-add iba k
))
138 (f2cl-lib:fref tem-%data%
142 (setf kmin
(f2cl-lib:int-add kmax
1))
144 (setf nlu
(f2cl-lib:int-add nlu
1))
146 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
150 (setf (f2cl-lib:fref tem-%data%
(i) ((1 *)) tem-%offset%
)
153 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
154 var-10 var-11 var-12 var-13 var-14
)
156 (f2cl-lib:array-slice iwk-%data%
161 (f2cl-lib:array-slice iwk-%data%
166 (f2cl-lib:array-slice iwk-%data%
171 (f2cl-lib:array-slice iwk-%data%
176 (f2cl-lib:array-slice iwk-%data%
181 (f2cl-lib:array-slice wk-%data%
187 (f2cl-lib:array-slice iwk-%data%
192 (f2cl-lib:array-slice wk-%data%
198 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
199 var-8 var-9 var-10 var-11 var-13
))
202 (if (= iys
0) (go label50
))
203 (setf imul
(the f2cl-lib
:integer4
(truncate (- iys
1) neq
)))
205 (if (= imul
8) (setf ier
1))
206 (if (= imul
10) (setf ier
4))
210 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
211 var-10 var-11 var-12 var-13 var-14
)
213 (f2cl-lib:array-slice iwk-%data%
218 (f2cl-lib:array-slice iwk-%data%
223 (f2cl-lib:array-slice iwk-%data%
228 (f2cl-lib:array-slice iwk-%data%
233 (f2cl-lib:array-slice iwk-%data%
238 (f2cl-lib:array-slice wk-%data%
244 (f2cl-lib:array-slice iwk-%data%
249 (f2cl-lib:array-slice wk-%data%
255 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
256 var-8 var-9 var-10 var-11 var-13
))
259 (if (/= iys
0) (setf ier
5))
262 (return (values neq t$ nil nil nil nil nil ier nil nil
)))))))
264 (in-package #:cl-user
)
265 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
266 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
267 (setf (gethash 'fortran-to-lisp
::dainvgs
268 fortran-to-lisp
::*f2cl-function-info
*)
269 (fortran-to-lisp::make-f2cl-finfo
270 :arg-types
'((fortran-to-lisp::integer4
) (double-float)
271 (array double-float
(*)) (array double-float
(*))
272 (array fortran-to-lisp
::integer4
(*))
273 (array double-float
(*)) (array double-float
(*))
274 (fortran-to-lisp::integer4
) t t
)
275 :return-values
'(fortran-to-lisp::neq fortran-to-lisp
::t$ nil nil
276 nil nil nil fortran-to-lisp
::ier nil nil
)
277 :calls
'(fortran-to-lisp::cdrv
))))