Skip to content

Commit f62b53d

Browse files
author
Marc Pouzet
committed
Update of the README.
1 parent 165d1eb commit f62b53d

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,17 @@ $ cd examples && make
108108

109109
The executables can be found in each example directory (e.g., `horloge/horloge_main.exe`).
110110

111-
## Development
111+
## Development (inslallation from the sources)
112+
113+
### First, you need to install [opam] (https://opam.ocaml.org) and
114+
[dune] (https://dune.readthedocs.io/en/stable/).
115+
116+
Install sundials <= 6.1 (https://computing.llnl.gov/projects/sundials/sundials-software).
117+
Install sundialsml 6.1 from the source (https://inria-parkas.github.io/sundialsml/).
118+
Warning: as of Nov. 2023, sundialsml only works with sundials <= 6.1. We hare
119+
working on updating it with the latest version. Moreover, sundialsml only works with OCaml up to version 4.14.1. It does not work yet with OCaml version >= 5.0.
120+
121+
Everything should work then!
112122

113123
### Compiler
114124

compiler/typing/typing.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ let env_of_eq_list expected_k eq_list =
426426
match expected_k with
427427
| Deftypes.Tstatic _ -> Deftypes.static
428428
| Deftypes.Tany | Deftypes.Tdiscrete false -> Deftypes.variable
429-
| Deftypes. Tcont
429+
| Deftypes.Tcont
430430
| Deftypes.Tdiscrete true
431431
| Deftypes.Tproba ->
432432
if S.mem n inames then Deftypes.imemory

examples/heater/heat.zls

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ let node euler(h)(x0, xprime) = x
1111

1212
(* Model of a heater *)
1313
(* (temp(n+1) - temp(n)) / h = alpha(n) * (c(n) - temp(n)) if u(n) *)
14-
(* beta(n) * (temp_ext(n) - temp(n) otherwise *)
14+
(* beta(n) * (temp_ext(n) - temp(n)) otherwise *)
15+
1516
let node heater(h)(c, alpha, beta, temp_ext, temp0, u) = temp where
1617
rec temp =
1718
euler(h)(temp0,

0 commit comments

Comments
 (0)