Skip to content

Commit 598c7cd

Browse files
Merge pull request #887 from AayushSabharwal/as/fix-checkinit
fix: fix `CheckInit` error message
2 parents 94cbba0 + a5b0375 commit 598c7cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/initialization.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@ function Base.showerror(io::IO, e::CheckInitFailureError)
6464
normresid = $(e.normresid) > abstol = $(e.abstol)."
6565
)
6666

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

0 commit comments

Comments
 (0)