We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b237706 commit cc12bb9Copy full SHA for cc12bb9
src/systems/nonlinear/initializesystem.jl
@@ -59,16 +59,7 @@ function generate_initializesystem(sys::ODESystem;
59
# 2) process other variables
60
for var in vars
61
if var ∈ keys(defs)
62
- def = defs[var]
63
- if def isa Equation
64
- # TODO: this behavior is not tested!
65
- var ∉ keys(guesses) && check_defguess &&
66
- error("Invalid setup: variable $(var) has an initial condition equation with no guess.")
67
- push!(eqs_ics, def)
68
- push!(defs, var => guesses[var])
69
- else
70
- push!(eqs_ics, var ~ def)
71
- end
+ push!(eqs_ics, var ~ defs[var])
72
elseif var ∈ keys(guesses)
73
push!(defs, var => guesses[var])
74
elseif check_defguess
0 commit comments