Skip to content

Commit be21e4b

Browse files
committed
fix: propagate tofloat, use_union to better_varmap_to_vars
fix mergre conflict
1 parent 9c415dc commit be21e4b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/systems/problem_utils.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ Keyword arguments:
363363
- `is_initializeprob, guesses`: Used to determine whether the system is missing guesses.
364364
"""
365365
function better_varmap_to_vars(varmap::AbstractDict, vars::Vector;
366-
tofloat = true, use_union = true, container_type = Array,
366+
tofloat = true, container_type = Array,
367367
toterm = default_toterm, promotetoconcrete = nothing, check = true, allow_symbolic = false, is_initializeprob = false)
368368
isempty(vars) && return nothing
369369

@@ -841,8 +841,13 @@ function process_SciMLProblem(
841841
evaluate_varmap!(op, dvs; limit = substitution_limit)
842842

843843
u0 = better_varmap_to_vars(
844+
<<<<<<< HEAD
844845
op, dvs; tofloat = true, use_union = false,
845846
container_type = u0Type, allow_symbolic = symbolic_u0, is_initializeprob)
847+
=======
848+
op, dvs; tofloat, use_union,
849+
container_type = u0Type, allow_symbolic = symbolic_u0)
850+
>>>>>>> e31ae1bcc9 (fix: propagate `tofloat`, `use_union` to `better_varmap_to_vars`)
846851

847852
if u0 !== nothing
848853
u0 = u0_constructor(u0)
@@ -875,7 +880,7 @@ function process_SciMLProblem(
875880
du0map = to_varmap(du0map, ddvs)
876881
merge!(op, du0map)
877882
du0 = varmap_to_vars(op, ddvs; toterm = identity,
878-
tofloat = true)
883+
tofloat)
879884
kwargs = merge(kwargs, (; ddvs))
880885
else
881886
du0 = nothing

0 commit comments

Comments
 (0)