Skip to content

Commit 0f5cf1a

Browse files
refactor: rename check_units to check_initialization_units
1 parent f7bf33a commit 0f5cf1a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/systems/problem_utils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,8 @@ Keyword arguments:
396396
- `eval_module`: If `eval_expression == true`, the module to `eval` into. Otherwise, the module
397397
in which to generate the `RuntimeGeneratedFunction`.
398398
- `fully_determined`: Override whether the initialization system is fully determined.
399-
- `check_units`: Enable or disable unit checks when constructing the initialization problem.
399+
- `check_initialization_units`: Enable or disable unit checks when constructing the
400+
initialization problem.
400401
- `tofloat`, `use_union`: Passed to [`better_varmap_to_vars`](@ref) for building `u0` (and
401402
possibly `p`).
402403
- `u0_constructor`: A function to apply to the `u0` value returned from `better_varmap_to_vars`
@@ -414,7 +415,7 @@ function process_SciMLProblem(
414415
implicit_dae = false, t = nothing, guesses = AnyDict(),
415416
warn_initialize_determined = true, initialization_eqs = [],
416417
eval_expression = false, eval_module = @__MODULE__, fully_determined = false,
417-
check_units = false, tofloat = true, use_union = false,
418+
check_initialization_units = false, tofloat = true, use_union = false,
418419
u0_constructor = identity, du0map = nothing, check_length = true, symbolic_u0 = false, kwargs...)
419420
dvs = unknowns(sys)
420421
ps = parameters(sys)
@@ -464,7 +465,7 @@ function process_SciMLProblem(
464465
!isempty(initialization_equations(sys))) && t !== nothing
465466
initializeprob = ModelingToolkit.InitializationProblem(
466467
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, check_units = check_initialization_units)
468469
initializeprobmap = getu(initializeprob, unknowns(sys))
469470

470471
punknowns = [p

0 commit comments

Comments
 (0)