|
60 | 60 |
|
61 | 61 | function Base.showerror(io::IO, e::CheckInitFailureError) |
62 | 62 | 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 | + """) |
66 | 67 |
|
67 | 68 | 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 | + """) |
78 | 81 | end |
79 | 82 | end |
80 | 83 |
|
|
0 commit comments