Skip to content

Commit 629c26b

Browse files
fix: do not unwrap initials in initializeprobpmap
1 parent 29f3c6e commit 629c26b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/systems/problem_utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,8 @@ takes a value provider of `srcsys` and a value provider of `dstsys` and returns
718718
# Keyword Arguments
719719
- `initials`: Whether to include the `Initial` parameters of `dstsys` among the values
720720
to be transferred.
721+
- `unwrap_initials`: Whether initials in `dstsys` corresponding to unknowns in `srcsys` are
722+
unwrapped.
721723
- `p_constructor`: The `p_constructor` argument to `process_SciMLProblem`.
722724
"""
723725
function get_mtkparameters_reconstructor(srcsys::AbstractSystem, dstsys::AbstractSystem;
@@ -740,7 +742,7 @@ function get_mtkparameters_reconstructor(srcsys::AbstractSystem, dstsys::Abstrac
740742
end
741743
initials_getter = if initials && !isempty(syms[2])
742744
initsyms = Vector{Any}(syms[2])
743-
allsyms = Set(all_symbols(srcsys))
745+
allsyms = Set(variable_symbols(srcsys))
744746
if unwrap_initials
745747
for i in eachindex(initsyms)
746748
sym = initsyms[i]

0 commit comments

Comments
 (0)