diff --git a/src/initialization.jl b/src/initialization.jl index 2a93cb7b7..d909ecc58 100644 --- a/src/initialization.jl +++ b/src/initialization.jl @@ -226,6 +226,8 @@ function get_initial_values(prob, valp, f, alg::OverrideInit, return u0, p, success end +is_trivial_initialization(::Nothing) = true + function is_trivial_initialization(initdata::OverrideInitData) !(initdata.initializeprob isa NonlinearLeastSquaresProblem) && state_values(initdata.initializeprob) === nothing