Skip to content

Commit a703b7c

Browse files
authored
Merge pull request #21 from owlbarn/port-to-new-sundials
Port to new sundials
2 parents f1ca4d7 + 2cf884c commit a703b7c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,8 @@ jobs:
2828
uses: avsm/setup-ocaml@v2
2929
with:
3030
ocaml-compiler: ${{ matrix.ocaml-compiler }}
31-
dune-cache: true
3231
opam-local-packages: |
3332
*.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' }}
3833
3934
- run: opam depext owl-ode-base owl-ode owl-ode-odepack --with-test
4035

@@ -48,6 +43,11 @@ jobs:
4843
opam exec -- dune build -p owl-ode
4944
opam exec -- dune runtest -p owl-ode
5045
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+
5151
- run: |
5252
opam install owl-ode-odepack --yes --deps-only --with-test
5353
opam exec -- dune build -p owl-ode-odepack

owl-ode-sundials.opam

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ depends: [
1616
"dune" {>= "2.0.0"}
1717
"owl-ode" {= version}
1818
"owl-plplot" {with-test}
19-
"sundialsml"
19+
"sundialsml" {>= "4.1.0p0"}
2020
]
2121
synopsis: "Owl's ODE solvers, interface with SundialsML"
2222
description: """OwlDE: ODE Integration library

src/sundials/owl_ode_sundials.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ let make_cvode_session
4242
let y = wrap y0 in
4343
let yvec = Nvector_serial.wrap y in
4444
( (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))
4747
, yvec
4848
, y )
4949

0 commit comments

Comments
 (0)