Skip to content

Commit 294b3b1

Browse files
fix: fix calculate_jacobian
1 parent 48db08f commit 294b3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/codegen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ end
108108
function calculate_jacobian(sys::System;
109109
sparse = false, simplify = false, dvs = unknowns(sys))
110110
obs = Dict(eq.lhs => eq.rhs for eq in observed(sys))
111-
rhs = map(eq -> fixpoint_sub(eq.rhs, obs), equations(sys))
111+
rhs = map(eq -> fixpoint_sub(eq.rhs - eq.lhs, obs), equations(sys))
112112

113113
if sparse
114114
jac = sparsejacobian(rhs, dvs; simplify)

0 commit comments

Comments
 (0)