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 sro (n ip ia ja a q r dflag
)
21 (declare (type f2cl-lib
:logical dflag
)
22 (type (array double-float
(*)) a
)
23 (type (array f2cl-lib
:integer4
(*)) r q ja ia ip
)
24 (type (f2cl-lib:integer4
) n
))
25 (f2cl-lib:with-multi-array-data
26 ((ip f2cl-lib
:integer4 ip-%data% ip-%offset%
)
27 (ia f2cl-lib
:integer4 ia-%data% ia-%offset%
)
28 (ja f2cl-lib
:integer4 ja-%data% ja-%offset%
)
29 (q f2cl-lib
:integer4 q-%data% q-%offset%
)
30 (r f2cl-lib
:integer4 r-%data% r-%offset%
)
31 (a double-float a-%data% a-%offset%
))
32 (prog ((ak 0.0d0
) (jak 0) (jdummy 0) (ilast 0) (k 0) (j 0) (jmax 0)
34 (declare (type (f2cl-lib:integer4
) i jmin jmax j k ilast jdummy jak
)
35 (type (double-float) ak
))
36 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
40 (setf (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
) 0)))
41 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
44 (setf jmin
(f2cl-lib:fref ia-%data%
(i) ((1 *)) ia-%offset%
))
47 (f2cl-lib:fref ia-%data%
48 ((f2cl-lib:int-add i
1))
52 (if (> jmin jmax
) (go label3
))
53 (f2cl-lib:fdo
(j jmin
(f2cl-lib:int-add j
1))
56 (setf k
(f2cl-lib:fref ja-%data%
(j) ((1 *)) ja-%offset%
))
58 (< (f2cl-lib:fref ip-%data%
(k) ((1 *)) ip-%offset%
)
59 (f2cl-lib:fref ip-%data%
(i) ((1 *)) ip-%offset%
))
60 (setf (f2cl-lib:fref ja-%data%
(j) ((1 *)) ja-%offset%
) i
))
62 (>= (f2cl-lib:fref ip-%data%
(k) ((1 *)) ip-%offset%
)
63 (f2cl-lib:fref ip-%data%
(i) ((1 *)) ip-%offset%
))
65 (setf (f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
) k
)
67 (setf (f2cl-lib:fref q-%data%
(k) ((1 *)) q-%offset%
)
69 (f2cl-lib:fref q-%data%
(k) ((1 *)) q-%offset%
)
72 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
75 (setf (f2cl-lib:fref ia-%data%
76 ((f2cl-lib:int-add i
1))
80 (f2cl-lib:fref ia-%data%
(i) ((1 *)) ia-%offset%
)
81 (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
)))
83 (setf (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
)
84 (f2cl-lib:fref ia-%data%
85 ((f2cl-lib:int-add i
1))
89 (setf jmin
(f2cl-lib:fref ia-%data%
(1) ((1 *)) ia-%offset%
))
92 (f2cl-lib:fref ia-%data%
93 ((f2cl-lib:int-add n
1))
98 (f2cl-lib:fdo
(jdummy jmin
(f2cl-lib:int-add jdummy
1))
101 (setf i
(f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
))
104 (/= (f2cl-lib:fref ja-%data%
(j) ((1 *)) ja-%offset%
) i
)
107 (setf (f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
)
108 (f2cl-lib:fref ia-%data%
(i) ((1 *)) ia-%offset%
))
112 (setf (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
)
114 (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
)
116 (setf (f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
)
117 (f2cl-lib:fref q-%data%
(i) ((1 *)) q-%offset%
))
119 (setf j
(f2cl-lib:int-sub j
1))))
120 (f2cl-lib:fdo
(j jmin
(f2cl-lib:int-add j
1))
124 (if (= (f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
) j
)
126 (setf k
(f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
))
127 (setf (f2cl-lib:fref r-%data%
(j) ((1 *)) r-%offset%
)
128 (f2cl-lib:fref r-%data%
(k) ((1 *)) r-%offset%
))
129 (setf (f2cl-lib:fref r-%data%
(k) ((1 *)) r-%offset%
) k
)
130 (setf jak
(f2cl-lib:fref ja-%data%
(k) ((1 *)) ja-%offset%
))
131 (setf (f2cl-lib:fref ja-%data%
(k) ((1 *)) ja-%offset%
)
132 (f2cl-lib:fref ja-%data%
(j) ((1 *)) ja-%offset%
))
133 (setf (f2cl-lib:fref ja-%data%
(j) ((1 *)) ja-%offset%
) jak
)
134 (setf ak
(f2cl-lib:fref a-%data%
(k) ((1 *)) a-%offset%
))
135 (setf (f2cl-lib:fref a-%data%
(k) ((1 *)) a-%offset%
)
136 (f2cl-lib:fref a-%data%
(j) ((1 *)) a-%offset%
))
137 (setf (f2cl-lib:fref a-%data%
(j) ((1 *)) a-%offset%
) ak
)
142 (return (values nil nil nil nil nil nil nil nil
)))))
144 (in-package #:cl-user
)
145 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
146 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
147 (setf (gethash 'fortran-to-lisp
::sro fortran-to-lisp
::*f2cl-function-info
*)
148 (fortran-to-lisp::make-f2cl-finfo
149 :arg-types
'((fortran-to-lisp::integer4
)
150 (array fortran-to-lisp
::integer4
(*))
151 (array fortran-to-lisp
::integer4
(*))
152 (array fortran-to-lisp
::integer4
(*))
153 (array double-float
(*))
154 (array fortran-to-lisp
::integer4
(*))
155 (array fortran-to-lisp
::integer4
(*))
156 fortran-to-lisp
::logical
)
157 :return-values
'(nil nil nil nil nil nil nil nil
)