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.
ObservedWrapper
1 parent d779315 commit 5bfb166Copy full SHA for 5bfb166
src/systems/problem_utils.jl
@@ -631,7 +631,9 @@ end
631
ObservedWrapper{TD}(f::F) where {TD, F} = ObservedWrapper{TD, F}(f)
632
633
function (ow::ObservedWrapper{true})(prob)
634
- ow.f(state_values(prob), parameter_values(prob), current_time(prob))
+ # Edge case for steady state problems
635
+ t = applicable(current_time, prob) ? current_time(prob) : Inf
636
+ ow.f(state_values(prob), parameter_values(prob), t)
637
end
638
639
function (ow::ObservedWrapper{false})(prob)
0 commit comments