@@ -1211,8 +1211,8 @@ Keyword arguments:
12111211- `fully_determined`: Override whether the initialization system is fully determined.
12121212- `check_initialization_units`: Enable or disable unit checks when constructing the
12131213 initialization problem.
1214- - `tofloat`, `is_initializeprob`: Passed to [`better_varmap_to_vars `](@ref) for building `u0` (and possibly `p`).
1215- - `u0_constructor`: A function to apply to the `u0` value returned from `better_varmap_to_vars `
1214+ - `tofloat`, `is_initializeprob`: Passed to [`varmap_to_vars `](@ref) for building `u0` (and possibly `p`).
1215+ - `u0_constructor`: A function to apply to the `u0` value returned from `varmap_to_vars `
12161216 to construct the final `u0` value.
12171217- `p_constructor`: A function to apply to each array buffer created when constructing the parameter object.
12181218- `du0map`: A map of derivatives to values. See `implicit_dae`.
@@ -1333,11 +1333,10 @@ function process_SciMLProblem(
13331333 @warn " Cycles in unknowns:\n $msg "
13341334 end
13351335 end
1336- evaluate_varmap! (op, dvs; limit = substitution_limit)
13371336
1338- u0 = better_varmap_to_vars (
1339- op, dvs; tofloat, floatT,
1340- container_type = u0Type, allow_symbolic = symbolic_u0, is_initializeprob )
1337+ u0 = varmap_to_vars (
1338+ op, dvs; tofloat, floatT, container_type = u0Type, allow_symbolic = symbolic_u0,
1339+ is_initializeprob, substitution_limit )
13411340
13421341 if u0 != = nothing
13431342 u0 = u0_constructor (u0)
@@ -1358,15 +1357,15 @@ function process_SciMLProblem(
13581357 @warn " Cycles in parameters:\n $msg "
13591358 end
13601359 end
1361- evaluate_varmap! (op, ps; limit = substitution_limit)
1360+
13621361 if is_split (sys)
13631362 # `pType` is usually `Dict` when the user passes key-value pairs.
13641363 if ! (pType <: AbstractArray )
13651364 pType = Array
13661365 end
13671366 p = MTKParameters (sys, op; floatT = floatT, p_constructor)
13681367 else
1369- p = p_constructor (better_varmap_to_vars (op, ps; tofloat, container_type = pType))
1368+ p = p_constructor (varmap_to_vars (op, ps; tofloat, container_type = pType))
13701369 end
13711370
13721371 if implicit_dae && du0map != = nothing
0 commit comments