Skip to content

Commit

Permalink
turn off diffsl
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Jul 18, 2024
1 parent 133d7b1 commit 05a1a5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions book/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ mathjax-support = true
command = "mdbook-keeper"
manifest_dir = ".."
externs = ["diffsol", "nalgebra", "faer"]
is_workspace = true
build_features = ["diffsl-llvm16"]
# is_workspace = true
# build_features = ["diffsl-llvm16"]

6 changes: 4 additions & 2 deletions book/src/diffsl.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For more detail on the syntax of DiffSL see the [DiffSL book](https://martinjrob
The main struct that is used to specify a problem in DiffSL is the [`DiffSlContext`](https://docs.rs/diffsol/latest/diffsol/ode_solver/diffsl/struct.DiffSlContext.html) struct. Creating this struct
Just-In-Time (JIT) compiles your DiffSL code into a form that can be executed efficiently by DiffSol.

```rust
```rust, ignore
# fn main() {
use diffsol::DiffSlContext;
type M = nalgebra::DMatrix<f64>;
Expand All @@ -27,8 +27,10 @@ let context = DiffSlContext::<M>::new("
# }
```

Once you have created the `DiffSlContext` struct you can use it to create a problem using the `build_diffsl` method on the [`OdeBuilder`](https://docs.rs/diffsol/latest/diffsol/ode_solver/builder/struct.OdeBuilder.html) struct.

```rust

```rust, ignore
# fn main() {
# use diffsol::DiffSlContext;
use diffsol::{OdeBuilder, Bdf, OdeSolverMethod};
Expand Down

0 comments on commit 05a1a5a

Please sign in to comment.