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 ddecbt (m n a b c ip ier
)
21 (declare (type (array f2cl-lib
:integer4
(*)) ip
)
22 (type (array double-float
(*)) c b a
)
23 (type (f2cl-lib:integer4
) ier n m
))
24 (f2cl-lib:with-multi-array-data
25 ((a double-float a-%data% a-%offset%
)
26 (b double-float b-%data% b-%offset%
)
27 (c double-float c-%data% c-%offset%
)
28 (ip f2cl-lib
:integer4 ip-%data% ip-%offset%
))
29 (prog ((dp 0.0d0
) (nm1 0) (nm2 0) (km1 0) (i 0) (j 0) (k 0))
30 (declare (type (f2cl-lib:integer4
) k j i km1 nm2 nm1
)
31 (type (double-float) dp
))
32 (if (or (< m
1) (< n
4)) (go label210
))
33 (setf nm1
(f2cl-lib:int-sub n
1))
34 (setf nm2
(f2cl-lib:int-sub n
2))
35 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4
)
37 (declare (ignore var-0 var-1 var-2 var-3
))
40 (if (/= ier
0) (go label200
))
41 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
45 (f2cl-lib:array-slice b-%data%
52 (f2cl-lib:array-slice c-%data%
59 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
62 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
67 (f2cl-lib:array-slice c-%data%
73 (f2cl-lib:array-slice c-%data%
79 (setf (f2cl-lib:fref b-%data%
84 (f2cl-lib:fref b-%data%
91 (f2cl-lib:fdo
(k 2 (f2cl-lib:int-add k
1))
94 (setf km1
(f2cl-lib:int-sub k
1))
95 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
98 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
103 (f2cl-lib:array-slice c-%data%
109 (f2cl-lib:array-slice b-%data%
115 (setf (f2cl-lib:fref a-%data%
120 (f2cl-lib:fref a-%data%
127 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4
)
129 (f2cl-lib:array-slice a-%data%
135 (f2cl-lib:array-slice ip-%data%
141 (declare (ignore var-0 var-1 var-2 var-3
))
143 (if (/= ier
0) (go label200
))
144 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
149 (f2cl-lib:array-slice a-%data%
155 (f2cl-lib:array-slice ip-%data%
160 (f2cl-lib:array-slice b-%data%
167 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
170 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
175 (f2cl-lib:array-slice b-%data%
181 (f2cl-lib:array-slice b-%data%
187 (setf (f2cl-lib:fref c-%data%
192 (f2cl-lib:fref c-%data%
199 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
202 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
207 (f2cl-lib:array-slice c-%data%
213 (f2cl-lib:array-slice b-%data%
219 (setf (f2cl-lib:fref a-%data%
224 (f2cl-lib:fref a-%data%
231 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4
)
233 (f2cl-lib:array-slice a-%data%
239 (f2cl-lib:array-slice ip-%data%
245 (declare (ignore var-0 var-1 var-2 var-3
))
248 (if (/= ier
0) (go label200
))
257 (return (values nil nil nil nil nil nil ier
)))))
259 (in-package #:cl-user
)
260 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
261 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
262 (setf (gethash 'fortran-to-lisp
::ddecbt
263 fortran-to-lisp
::*f2cl-function-info
*)
264 (fortran-to-lisp::make-f2cl-finfo
265 :arg-types
'((fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
266 (array double-float
(*)) (array double-float
(*))
267 (array double-float
(*))
268 (array fortran-to-lisp
::integer4
(*))
269 (fortran-to-lisp::integer4
))
270 :return-values
'(nil nil nil nil nil nil fortran-to-lisp
::ier
)
271 :calls
'(fortran-to-lisp::ddot fortran-to-lisp
::dgesl
272 fortran-to-lisp
::dgefa
))))