Skip to content

Commit e2ca4b2

Browse files
committed
Generalize getsym of DDEs to multivariate variables
1 parent 3503046 commit e2ca4b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/abstractsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ for traitT in [
320320
elseif is_timeseries_parameter(sys, s)
321321
push!(ts_idxs, timeseries_parameter_index(sys, s).timeseries_idx)
322322
elseif is_time_dependent(sys) && iscall(s) && issym(operation(s)) &&
323-
is_variable(sys, operation(s)(get_iv(sys)))
324-
# DDEs case, to detect x(t - k)
323+
is_variable(sys, operation(s)(get_iv(sys), arguments(s)[2:end]...))
324+
# DDEs case, to detect x(t - k), and x(t - k, arg2, arg3, ...)
325325
push!(ts_idxs, ContinuousTimeseries())
326326
else
327327
if has_index_cache(sys) && (ic = get_index_cache(sys)) !== nothing

0 commit comments

Comments
 (0)