Skip to content

Commit 70650c1

Browse files
committed
change in docstrings
1 parent b7d692f commit 70650c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/SciMLBaseForwardDiffExt.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,22 @@ const FORWARDDIFF_AUTODETECTION_FAILURE_MESSAGE = """
152152
end
153153
```
154154
155-
Or you can define a dispatch on `DiffEqBase.anyeltypedual`
155+
Or you can define a dispatch on `SciMLBase.anyeltypedual`
156156
which tells the system what fields to interpret as the
157157
differentiable parts. For example, to support ODESolutions
158158
as parameters we tell it the data is `sol.u` and `sol.t` via:
159159
160160
```julia
161-
function DiffEqBase.anyeltypedual(sol::ODESolution, counter = 0)
162-
DiffEqBase.anyeltypedual((sol.u, sol.t))
161+
function SciMLBase.anyeltypedual(sol::ODESolution, counter = 0)
162+
SciMLBase.anyeltypedual((sol.u, sol.t))
163163
end
164164
```
165165
166166
To opt a type out of the dual checking, define an overload
167167
that returns Any. For example:
168168
169169
```julia
170-
function DiffEqBase.anyeltypedual(::YourType, ::Type{Val{counter}}) where {counter}
170+
function SciMLBase.anyeltypedual(::YourType, ::Type{Val{counter}}) where {counter}
171171
Any
172172
end
173173
```

0 commit comments

Comments
 (0)