From 8b8a6f8a8dbebdba5dc12d4989c237a15e5fe1b2 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Tue, 30 Jul 2024 10:44:13 -0400 Subject: [PATCH] format --- src/systems/diffeqs/abstractodesystem.jl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/systems/diffeqs/abstractodesystem.jl b/src/systems/diffeqs/abstractodesystem.jl index f61423e61d..7c9cfd1a8b 100644 --- a/src/systems/diffeqs/abstractodesystem.jl +++ b/src/systems/diffeqs/abstractodesystem.jl @@ -1526,11 +1526,15 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem, isys = get_initializesystem(sys; initialization_eqs) elseif isempty(u0map) && get_initializesystem(sys) === nothing isys = generate_initializesystem(sys; initialization_eqs) - _fully_determined = fully_determined === nothing ? length(equations(isys)) == length(unknowns(isys)) - isys = structural_simplify(isys ; _fully_determined) + _fully_determined = fully_determined === nothing ? + length(equations(isys)) == length(unknowns(isys)) : + fully_determined + isys = structural_simplify(isys; _fully_determined) else isys = generate_initializesystem(sys; u0map, initialization_eqs) - _fully_determined = fully_determined === nothing ? length(equations(isys)) == length(unknowns(isys)) + _fully_determined = fully_determined === nothing ? + length(equations(isys)) == length(unknowns(isys)) : + fully_determined isys = structural_simplify(isys; _fully_determined) end