Skip to content

Commit 723f561

Browse files
refactor: format
1 parent 1c30e99 commit 723f561

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/initialization.jl

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,24 @@ end
6060

6161
function Base.showerror(io::IO, e::CheckInitFailureError)
6262
print(io,
63-
"DAE initialization failed: your u0 did not satisfy the initialization requirements,
64-
normresid = $(e.normresid) > abstol = $(e.abstol)."
65-
)
63+
"""
64+
DAE initialization failed: your u0 did not satisfy the initialization requirements, \
65+
normresid = $(e.normresid) > abstol = $(e.abstol).
66+
""")
6667

6768
if e.isdae
68-
print(io, " If you wish for the system to
69-
automatically change the algebraic variables to satisfy the algebraic constraints,
70-
please pass `initializealg = BrownBasicInit()` to solve (this option will require
71-
`using OrdinaryDiffEqNonlinearSolve`). If you wish to perform an initialization on the
72-
complete u0, please pass `initializealg = ShampineCollocationInit()` to solve. Note that
73-
initialization can be a very difficult process for DAEs and in many cases can be
74-
numerically intractable without symbolic manipulation of the system. For an automated
75-
system that will generate numerically stable initializations, see ModelingToolkit.jl
76-
structural simplification for more details."
77-
)
69+
print(io,
70+
"""
71+
If you wish for the system to automatically change the algebraic variables to \
72+
satisfy the algebraic constraints, please pass `initializealg = BrownBasicInit()` \
73+
to solve (this option will require `using OrdinaryDiffEqNonlinearSolve`). If you \
74+
wish to perform an initialization on the complete u0, please pass \
75+
`initializealg = ShampineCollocationInit()` to `solve`. Note that initialization \
76+
can be a very difficult process for DAEs and in many cases can be numerically \
77+
intractable without symbolic manipulation of the system. For an automated \
78+
system that will generate numerically stable initializations, see \
79+
ModelingToolkit.jl structural simplification for more details.
80+
""")
7881
end
7982
end
8083

0 commit comments

Comments
 (0)