@@ -330,17 +330,17 @@ struct MissingGuessError <: Exception
330
330
vals:: Vector{Any}
331
331
end
332
332
333
- function Base. showerror (io:: IO , err:: MissingGuessError )
334
- println (io,
335
- """
336
- Cyclic guesses detected in the system. Symbolic values were found for the following variables/parameters in the map: \
337
- """ )
333
+ function Base. showerror (io:: IO , err:: MissingGuessError )
334
+ println (io,
335
+ """
336
+ Cyclic guesses detected in the system. Symbolic values were found for the following variables/parameters in the map: \
337
+ """ )
338
338
for (sym, val) in zip (err. syms, err. vals)
339
339
println (io, " $sym => $val " )
340
340
end
341
341
println (io,
342
- """
343
- In order to resolve this, please provide additional numeric guesses so that the chain can be resolved to assign numeric values to each variable. """ )
342
+ """
343
+ In order to resolve this, please provide additional numeric guesses so that the chain can be resolved to assign numeric values to each variable. """ )
344
344
end
345
345
346
346
"""
@@ -363,11 +363,8 @@ Keyword arguments:
363
363
"""
364
364
function better_varmap_to_vars (varmap:: AbstractDict , vars:: Vector ;
365
365
tofloat = true , container_type = Array,
366
- <<<<<< < HEAD
367
- 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)
366
+ toterm = default_toterm, promotetoconcrete = nothing , check = true ,
367
+ allow_symbolic = false , is_initializeprob = false )
371
368
isempty (vars) && return nothing
372
369
373
370
if check
@@ -385,8 +382,8 @@ function better_varmap_to_vars(varmap::AbstractDict, vars::Vector;
385
382
end
386
383
387
384
if ! isempty (missingsyms)
388
- is_initializeprob ? throw (MissingGuessError (missingsyms, missingvals)) :
389
- throw (UnexpectedSymbolicValueInVarmap (missingsyms[1 ], missingvals[1 ]))
385
+ is_initializeprob ? throw (MissingGuessError (missingsyms, missingvals)) :
386
+ throw (UnexpectedSymbolicValueInVarmap (missingsyms[1 ], missingvals[1 ]))
390
387
end
391
388
end
392
389
@@ -734,12 +731,7 @@ Keyword arguments:
734
731
- `fully_determined`: Override whether the initialization system is fully determined.
735
732
- `check_initialization_units`: Enable or disable unit checks when constructing the
736
733
initialization problem.
737
- <<<<<<< HEAD
738
- - `tofloat`, `use_union`, `is_initializeprob`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and
739
- possibly `p`).
740
- =======
741
- - `tofloat`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and possibly `p`).
742
- >>>>>>> a5e1e0239a (remove instances of)
734
+ - `tofloat`, `is_initializeprob`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and possibly `p`).
743
735
- `u0_constructor`: A function to apply to the `u0` value returned from `better_varmap_to_vars`
744
736
to construct the final `u0` value.
745
737
- `du0map`: A map of derivatives to values. See `implicit_dae`.
@@ -848,21 +840,8 @@ function process_SciMLProblem(
848
840
evaluate_varmap! (op, dvs; limit = substitution_limit)
849
841
850
842
u0 = better_varmap_to_vars (
851
- <<<<<< < HEAD
852
- <<<<<< < HEAD
853
- <<<<<< < HEAD
854
- op, dvs; tofloat = true , use_union = false ,
843
+ op, dvs; tofloat = true ,
855
844
container_type = u0Type, allow_symbolic = symbolic_u0, is_initializeprob)
856
- ====== =
857
- op, dvs; tofloat, use_union,
858
- ====== =
859
- op, dvs; tofloat, use_union = false ,
860
- >>>>>> > 6951e652 f2 (fix: don' t propagate for u0)
861
- container_type = u0Type, allow_symbolic = symbolic_u0)
862
- >>>>>> > 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)
866
845
867
846
if u0 != = nothing
868
847
u0 = u0_constructor (u0)
0 commit comments