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 diprepi (neq y s rwork ia ja ic jc ipflag res jac adda
)
21 (declare (type (f2cl-lib:integer4
) ipflag
)
22 (type (array double-float
(*)) rwork s y
)
23 (type (array f2cl-lib
:integer4
(*)) jc ic ja ia neq
))
25 (symbol-macrolet ((lyh (aref (dls001-part-1 *dls001-common-block
*) 19))
26 (lewt (aref (dls001-part-1 *dls001-common-block
*) 20))
27 (lacor (aref (dls001-part-1 *dls001-common-block
*) 21))
28 (lsavf (aref (dls001-part-1 *dls001-common-block
*) 22))
29 (lwm (aref (dls001-part-1 *dls001-common-block
*) 23))
30 (n (aref (dls001-part-1 *dls001-common-block
*) 31))
31 (istatc (aref (dlss01-part-1 *dlss01-common-block
*) 2))
32 (lenyh (aref (dlss01-part-1 *dlss01-common-block
*) 18))
33 (lenyhm (aref (dlss01-part-1 *dlss01-common-block
*) 19))
34 (lenwk (aref (dlss01-part-1 *dlss01-common-block
*) 20))
35 (lreq (aref (dlss01-part-1 *dlss01-common-block
*) 21))
36 (lwmin (aref (dlss01-part-1 *dlss01-common-block
*) 24)))
37 (f2cl-lib:with-multi-array-data
38 ((neq f2cl-lib
:integer4 neq-%data% neq-%offset%
)
39 (ia f2cl-lib
:integer4 ia-%data% ia-%offset%
)
40 (ja f2cl-lib
:integer4 ja-%data% ja-%offset%
)
41 (ic f2cl-lib
:integer4 ic-%data% ic-%offset%
)
42 (jc f2cl-lib
:integer4 jc-%data% jc-%offset%
)
43 (y double-float y-%data% y-%offset%
)
44 (s double-float s-%data% s-%offset%
)
45 (rwork double-float rwork-%data% rwork-%offset%
))
46 (prog ((lyhn 0) (lyhd 0) (lewtn 0) (imax 0) (i 0))
47 (declare (type (f2cl-lib:integer4
) i imax lewtn lyhd lyhn
))
50 (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9
51 var-10 var-11 var-12 var-13 var-14 var-15 var-16
)
53 (f2cl-lib:array-slice rwork-%data%
58 (f2cl-lib:array-slice rwork-%data%
63 (f2cl-lib:array-slice rwork-%data%
68 (f2cl-lib:array-slice rwork-%data%
74 (f2cl-lib:array-slice rwork-%data%
79 (f2cl-lib:array-slice rwork-%data%
85 (declare (ignore var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7
86 var-8 var-9 var-10 var-11 var-12 var-14 var-15
90 (max (the f2cl-lib
:integer4 lreq
)
91 (the f2cl-lib
:integer4 lwmin
)))
92 (if (< ipflag
0) (go end_label
))
93 (setf lyhn
(f2cl-lib:int-add lwm lenwk
))
94 (if (> lyhn lyh
) (go end_label
))
95 (setf lyhd
(f2cl-lib:int-sub lyh lyhn
))
96 (if (= lyhd
0) (go label20
))
97 (setf imax
(f2cl-lib:int-add
(f2cl-lib:int-sub lyhn
1) lenyhm
))
98 (f2cl-lib:fdo
(i lyhn
(f2cl-lib:int-add i
1))
102 (setf (f2cl-lib:fref rwork-%data%
(i) ((1 *)) rwork-%offset%
)
103 (f2cl-lib:fref rwork-%data%
104 ((f2cl-lib:int-add i lyhd
))
109 (setf lsavf
(f2cl-lib:int-add lyh lenyh
))
110 (setf lewtn
(f2cl-lib:int-add lsavf n
))
111 (setf lacor
(f2cl-lib:int-add lewtn n
))
112 (if (= istatc
3) (go label40
))
113 (if (> lewtn lewt
) (go end_label
))
114 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
118 (setf (f2cl-lib:fref rwork-%data%
120 (f2cl-lib:int-add i lewtn
)
124 (f2cl-lib:fref rwork-%data%
126 (f2cl-lib:int-add i lewt
)
135 (values nil nil nil nil nil nil nil nil ipflag nil nil nil
)))))))
137 (in-package #:cl-user
)
138 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
139 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
140 (setf (gethash 'fortran-to-lisp
::diprepi
141 fortran-to-lisp
::*f2cl-function-info
*)
142 (fortran-to-lisp::make-f2cl-finfo
143 :arg-types
'((array fortran-to-lisp
::integer4
(*))
144 (array double-float
(*)) (array double-float
(*))
145 (array double-float
(*))
146 (array fortran-to-lisp
::integer4
(*))
147 (array fortran-to-lisp
::integer4
(*))
148 (array fortran-to-lisp
::integer4
(*))
149 (array fortran-to-lisp
::integer4
(*))
150 (fortran-to-lisp::integer4
) t t t
)
151 :return-values
'(nil nil nil nil nil nil nil nil
152 fortran-to-lisp
::ipflag nil nil nil
)
153 :calls
'(fortran-to-lisp::dprepi
))))