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
Copy file name to clipboardExpand all lines: src/systems/diffeqs/abstractodesystem.jl
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1342,11 +1342,17 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
1342
1342
neqs =length(equations(isys))
1343
1343
nunknown =length(unknowns(isys))
1344
1344
1345
+
if use_scc
1346
+
scc_message ="`SCCNonlinearProblem` can only be used for initialization of fully determined systems and hence will not be used here. "
1347
+
else
1348
+
scc_message =""
1349
+
end
1350
+
1345
1351
if warn_initialize_determined && neqs > nunknown
1346
-
@warn"Initialization system is overdetermined. $neqs equations for $nunknown unknowns. Initialization will default to using least squares. To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true"
1352
+
@warn"Initialization system is overdetermined. $neqs equations for $nunknown unknowns. Initialization will default to using least squares. $(scc_message)To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true"
1347
1353
end
1348
1354
if warn_initialize_determined && neqs < nunknown
1349
-
@warn"Initialization system is underdetermined. $neqs equations for $nunknown unknowns. Initialization will default to using least squares. To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true"
1355
+
@warn"Initialization system is underdetermined. $neqs equations for $nunknown unknowns. Initialization will default to using least squares. $(scc_message)To suppress this warning pass warn_initialize_determined = false. To make this warning into an error, pass fully_determined = true"
1350
1356
end
1351
1357
1352
1358
parammap = parammap isa DiffEqBase.NullParameters ||isempty(parammap) ?
@@ -1384,7 +1390,16 @@ function InitializationProblem{iip, specialize}(sys::AbstractODESystem,
@warn"`SCCNonlinearProblem` can only be used with `split = true` systems. Simplify your `ODESystem` with `split = true` or pass `use_scc = false` to disable this warning"
0 commit comments