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 0419607 commit 5fe1e30Copy full SHA for 5fe1e30
src/systems/nonlinear/initializesystem.jl
@@ -32,6 +32,7 @@ function generate_initializesystem(sys::AbstractSystem;
32
33
# PREPROCESSING
34
# If `=> nothing` in `u0map`, remove the key from `defs`
35
+ u0map = copy(anydict(u0map))
36
for (k, v) in u0map
37
v === nothing || continue
38
delete!(defs, k)
@@ -44,7 +45,6 @@ function generate_initializesystem(sys::AbstractSystem;
44
45
# map parameters in `initprob` which need to be updated in `update_initializeprob!`
46
# to the corresponding expressions that determine their values
47
new_params = Dict()
- u0map = copy(anydict(u0map))
48
pmap = copy(anydict(pmap))
49
if is_time_dependent(sys)
50
0 commit comments