Skip to content

Commit c3af9ee

Browse files
feat: expose force_time_independent through process_SciMLProblem
1 parent 21ffc0d commit c3af9ee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/systems/problem_utils.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,8 @@ Keyword arguments:
684684
other to attempt to arrive at a numeric value.
685685
- `use_scc`: Whether to use `SCCNonlinearProblem` for initialization if the system is fully
686686
determined.
687+
- `force_initialization_time_independent`: Whether to force the initialization to not use
688+
the independent variable of `sys`.
687689
688690
All other keyword arguments are passed as-is to `constructor`.
689691
"""
@@ -697,7 +699,8 @@ function process_SciMLProblem(
697699
symbolic_u0 = false, warn_cyclic_dependency = false,
698700
circular_dependency_max_cycle_length = length(all_symbols(sys)),
699701
circular_dependency_max_cycles = 10,
700-
substitution_limit = 100, use_scc = true, kwargs...)
702+
substitution_limit = 100, use_scc = true,
703+
force_initialization_time_independent = false, kwargs...)
701704
dvs = unknowns(sys)
702705
ps = parameters(sys)
703706
iv = has_iv(sys) ? get_iv(sys) : nothing
@@ -728,7 +731,8 @@ function process_SciMLProblem(
728731
implicit_dae, warn_initialize_determined, initialization_eqs,
729732
eval_expression, eval_module, fully_determined,
730733
warn_cyclic_dependency, check_units = check_initialization_units,
731-
circular_dependency_max_cycle_length, circular_dependency_max_cycles, use_scc)
734+
circular_dependency_max_cycle_length, circular_dependency_max_cycles, use_scc,
735+
force_time_independent = force_initialization_time_independent)
732736

733737
kwargs = merge(kwargs, kws)
734738
end

0 commit comments

Comments
 (0)