@@ -396,7 +396,8 @@ Keyword arguments:
396
396
- `eval_module`: If `eval_expression == true`, the module to `eval` into. Otherwise, the module
397
397
in which to generate the `RuntimeGeneratedFunction`.
398
398
- `fully_determined`: Override whether the initialization system is fully determined.
399
- - `check_units`: Enable or disable unit checks.
399
+ - `check_initialization_units`: Enable or disable unit checks when constructing the
400
+ initialization problem.
400
401
- `tofloat`, `use_union`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and
401
402
possibly `p`).
402
403
- `u0_constructor`: A function to apply to the `u0` value returned from `better_varmap_to_vars`
@@ -414,7 +415,7 @@ function process_SciMLProblem(
414
415
implicit_dae = false , t = nothing , guesses = AnyDict (),
415
416
warn_initialize_determined = true , initialization_eqs = [],
416
417
eval_expression = false , eval_module = @__MODULE__ , fully_determined = false ,
417
- check_units = true , tofloat = true , use_union = false ,
418
+ check_initialization_units = false , tofloat = true , use_union = false ,
418
419
u0_constructor = identity, du0map = nothing , check_length = true , symbolic_u0 = false , kwargs... )
419
420
dvs = unknowns (sys)
420
421
ps = parameters (sys)
@@ -464,7 +465,8 @@ function process_SciMLProblem(
464
465
! isempty (initialization_equations (sys))) && t != = nothing
465
466
initializeprob = ModelingToolkit. InitializationProblem (
466
467
sys, t, u0map, pmap; guesses, warn_initialize_determined,
467
- initialization_eqs, eval_expression, eval_module, fully_determined, check_units)
468
+ initialization_eqs, eval_expression, eval_module, fully_determined,
469
+ check_units = check_initialization_units)
468
470
initializeprobmap = getu (initializeprob, unknowns (sys))
469
471
470
472
punknowns = [p
0 commit comments