Skip to content

Commit 9db32a9

Browse files
fix non-autonomous codegen to only use the c parameter
1 parent ffe5675 commit 9db32a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/solver_nlprob.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function inner_nlsystem(sys::System, mm)
4848
inner_tmp = get_inner_tmp(N)
4949

5050
subrules = Dict([v => gamma2*v + inner_tmp[i] for (i, v) in enumerate(dvs)])
51-
subrules[t] = t + c
51+
subrules[t] = c
5252
new_rhss = map(Base.Fix2(fast_substitute, subrules), rhss)
5353
new_rhss = collect(outer_tmp) .+ gamma1 .* new_rhss .- gamma3 * mm * dvs
5454
new_eqs = [0 ~ rhs for rhs in new_rhss]

0 commit comments

Comments
 (0)