@@ -363,7 +363,11 @@ Keyword arguments:
363363"""
364364function better_varmap_to_vars (varmap:: AbstractDict , vars:: Vector ;
365365 tofloat = true , container_type = Array,
366+ <<<<<< < HEAD
366367 toterm = default_toterm, promotetoconcrete = nothing , check = true , allow_symbolic = false , is_initializeprob = false )
368+ ====== =
369+ toterm = default_toterm, promotetoconcrete = nothing , check = true , allow_symbolic = false )
370+ >>>>>> > a5e1e0239a (remove instances of)
367371 isempty (vars) && return nothing
368372
369373 if check
@@ -730,8 +734,12 @@ Keyword arguments:
730734- `fully_determined`: Override whether the initialization system is fully determined.
731735- `check_initialization_units`: Enable or disable unit checks when constructing the
732736 initialization problem.
737+ <<<<<<< HEAD
733738- `tofloat`, `use_union`, `is_initializeprob`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and
734739 possibly `p`).
740+ =======
741+ - `tofloat`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and possibly `p`).
742+ >>>>>>> a5e1e0239a (remove instances of)
735743- `u0_constructor`: A function to apply to the `u0` value returned from `better_varmap_to_vars`
736744 to construct the final `u0` value.
737745- `du0map`: A map of derivatives to values. See `implicit_dae`.
@@ -761,7 +769,7 @@ function process_SciMLProblem(
761769 implicit_dae = false , t = nothing , guesses = AnyDict (),
762770 warn_initialize_determined = true , initialization_eqs = [],
763771 eval_expression = false , eval_module = @__MODULE__ , fully_determined = nothing ,
764- check_initialization_units = false , tofloat = true , use_union = false ,
772+ check_initialization_units = false , tofloat = true ,
765773 u0_constructor = identity, du0map = nothing , check_length = true ,
766774 symbolic_u0 = false , warn_cyclic_dependency = false ,
767775 circular_dependency_max_cycle_length = length (all_symbols (sys)),
@@ -841,6 +849,7 @@ function process_SciMLProblem(
841849
842850 u0 = better_varmap_to_vars (
843851<<<<<< < HEAD
852+ <<<<<< < HEAD
844853<<<<<< < HEAD
845854 op, dvs; tofloat = true , use_union = false ,
846855 container_type = u0Type, allow_symbolic = symbolic_u0, is_initializeprob)
@@ -851,6 +860,9 @@ function process_SciMLProblem(
851860>>>>>> > 6951e652 f2 (fix: don' t propagate for u0)
852861 container_type = u0Type, allow_symbolic = symbolic_u0)
853862>>>>>> > e31ae1bcc9 (fix: propagate ` tofloat` , ` use_union` to ` better_varmap_to_vars` )
863+ ====== =
864+ op, dvs; tofloat, container_type = u0Type, allow_symbolic = symbolic_u0)
865+ >>>>>> > a5e1e0239a (remove instances of)
854866
855867 if u0 != = nothing
856868 u0 = u0_constructor (u0)
@@ -875,7 +887,7 @@ function process_SciMLProblem(
875887 if is_split (sys)
876888 p = MTKParameters (sys, op)
877889 else
878- p = better_varmap_to_vars (op, ps; tofloat, use_union, container_type = pType)
890+ p = better_varmap_to_vars (op, ps; tofloat, container_type = pType)
879891 end
880892
881893 if implicit_dae && du0map != = nothing
@@ -944,15 +956,14 @@ end
944956# #############
945957
946958"""
947- u0, p, defs = get_u0_p(sys, u0map, parammap; use_union=true, tofloat=true)
959+ u0, p, defs = get_u0_p(sys, u0map, parammap; tofloat=true)
948960
949961Take dictionaries with initial conditions and parameters and convert them to numeric arrays `u0` and `p`. Also return the merged dictionary `defs` containing the entire operating point.
950962"""
951963function get_u0_p (sys,
952964 u0map,
953965 parammap = nothing ;
954966 t0 = nothing ,
955- use_union = true ,
956967 tofloat = true ,
957968 symbolic_u0 = false )
958969 dvs = unknowns (sys)
@@ -991,19 +1002,19 @@ function get_u0_p(sys,
9911002 end
9921003
9931004 if symbolic_u0
994- u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = false , use_union = false )
1005+ u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = false )
9951006 else
996- u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = true , use_union )
1007+ u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = true )
9971008 end
998- p = varmap_to_vars (parammap, ps; defaults = defs, tofloat, use_union )
1009+ p = varmap_to_vars (parammap, ps; defaults = defs, tofloat)
9991010 p = p === nothing ? SciMLBase. NullParameters () : p
10001011 t0 != = nothing && delete! (defs, get_iv (sys))
10011012 u0, p, defs
10021013end
10031014
10041015function get_u0 (
10051016 sys, u0map, parammap = nothing ; symbolic_u0 = false ,
1006- toterm = default_toterm, t0 = nothing , use_union = true )
1017+ toterm = default_toterm, t0 = nothing )
10071018 dvs = unknowns (sys)
10081019 ps = parameters (sys)
10091020 defs = defaults (sys)
@@ -1026,9 +1037,9 @@ function get_u0(
10261037 defs = mergedefaults (defs, obsmap, u0map, dvs)
10271038 if symbolic_u0
10281039 u0 = varmap_to_vars (
1029- u0map, dvs; defaults = defs, tofloat = false , use_union = false , toterm)
1040+ u0map, dvs; defaults = defs, tofloat = false , toterm)
10301041 else
1031- u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = true , use_union, toterm)
1042+ u0 = varmap_to_vars (u0map, dvs; defaults = defs, tofloat = true , toterm)
10321043 end
10331044 t0 != = nothing && delete! (defs, get_iv (sys))
10341045 return u0, defs
0 commit comments