Skip to content

Commit

Permalink
fix: Nothing is a trivial initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 3, 2024
1 parent e2db32e commit da809b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da809b0

Please sign in to comment.