Skip to content

Commit

Permalink
avoid unit error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Mar 5, 2024
1 parent 45cdcef commit 606634d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/src/showcase/ode_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ time values in the same type as tspan, and the solution values in the same type
initial condition.

!!! note

Support for this feature is restricted to the native algorithms of OrdinaryDiffEq.jl.
The other solvers such as Sundials.jl, and ODEInterface.jl are incompatible with some
number systems.

!!! warn

Adaptive timestepping requires that the time type is compatible with `sqrt` and `^`
functions. Thus for example, `tspan` cannot be `Int` if adaptive timestepping is chosen.

Expand Down Expand Up @@ -154,8 +154,8 @@ sqrt(t)
Many operations work. These operations will check to make sure units are correct, and will
throw an error for incorrect operations:

```@example odetypes
#t + sqrt(t)
```julia
t + sqrt(t)
```

### Using Unitful with DifferentialEquations.jl
Expand Down

0 comments on commit 606634d

Please sign in to comment.