Skip to content

Commit

Permalink
Merge pull request #887 from AayushSabharwal/as/fix-checkinit
Browse files Browse the repository at this point in the history
fix: fix `CheckInit` error message
  • Loading branch information
ChrisRackauckas authored Dec 3, 2024
2 parents 94cbba0 + a5b0375 commit 598c7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ function Base.showerror(io::IO, e::CheckInitFailureError)
normresid = $(e.normresid) > abstol = $(e.abstol)."
)

if isdae
if e.isdae
print(io, " If you wish for the system to
automatically change the algebraic variables to satisfy the algebraic constraints,
please pass `initializealg = BrownBasicInit()` to solve (this option will require
`using OrdinaryDiffEqNonlinearSolve`). If you wish to perform an initialization on the
complete u0, please pass initializealg = ShampineCollocationInit() to solve. Note that
complete u0, please pass `initializealg = ShampineCollocationInit()` to solve. Note that
initialization can be a very difficult process for DAEs and in many cases can be
numerically intractable without symbolic manipulation of the system. For an automated
system that will generate numerically stable initializations, see ModelingToolkit.jl
Expand Down

0 comments on commit 598c7cd

Please sign in to comment.