Skip to content

Commit 53c19b8

Browse files
Update src/integrator_interface.jl
Co-authored-by: Dennis Ogiermann <[email protected]>
1 parent 3611e4a commit 53c19b8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/integrator_interface.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,12 @@ end
173173
174174
Get the time direction of the integrator. Should return 1 or -1 with the same type as the time type of the integrator.
175175
"""
176-
get_tdir(i::DEIntegrator) = i.tdir
176+
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
177182

178183
"""
179184
savevalues!(integrator::DEIntegrator,

0 commit comments

Comments
 (0)