Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Sep 6, 2024
1 parent 4429fa1 commit c78d13a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/systems/diffeqs/abstractodesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1439,11 +1439,17 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
if isempty(u0map) && get_initializesystem(sys) !== nothing
isys = get_initializesystem(sys; initialization_eqs, check_units)
elseif isempty(u0map) && get_initializesystem(sys) === nothing
isys = structural_simplify(
generate_initializesystem(sys; initialization_eqs, check_units); fully_determined)
isys = generate_initializesystem(sys; initialization_eqs, check_units)
_fully_determined = fully_determined === nothing ?
length(equations(isys)) == length(unknowns(isys)) :
fully_determined
isys = structural_simplify(isys; _fully_determined)
else
isys = structural_simplify(
generate_initializesystem(sys; u0map, initialization_eqs, check_units); fully_determined)
isys = generate_initializesystem(sys; u0map, initialization_eqs, check_units)
_fully_determined = fully_determined === nothing ?
length(equations(isys)) == length(unknowns(isys)) :
fully_determined
isys = structural_simplify(isys; _fully_determined)
end

uninit = setdiff(unknowns(sys), [unknowns(isys); getfield.(observed(isys), :lhs)])
Expand Down

0 comments on commit c78d13a

Please sign in to comment.