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
::Type{T}; mode = NLSolveTerminationMode.AbsNorm) where {T}
220
220
if termination_condition !==nothing
221
-
abstol !==nothing?
222
-
(abstol != termination_condition.abstol ?
223
-
error("Incompatible absolute tolerances found. The tolerances supplied as the keyword argument and the one supplied in the termination condition should be same.") :
224
-
nothing) :nothing
225
-
reltol !==nothing?
226
-
(reltol != termination_condition.abstol ?
227
-
error("Incompatible relative tolerances found. The tolerances supplied as the keyword argument and the one supplied in the termination condition should be same.") :
228
-
nothing) :nothing
221
+
if abstol !==nothing&& abstol != termination_condition.abstol
222
+
error("Incompatible absolute tolerances found. The tolerances supplied as the \
223
+
keyword argument and the one supplied in the termination condition should \
224
+
be same.")
225
+
end
226
+
if reltol !==nothing&& reltol != termination_condition.reltol
227
+
error("Incompatible relative tolerances found. The tolerances supplied as the \
228
+
keyword argument and the one supplied in the termination condition should \
if termination_condition != cache.termination_condition
242
-
if abstol != cache.abstol
243
-
if abstol != termination_condition.abstol
244
-
error("Incompatible absolute tolerances found. The tolerances supplied as the keyword argument and the one supplied in the termination condition should be same.")
245
-
end
244
+
if abstol != cache.abstol&& abstol != termination_condition.abstol
245
+
error("Incompatible absolute tolerances found. The tolerances supplied as the \
246
+
keyword argument and the one supplied in the termination condition \
247
+
should be same.")
246
248
end
247
249
248
-
if reltol != cache.reltol
249
-
if reltol != termination_condition.reltol
250
-
error("Incompatible absolute tolerances found. The tolerances supplied as the keyword argument and the one supplied in the termination condition should be same.")
251
-
end
250
+
if reltol != cache.reltol&& reltol != termination_condition.reltol
251
+
error("Incompatible absolute tolerances found. The tolerances supplied as the \
252
+
keyword argument and the one supplied in the termination condition \
253
+
should be same.")
252
254
end
253
-
termination_condition
255
+
returntermination_condition
254
256
else
255
257
# Build the termination_condition with new abstol and reltol
0 commit comments