You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/lib.rs
+1-16Lines changed: 1 addition & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -53,25 +53,10 @@
53
53
//!
54
54
//! DiffSL is a domain-specific language for specifying differential equations <https://github.com/martinjrobins/diffsl>. It uses the LLVM compiler framwork
55
55
//! to compile the equations to efficient machine code and uses the EnzymeAD library to compute the jacobian. You can use DiffSL with DiffSol by enabling one of the `diffsl-llvm*` features
56
-
//! corresponding to the version of LLVM you have installed.
56
+
//! corresponding to the version of LLVM you have installed, and using the [OdeBuilder::build_diffsl] method.
57
57
//!
58
58
//! For more information on the DiffSL language, see the [DiffSL documentation](https://martinjrobins.github.io/diffsl/)
59
59
//!
60
-
//! ```rust
61
-
//! #[cfg(feature = "diffsl-llvm14")]
62
-
//! {
63
-
//! use diffsol::{OdeBuilder, Bdf, OdeSolverMethod};
64
-
//! let code = "
65
-
//! u { y = 1 }
66
-
//! F { -y }
67
-
//! out { y }
68
-
//! ";
69
-
//! let problem = OdeBuilder::new().build_diffsl(code).unwrap();
70
-
//! let mut solver = Bdf::default();
71
-
//! let _y = solver.solve(&problem, 1.0).unwrap();
72
-
//! }
73
-
//! ```
74
-
//!
75
60
//! ## Custom ODE problems
76
61
//!
77
62
//! The [OdeBuilder] struct can be used to create an ODE problem from a set of closures.
0 commit comments