File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 28
28
uses : avsm/setup-ocaml@v2
29
29
with :
30
30
ocaml-compiler : ${{ matrix.ocaml-compiler }}
31
- dune-cache : true
32
31
opam-local-packages : |
33
32
*.opam
34
- !owl-ode-sundials.opam
35
-
36
- - run : cp ".github/sandbox_exec.sh" "$HOME/.opam/opam-init/hooks/sandbox.sh"
37
- if : ${{ matrix.os == 'macos-latest' }}
38
33
39
34
- run : opam depext owl-ode-base owl-ode owl-ode-odepack --with-test
40
35
48
43
opam exec -- dune build -p owl-ode
49
44
opam exec -- dune runtest -p owl-ode
50
45
46
+ - run : |
47
+ opam install owl-ode-sundials --yes --deps-only --with-test
48
+ opam exec -- dune build -p owl-ode-sundials
49
+ opam exec -- dune runtest -p owl-ode-sundials
50
+
51
51
- run : |
52
52
opam install owl-ode-odepack --yes --deps-only --with-test
53
53
opam exec -- dune build -p owl-ode-odepack
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ depends: [
16
16
"dune" {>= "2.0.0"}
17
17
"owl-ode" {= version}
18
18
"owl-plplot" {with-test}
19
- "sundialsml"
19
+ "sundialsml" {>= "4.1.0p0"}
20
20
]
21
21
synopsis: "Owl's ODE solvers, interface with SundialsML"
22
22
description: """OwlDE: ODE Integration library
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ let make_cvode_session
42
42
let y = wrap y0 in
43
43
let yvec = Nvector_serial. wrap y in
44
44
( (match stiff with
45
- | false -> Cvode. (init Adams Functional tolerances f_wrapped t0 yvec)
46
- | true -> Cvode. (init BDF Functional tolerances f_wrapped t0 yvec))
45
+ | false -> Cvode. (init Adams ~nlsolver: ( Sundials_NonlinearSolver.FixedPoint. make yvec) tolerances f_wrapped t0 yvec)
46
+ | true -> Cvode. (init BDF ~nlsolver: ( Sundials_NonlinearSolver.FixedPoint. make yvec) tolerances f_wrapped t0 yvec))
47
47
, yvec
48
48
, y )
49
49
You can’t perform that action at this time.
0 commit comments