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 jgroup (n ia ja maxg ngrp igp jgp incl jdone ier
)
21 (declare (type (array f2cl-lib
:integer4
(*)) jdone incl jgp igp ja ia
)
22 (type (f2cl-lib:integer4
) ier ngrp maxg n
))
23 (f2cl-lib:with-multi-array-data
24 ((ia f2cl-lib
:integer4 ia-%data% ia-%offset%
)
25 (ja f2cl-lib
:integer4 ja-%data% ja-%offset%
)
26 (igp f2cl-lib
:integer4 igp-%data% igp-%offset%
)
27 (jgp f2cl-lib
:integer4 jgp-%data% jgp-%offset%
)
28 (incl f2cl-lib
:integer4 incl-%data% incl-%offset%
)
29 (jdone f2cl-lib
:integer4 jdone-%data% jdone-%offset%
))
30 (prog ((i 0) (j 0) (k 0) (kmin 0) (kmax 0) (ncol 0) (ng 0))
31 (declare (type (f2cl-lib:integer4
) ng ncol kmax kmin k j i
))
33 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
37 (setf (f2cl-lib:fref jdone-%data%
(j) ((1 *)) jdone-%offset%
) 0)))
39 (f2cl-lib:fdo
(ng 1 (f2cl-lib:int-add ng
1))
42 (setf (f2cl-lib:fref igp-%data%
(ng) ((1 *)) igp-%offset%
) ncol
)
43 (f2cl-lib:fdo
(i 1 (f2cl-lib:int-add i
1))
47 (setf (f2cl-lib:fref incl-%data%
(i) ((1 *)) incl-%offset%
) 0)))
48 (f2cl-lib:fdo
(j 1 (f2cl-lib:int-add j
1))
51 (if (= (f2cl-lib:fref jdone-%data%
(j) ((1 *)) jdone-%offset%
) 1)
53 (setf kmin
(f2cl-lib:fref ia-%data%
(j) ((1 *)) ia-%offset%
))
56 (f2cl-lib:fref ia-%data%
57 ((f2cl-lib:int-add j
1))
61 (f2cl-lib:fdo
(k kmin
(f2cl-lib:int-add k
1))
64 (setf i
(f2cl-lib:fref ja-%data%
(k) ((1 *)) ja-%offset%
))
66 (= (f2cl-lib:fref incl-%data%
(i) ((1 *)) incl-%offset%
) 1)
69 (setf (f2cl-lib:fref jgp-%data%
(ncol) ((1 *)) jgp-%offset%
) j
)
70 (setf ncol
(f2cl-lib:int-add ncol
1))
71 (setf (f2cl-lib:fref jdone-%data%
(j) ((1 *)) jdone-%offset%
) 1)
72 (f2cl-lib:fdo
(k kmin
(f2cl-lib:int-add k
1))
75 (setf i
(f2cl-lib:fref ja-%data%
(k) ((1 *)) ja-%offset%
))
77 (setf (f2cl-lib:fref incl-%data%
(i) ((1 *)) incl-%offset%
)
80 (if (= ncol
(f2cl-lib:fref igp-%data%
(ng) ((1 *)) igp-%offset%
))
83 (if (<= ncol n
) (go label80
))
86 (setf ngrp
(f2cl-lib:int-sub ng
1))
92 (return (values nil nil nil nil ngrp nil nil nil nil ier
)))))
94 (in-package #:cl-user
)
95 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
96 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
97 (setf (gethash 'fortran-to-lisp
::jgroup
98 fortran-to-lisp
::*f2cl-function-info
*)
99 (fortran-to-lisp::make-f2cl-finfo
100 :arg-types
'((fortran-to-lisp::integer4
)
101 (array fortran-to-lisp
::integer4
(*))
102 (array fortran-to-lisp
::integer4
(*))
103 (fortran-to-lisp::integer4
) (fortran-to-lisp::integer4
)
104 (array fortran-to-lisp
::integer4
(*))
105 (array fortran-to-lisp
::integer4
(*))
106 (array fortran-to-lisp
::integer4
(*))
107 (array fortran-to-lisp
::integer4
(*))
108 (fortran-to-lisp::integer4
))
109 :return-values
'(nil nil nil nil fortran-to-lisp
::ngrp nil nil nil
110 nil fortran-to-lisp
::ier
)