We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3611e4a commit 53c19b8Copy full SHA for 53c19b8
src/integrator_interface.jl
@@ -173,7 +173,12 @@ end
173
174
Get the time direction of the integrator. Should return 1 or -1 with the same type as the time type of the integrator.
175
"""
176
-get_tdir(i::DEIntegrator) = i.tdir
+function get_tdir(i::DEIntegrator)
177
+ if hasproperty(i, :tdir)
178
+ i.tdir
179
+ else
180
+ error("get_tdir: method has not been implemented for the integrator")
181
+ end
182
183
184
savevalues!(integrator::DEIntegrator,
0 commit comments