You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function OrdinaryDiffEqCore.default_nlsolve(::Nothing, isinplace, u, ::NonlinearProblem, autodiff =false)
134
+
function OrdinaryDiffEqCore.default_nlsolve(
135
+
::Nothing, isinplace, u, ::NonlinearProblem, autodiff =false)
134
136
error("This ODE requires a DAE initialization and thus a nonlinear solve but no nonlinear solve has been loaded. To solve this problem, do `using OrdinaryDiffEqNonlinearSolve` or pass a custom `nlsolve` choice into the `initializealg`.")
135
137
end
136
138
137
-
function OrdinaryDiffEqCore.default_nlsolve(::Nothing, isinplace, u, ::NonlinearLeastSquaresProblem, autodiff =false)
139
+
function OrdinaryDiffEqCore.default_nlsolve(
140
+
::Nothing, isinplace, u, ::NonlinearLeastSquaresProblem, autodiff =false)
138
141
error("This ODE requires a DAE initialization and thus a nonlinear solve but no nonlinear solve has been loaded. To solve this problem, do `using OrdinaryDiffEqNonlinearSolve` or pass a custom `nlsolve` choice into the `initializealg`.")
139
142
end
140
143
@@ -179,12 +182,13 @@ end
179
182
180
183
## CheckInit
181
184
struct CheckInitFailureError <:Exception
182
-
normresid
183
-
abstol
185
+
normresid::Any
186
+
abstol::Any
184
187
end
185
188
186
189
function Base.showerror(io::IO, e::CheckInitFailureError)
187
-
print(io, "CheckInit specified but initialization not satisifed. normresid = $(e.normresid) > abstol = $(e.abstol)")
190
+
print(io,
191
+
"CheckInit specified but initialization not satisifed. normresid = $(e.normresid) > abstol = $(e.abstol)")
0 commit comments