Skip to content

Commit cc12bb9

Browse files
committed
Remove unsupported/untested/unworking behavior where defaults map variables to equations
1 parent b237706 commit cc12bb9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,7 @@ function generate_initializesystem(sys::ODESystem;
5959
# 2) process other variables
6060
for var in vars
6161
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
62+
push!(eqs_ics, var ~ defs[var])
7263
elseif var keys(guesses)
7364
push!(defs, var => guesses[var])
7465
elseif check_defguess

0 commit comments

Comments
 (0)