package sundialsml

  1. Overview
  2. No Docs
Interface to the Sundials suite of numerical solvers

Install

Dune Dependency

Authors

Maintainers

Sources

v3.1.1p1.zip
sha256=ff2554dab84a15a6ea575059dbf615a8493d6ccb37c473e760c53018638601b1
md5=64363f3bccec3c561fa56ed59e555361

Description

Sundials is a collection of six numerical solvers: CVODE, CVODES, IDA, IDAS, ARKODE, and KINSOL. This interface provides access to all features of the underlying library except the Hypre and PETSC nvectors.

The structure of the OCaml interface mostly follows that of the original library, both for ease of reading the existing documentation and for converting existing source code, but several changes have been made for programming convenience and to increase safety, namely:

  • solver sessions are mostly configured via algebraic data types rather than multiple function calls;

  • errors are signalled by exceptions not return codes (also from user-supplied callback routines);

  • user data is shared between callback routines via closures (partial applications of functions);

  • vectors are checked for compatibility with a session (using a combination of static and dynamic checks), and;

  • explicit free commands are not necessary since OCaml is a garbage-collected language.

The detailed OCaml documentation contains cross-links to the original documentation. OCaml versions of the standard examples usually have an overhead of about 30% compared to the original C versions, and only rarely more than 50%.

Dependencies (4)

  1. conf-sundials build
  2. ocamlfind build
  3. base-bigarray
  4. ocaml >= "4.02.3" & < "4.14"

Dev Dependencies

None

Used by (1)

  1. owl-ode-sundials < "0.5.0"

Conflicts

None

OCaml

Innovation. Community. Security.