We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
=> nothing
u0map
generate_initializesystem
1 parent ba4cde3 commit aec403fCopy full SHA for aec403f
src/systems/nonlinear/initializesystem.jl
@@ -31,6 +31,12 @@ function generate_initializesystem(sys::AbstractSystem;
31
idxs_diff = isdiffeq.(eqs)
32
33
# PREPROCESSING
34
+ # If `=> nothing` in `u0map`, remove the key from `defs`
35
+ for (k, v) in u0map
36
+ v === nothing || continue
37
+ delete!(defs, k)
38
+ end
39
+ filter_missing_values!(u0map)
40
# for initial conditions of the form `var => constant`, we instead turn them into
41
# `var ~ var0` where `var0` is a new parameter, and make `update_initializeprob!`
42
# update `initializeprob.ps[var0] = prob[var]`.
0 commit comments