Skip to content

Commit 12baa96

Browse files
Update src/structural_transformation/symbolics_tearing.jl
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 938dc2a commit 12baa96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/structural_transformation/symbolics_tearing.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,8 @@ function tearing_reassemble(state::TearingState, var_eq_matching,
453453
# convert it into the mass matrix form.
454454
# We cannot solve the differential variable like D(x)
455455
if isdervar(iv)
456-
isnothing(D) && error("Differential found in a non-differential system. Likely this is a bug in the construction of an initialization system. Please report this issue with a reproducible example. Offending equation: $(equations(sys)[ieq])")
456+
isnothing(D) &&
457+
error("Differential found in a non-differential system. Likely this is a bug in the construction of an initialization system. Please report this issue with a reproducible example. Offending equation: $(equations(sys)[ieq])")
457458
order, lv = var_order(iv)
458459
dx = D(simplify_shifts(lower_varname_withshift(
459460
fullvars[lv], idep, order - 1)))

0 commit comments

Comments
 (0)