Skip to content

Commit

Permalink
Remove unsupported/untested/unworking behavior where defaults map var…
Browse files Browse the repository at this point in the history
…iables to equations
  • Loading branch information
hersle committed Sep 16, 2024
1 parent 6c270c6 commit 7cb275a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/systems/nonlinear/initializesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,7 @@ function generate_initializesystem(sys::ODESystem;
# 2) process other variables
for var in vars
if var keys(defs)
def = defs[var]
if def isa Equation
# TODO: this behavior is not tested!
var keys(guesses) && check_defguess &&
error("Invalid setup: variable $(var) has an initial condition equation with no guess.")
push!(eqs_ics, def)
push!(defs, var => guesses[var])
else
push!(eqs_ics, var ~ def)
end
push!(eqs_ics, var ~ defs[var])
elseif var keys(guesses)
push!(defs, var => guesses[var])
elseif check_defguess
Expand Down

0 comments on commit 7cb275a

Please sign in to comment.