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 dprja (neq y yh nyh ewt ftem savf wm iwm f jac
)
21 (declare (type (f2cl-lib:integer4
) nyh
)
22 (type (array double-float
(*)) wm savf ftem 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 (uround (aref (dls001-part-0 *dls001-common-block
*) 217))
29 (ierpj (aref (dls001-part-1 *dls001-common-block
*) 13))
30 (jcur (aref (dls001-part-1 *dls001-common-block
*) 15))
31 (miter (aref (dls001-part-1 *dls001-common-block
*) 26))
32 (n (aref (dls001-part-1 *dls001-common-block
*) 31))
33 (nfe (aref (dls001-part-1 *dls001-common-block
*) 34))
34 (nje (aref (dls001-part-1 *dls001-common-block
*) 35))
35 (pdnorm (aref (dlsa01-part-0 *dlsa01-common-block
*) 21)))
36 (f2cl-lib:with-multi-array-data
37 ((neq f2cl-lib
:integer4 neq-%data% neq-%offset%
)
38 (iwm f2cl-lib
:integer4 iwm-%data% iwm-%offset%
)
39 (y double-float y-%data% y-%offset%
)
40 (yh double-float yh-%data% yh-%offset%
)
41 (ewt double-float ewt-%data% ewt-%offset%
)
42 (ftem double-float ftem-%data% ftem-%offset%
)
43 (savf double-float savf-%data% savf-%offset%
)
44 (wm double-float wm-%data% wm-%offset%
))
45 (prog ((np1 0) (mu 0) (ml3 0) (ml 0) (meband 0) (meb1 0) (mband 0)
46 (mba 0) (lenp 0) (jj 0) (j1 0) (j 0) (ii 0) (ier 0) (i2 0)
47 (i1 0) (i 0) (yjj 0.0d0
) (yj 0.0d0
) (yi 0.0d0
) (srur 0.0d0
)
48 (r0 0.0d0
) (r 0.0d0
) (hl0 0.0d0
) (fac 0.0d0
) (con 0.0d0
))
49 (declare (type (double-float) con fac hl0 r r0 srur yi yj yjj
)
50 (type (f2cl-lib:integer4
) i i1 i2 ier ii j j1 jj lenp mba
51 mband meb1 meband ml ml3 mu np1
))
52 (setf nje
(f2cl-lib:int-add nje
1))
56 (f2cl-lib:computed-goto
57 (label100 label200 label300 label400 label500
)
60 (setf lenp
(f2cl-lib:int-mul n n
))
61 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
65 (setf (f2cl-lib:fref wm-%data%
66 ((f2cl-lib:int-add i
2))
70 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
77 (f2cl-lib:array-slice wm-%data%
83 (declare (ignore var-0 var-2 var-3 var-4 var-5
))
89 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
93 (setf (f2cl-lib:fref wm-%data%
94 ((f2cl-lib:int-add i
2))
98 (f2cl-lib:fref wm-%data%
99 ((f2cl-lib:int-add i
2))
105 (setf fac
(dmnorm n savf ewt
))
106 (setf r0
(* 1000.0d0
(abs h
) uround n fac
))
107 (if (= r0
0.0d0
) (setf r0
1.0d0
))
108 (setf srur
(f2cl-lib:fref wm-%data%
(1) ((1 *)) wm-%offset%
))
110 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
113 (setf yj
(f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
))
115 (max (* srur
(abs yj
))
117 (f2cl-lib:fref ewt-%data%
121 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
)
122 (+ (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
) r
))
123 (setf fac
(/ (- hl0
) r
))
124 (multiple-value-bind (var-0 var-1 var-2 var-3
)
125 (funcall f neq tn y ftem
)
126 (declare (ignore var-0 var-2 var-3
))
129 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
133 (setf (f2cl-lib:fref wm-%data%
134 ((f2cl-lib:int-add i j1
))
139 (f2cl-lib:fref ftem-%data%
143 (f2cl-lib:fref savf-%data%
148 (setf (f2cl-lib:fref y-%data%
(j) ((1 *)) y-%offset%
) yj
)
149 (setf j1
(f2cl-lib:int-add j1 n
))
151 (setf nfe
(f2cl-lib:int-add nfe n
))
156 (f2cl-lib:array-slice wm-%data%
164 (setf np1
(f2cl-lib:int-add n
1))
165 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
168 (setf (f2cl-lib:fref wm-%data%
(j) ((1 *)) wm-%offset%
)
169 (+ (f2cl-lib:fref wm-%data%
(j) ((1 *)) wm-%offset%
)
172 (setf j
(f2cl-lib:int-add j np1
))))
173 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4
)
175 (f2cl-lib:array-slice wm-%data%
181 (f2cl-lib:array-slice iwm-%data%
187 (declare (ignore var-0 var-1 var-2 var-3
))
189 (if (/= ier
0) (setf ierpj
1))
194 (setf ml
(f2cl-lib:fref iwm-%data%
(1) ((1 *)) iwm-%offset%
))
195 (setf mu
(f2cl-lib:fref iwm-%data%
(2) ((1 *)) iwm-%offset%
))
196 (setf ml3
(f2cl-lib:int-add ml
3))
197 (setf mband
(f2cl-lib:int-add ml mu
1))
198 (setf meband
(f2cl-lib:int-add mband ml
))
199 (setf lenp
(f2cl-lib:int-mul meband n
))
200 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
204 (setf (f2cl-lib:fref wm-%data%
205 ((f2cl-lib:int-add i
2))
209 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
216 (f2cl-lib:array-slice wm-%data%
222 (declare (ignore var-0 var-2 var-5
))
230 (setf meband var-6
)))
232 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
236 (setf (f2cl-lib:fref wm-%data%
237 ((f2cl-lib:int-add i
2))
241 (f2cl-lib:fref wm-%data%
242 ((f2cl-lib:int-add i
2))
248 (setf ml
(f2cl-lib:fref iwm-%data%
(1) ((1 *)) iwm-%offset%
))
249 (setf mu
(f2cl-lib:fref iwm-%data%
(2) ((1 *)) iwm-%offset%
))
250 (setf mband
(f2cl-lib:int-add ml mu
1))
252 (min (the f2cl-lib
:integer4 mband
)
253 (the f2cl-lib
:integer4 n
)))
254 (setf meband
(f2cl-lib:int-add mband ml
))
255 (setf meb1
(f2cl-lib:int-sub meband
1))
256 (setf srur
(f2cl-lib:fref wm-%data%
(1) ((1 *)) wm-%offset%
))
257 (setf fac
(dmnorm n savf ewt
))
258 (setf r0
(* 1000.0d0
(abs h
) uround n fac
))
259 (if (= r0
0.0d0
) (setf r0
1.0d0
))
260 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
263 (f2cl-lib:fdo
(i j
(f2cl-lib:int-add i mband
))
266 (setf yi
(f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
))
268 (max (* srur
(abs yi
))
270 (f2cl-lib:fref ewt-%data%
275 (setf (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
276 (+ (f2cl-lib:fref y-%data%
(i) ((1 *)) y-%offset%
)
278 (multiple-value-bind (var-0 var-1 var-2 var-3
)
279 (funcall f neq tn y ftem
)
280 (declare (ignore var-0 var-2 var-3
))
283 (f2cl-lib:fdo
(jj j
(f2cl-lib:int-add jj mband
))
286 (setf (f2cl-lib:fref y-%data%
(jj) ((1 *)) y-%offset%
)
287 (f2cl-lib:fref yh-%data%
291 (setf yjj
(f2cl-lib:fref y-%data%
(jj) ((1 *)) y-%offset%
))
293 (max (* srur
(abs yjj
))
295 (f2cl-lib:fref ewt-%data%
299 (setf fac
(/ (- hl0
) r
))
301 (max (the f2cl-lib
:integer4
(f2cl-lib:int-sub jj mu
))
302 (the f2cl-lib
:integer4
1)))
304 (min (the f2cl-lib
:integer4
(f2cl-lib:int-add jj ml
))
305 (the f2cl-lib
:integer4 n
)))
308 (f2cl-lib:int-sub
(f2cl-lib:int-mul jj meb1
) ml
)
310 (f2cl-lib:fdo
(i i1
(f2cl-lib:int-add i
1))
314 (setf (f2cl-lib:fref wm-%data%
315 ((f2cl-lib:int-add ii i
))
320 (f2cl-lib:fref ftem-%data%
324 (f2cl-lib:fref savf-%data%
331 (setf nfe
(f2cl-lib:int-add nfe mba
))
336 (f2cl-lib:array-slice wm-%data%
343 (setf ii
(f2cl-lib:int-add mband
2))
344 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
347 (setf (f2cl-lib:fref wm-%data%
(ii) ((1 *)) wm-%offset%
)
348 (+ (f2cl-lib:fref wm-%data%
(ii) ((1 *)) wm-%offset%
)
351 (setf ii
(f2cl-lib:int-add ii meband
))))
352 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6
)
354 (f2cl-lib:array-slice wm-%data%
360 (f2cl-lib:array-slice iwm-%data%
366 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5
))
368 (if (/= ier
0) (setf ierpj
1))
371 (return (values nil nil nil nil nil nil nil nil nil nil nil
)))))))
373 (in-package #:cl-user
)
374 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
375 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
376 (setf (gethash 'fortran-to-lisp
::dprja fortran-to-lisp
::*f2cl-function-info
*)
377 (fortran-to-lisp::make-f2cl-finfo
378 :arg-types
'((array fortran-to-lisp
::integer4
(*))
379 (array double-float
(*)) (array double-float
(*))
380 (fortran-to-lisp::integer4
) (array double-float
(*))
381 (array double-float
(*)) (array double-float
(*))
382 (array double-float
(*))
383 (array fortran-to-lisp
::integer4
(*)) t t
)
384 :return-values
'(nil nil nil nil nil nil nil nil nil nil nil
)
385 :calls
'(fortran-to-lisp::dgbfa fortran-to-lisp
::dbnorm
386 fortran-to-lisp
::dgefa fortran-to-lisp
::dfnorm
387 fortran-to-lisp
::dmnorm
))))