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 dprepji (neq y yh nyh ewt rtem savr s wm iwm res jac adda
)
21 (declare (type (f2cl-lib:integer4
) nyh
)
22 (type (array double-float
(*)) wm s savr rtem ewt yh y
)
23 (type (array f2cl-lib
:integer4
(*)) iwm neq
))
25 (symbol-macrolet ((el0 (aref (dls001-part-0 *dls001-common-block
*) 210))
26 (h (aref (dls001-part-0 *dls001-common-block
*) 211))
27 (tn (aref (dls001-part-0 *dls001-common-block
*) 216))
28 (ierpj (aref (dls001-part-1 *dls001-common-block
*) 13))
29 (jcur (aref (dls001-part-1 *dls001-common-block
*) 15))
30 (miter (aref (dls001-part-1 *dls001-common-block
*) 26))
31 (n (aref (dls001-part-1 *dls001-common-block
*) 31))
32 (nfe (aref (dls001-part-1 *dls001-common-block
*) 34))
33 (nje (aref (dls001-part-1 *dls001-common-block
*) 35)))
34 (f2cl-lib:with-multi-array-data
35 ((neq f2cl-lib
:integer4 neq-%data% neq-%offset%
)
36 (iwm f2cl-lib
:integer4 iwm-%data% iwm-%offset%
)
37 (y double-float y-%data% y-%offset%
)
38 (yh double-float yh-%data% yh-%offset%
)
39 (ewt double-float ewt-%data% ewt-%offset%
)
40 (rtem double-float rtem-%data% rtem-%offset%
)
41 (savr double-float savr-%data% savr-%offset%
)
42 (s double-float s-%data% s-%offset%
)
43 (wm double-float wm-%data% wm-%offset%
))
44 (prog ((mu 0) (ml3 0) (ml 0) (meband 0) (meb1 0) (mband 0) (mba 0)
45 (lenp 0) (jj 0) (j1 0) (j 0) (ires 0) (ii 0) (ier 0) (i2 0)
46 (i1 0) (i 0) (yjj 0.0d0
) (yj 0.0d0
) (yi 0.0d0
) (srur 0.0d0
)
47 (r 0.0d0
) (hl0 0.0d0
) (fac 0.0d0
) (con 0.0d0
))
48 (declare (type (double-float) con fac hl0 r srur yi yj yjj
)
49 (type (f2cl-lib:integer4
) i i1 i2 ier ii ires j j1 jj lenp
50 mba mband meb1 meband ml ml3 mu
))
51 (setf nje
(f2cl-lib:int-add nje
1))
55 (f2cl-lib:computed-goto
56 (label100 label200 label300 label400 label500
)
60 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
61 (funcall res neq tn y s savr ires
)
62 (declare (ignore var-0 var-2 var-3 var-4
))
67 (setf nfe
(f2cl-lib:int-add nfe
1))
68 (if (> ires
1) (go label600
))
69 (setf lenp
(f2cl-lib:int-mul n n
))
70 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
74 (setf (f2cl-lib:fref wm-%data%
75 ((f2cl-lib:int-add i
2))
80 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
)
88 (f2cl-lib:array-slice wm-%data%
94 (declare (ignore var-0 var-2 var-3 var-4 var-5 var-6
))
100 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
104 (setf (f2cl-lib:fref wm-%data%
105 ((f2cl-lib:int-add i
2))
109 (f2cl-lib:fref wm-%data%
110 ((f2cl-lib:int-add i
2))
117 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
118 (funcall res neq tn y s savr ires
)
119 (declare (ignore var-0 var-2 var-3 var-4
))
124 (setf nfe
(f2cl-lib:int-add nfe
1))
125 (if (> ires
1) (go label600
))
126 (setf srur
(f2cl-lib:fref wm-%data%
(1) ((1 *)) wm-%offset%
))
128 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
131 (setf yj
(f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
))
133 (max (* srur
(abs yj
))
135 (f2cl-lib:fref ewt-%data%
139 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
140 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
) r
))
141 (setf fac
(/ (- hl0
) r
))
142 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
143 (funcall res neq tn y s rtem ires
)
144 (declare (ignore var-0 var-2 var-3 var-4
))
149 (setf nfe
(f2cl-lib:int-add nfe
1))
150 (if (> ires
1) (go label600
))
151 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
155 (setf (f2cl-lib:fref wm-%data%
156 ((f2cl-lib:int-add i j1
))
161 (f2cl-lib:fref rtem-%data%
165 (f2cl-lib:fref savr-%data%
170 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
) yj
)
171 (setf j1
(f2cl-lib:int-add j1 n
))
174 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
175 (funcall res neq tn y s savr ires
)
176 (declare (ignore var-0 var-2 var-3 var-4
))
181 (setf nfe
(f2cl-lib:int-add nfe
1))
182 (if (> ires
1) (go label600
))
184 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
191 (f2cl-lib:array-slice wm-%data%
197 (declare (ignore var-0 var-2 var-3 var-4 var-5
))
202 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4
)
204 (f2cl-lib:array-slice wm-%data%
210 (f2cl-lib:array-slice iwm-%data%
216 (declare (ignore var-0 var-1 var-2 var-3
))
218 (if (/= ier
0) (setf ierpj
1))
224 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
225 (funcall res neq tn y s savr ires
)
226 (declare (ignore var-0 var-2 var-3 var-4
))
231 (setf nfe
(f2cl-lib:int-add nfe
1))
232 (if (> ires
1) (go label600
))
233 (setf ml
(f2cl-lib:fref iwm-%data%
(1) ((1 *)) iwm-%offset%
))
234 (setf mu
(f2cl-lib:fref iwm-%data%
(2) ((1 *)) iwm-%offset%
))
235 (setf ml3
(f2cl-lib:int-add ml
3))
236 (setf mband
(f2cl-lib:int-add ml mu
1))
237 (setf meband
(f2cl-lib:int-add mband ml
))
238 (setf lenp
(f2cl-lib:int-mul meband n
))
239 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
243 (setf (f2cl-lib:fref wm-%data%
244 ((f2cl-lib:int-add i
2))
249 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
)
257 (f2cl-lib:array-slice wm-%data%
263 (declare (ignore var-0 var-2 var-3 var-6
))
271 (setf meband var-7
)))
273 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
277 (setf (f2cl-lib:fref wm-%data%
278 ((f2cl-lib:int-add i
2))
282 (f2cl-lib:fref wm-%data%
283 ((f2cl-lib:int-add i
2))
290 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
291 (funcall res neq tn y s savr ires
)
292 (declare (ignore var-0 var-2 var-3 var-4
))
297 (setf nfe
(f2cl-lib:int-add nfe
1))
298 (if (> ires
1) (go label600
))
299 (setf ml
(f2cl-lib:fref iwm-%data%
(1) ((1 *)) iwm-%offset%
))
300 (setf mu
(f2cl-lib:fref iwm-%data%
(2) ((1 *)) iwm-%offset%
))
301 (setf ml3
(f2cl-lib:int-add ml
3))
302 (setf mband
(f2cl-lib:int-add ml mu
1))
304 (min (the f2cl-lib
:integer4 mband
)
305 (the f2cl-lib
:integer4 n
)))
306 (setf meband
(f2cl-lib:int-add mband ml
))
307 (setf meb1
(f2cl-lib:int-sub meband
1))
308 (setf srur
(f2cl-lib:fref wm-%data%
(1) ((1 *)) wm-%offset%
))
309 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
312 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i mband
))
315 (setf yi
(f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
))
317 (max (* srur
(abs yi
))
319 (f2cl-lib:fref ewt-%data%
324 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
325 (+ (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
327 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
328 (funcall res neq tn y s rtem ires
)
329 (declare (ignore var-0 var-2 var-3 var-4
))
334 (setf nfe
(f2cl-lib:int-add nfe
1))
335 (if (> ires
1) (go label600
))
336 (f2cl-lib:fdo
(jj j
(f2cl-lib:int-add jj mband
))
339 (setf (f2cl-lib:fref y-%data%
(jj) ((1 *)) y-%offset%
)
340 (f2cl-lib:fref yh-%data%
344 (setf yjj
(f2cl-lib:fref y-%data%
(jj) ((1 *)) y-%offset%
))
346 (max (* srur
(abs yjj
))
348 (f2cl-lib:fref ewt-%data%
352 (setf fac
(/ (- hl0
) r
))
354 (max (the f2cl-lib
:integer4
(f2cl-lib:int-sub jj mu
))
355 (the f2cl-lib
:integer4
1)))
357 (min (the f2cl-lib
:integer4
(f2cl-lib:int-add jj ml
))
358 (the f2cl-lib
:integer4 n
)))
361 (f2cl-lib:int-sub
(f2cl-lib:int-mul jj meb1
) ml
)
363 (f2cl-lib:fdo
(i i1
(f2cl-lib:int-add i
1))
367 (setf (f2cl-lib:fref wm-%data%
368 ((f2cl-lib:int-add ii i
))
373 (f2cl-lib:fref rtem-%data%
377 (f2cl-lib:fref savr-%data%
385 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5
)
386 (funcall res neq tn y s savr ires
)
387 (declare (ignore var-0 var-2 var-3 var-4
))
392 (setf nfe
(f2cl-lib:int-add nfe
1))
393 (if (> ires
1) (go label600
))
395 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
402 (f2cl-lib:array-slice wm-%data%
408 (declare (ignore var-0 var-2 var-5
))
416 (setf meband var-6
)))
417 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
419 (f2cl-lib:array-slice wm-%data%
425 (f2cl-lib:array-slice iwm-%data%
431 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5
))
433 (if (/= ier
0) (setf ierpj
1))
440 (values nil nil nil nil nil nil nil nil nil nil nil nil nil
)))))))
442 (in-package #:cl-user
)
443 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
444 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
445 (setf (gethash 'fortran-to-lisp
::dprepji
446 fortran-to-lisp
::*f2cl-function-info
*)
447 (fortran-to-lisp::make-f2cl-finfo
448 :arg-types
'((array fortran-to-lisp
::integer4
(*))
449 (array double-float
(*)) (array double-float
(*))
450 (fortran-to-lisp::integer4
) (array double-float
(*))
451 (array double-float
(*)) (array double-float
(*))
452 (array double-float
(*)) (array double-float
(*))
453 (array fortran-to-lisp
::integer4
(*)) t t t
)
454 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil nil
456 :calls
'(fortran-to-lisp::dgbfa fortran-to-lisp
::dgefa
))))