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
error("Initial conditions must be for the past state of the unknowns. Instead of providing the condition for $k, provide the condition for $(Shift(iv, -1)(k)).")
259
243
end
260
-
trueu0map[Shift(iv, op.steps +1)(arguments(k)[1])] = v
261
-
end
262
-
defs = ModelingToolkit.get_defaults(sys)
263
-
for var in dvs
264
-
if (op =operation(var)) isa Shift &&!haskey(trueu0map, var)
265
-
root =arguments(var)[1]
266
-
haskey(defs, root) ||error("Initial condition for $var not provided.")
267
-
trueu0map[var] = defs[root]
268
-
end
244
+
updated[Shift(iv, op.steps +1)(arguments(k)[1])] = v
@@ -53,6 +53,13 @@ function generate_initializesystem(sys::ODESystem;
53
53
error("Initialization expression $y is currently not supported. If its a higher order derivative expression, then only the dummy derivative expressions are supported.")
@@ -487,7 +457,7 @@ function DiffEqBase.NonlinearLeastSquaresProblem{iip}(sys::NonlinearSystem, u0ma
487
457
if!iscomplete(sys)
488
458
error("A completed `NonlinearSystem` is required. Call `complete` or `structural_simplify` on the system before creating a `NonlinearLeastSquaresProblem`")
489
459
end
490
-
f, u0, p =process_NonlinearProblem(NonlinearFunction{iip}, sys, u0map, parammap;
460
+
f, u0, p =process_SciMLProblem(NonlinearFunction{iip}, sys, u0map, parammap;
0 commit comments