Skip to content

Commit dceb93b

Browse files
committed
Call value after solve_for
1 parent fcc7185 commit dceb93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/structural_transformation/tearing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function tearing_reassemble(sys; simplify=false)
4848

4949
eq = eqs[ieq]
5050
var = fullvars[iv]
51-
rhs = solve_for(eq, var; simplify=simplify, check=false)
51+
rhs = value(solve_for(eq, var; simplify=simplify, check=false))
5252
# if we don't simplify the rhs and the `eq` is not solved properly
5353
(!simplify && var in vars(rhs)) && (rhs = SymbolicUtils.polynormalize(rhs))
5454
# Since we know `eq` is linear wrt `var`, so the round off must be a

0 commit comments

Comments
 (0)