Skip to content

Commit a6f1cf4

Browse files
authored
Update reactionsystem_conversions.jl
1 parent 201a675 commit a6f1cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reactionsystem_conversions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ function nonlinear_convert_differentials_check(rs::ReactionSystem)
559559
# If the lhs upper level function is not a differential w.r.t. time.
560560
# If the contenct of the differential is not a variable (and nothing more).
561561
# If either of this is a case, throws the warning.
562-
if Symbolics._occursin(Symbolics.is_derivative, eq.rhs) ||
562+
if hasnode(Symbolics.is_derivative, eq.rhs) ||
563563
!Symbolics.is_derivative(eq.lhs) ||
564564
!isequal(Symbolics.operation(eq.lhs), Differential(get_iv(rs))) ||
565565
(length(arguments(eq.lhs)) != 1) ||
@@ -903,4 +903,4 @@ function to_multivariate_poly(polyeqs::AbstractVector{Symbolics.BasicSymbolic{Re
903903
end
904904

905905
ps
906-
end
906+
end

0 commit comments

Comments
 (0)