Skip to content

Commit f9704e6

Browse files
feat: propagate algebraic_only, allow_incomplete kwargs to initialization in process_SciMLProblem
1 parent 8a16286 commit f9704e6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/systems/problem_utils.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,8 @@ Keyword arguments:
701701
determined.
702702
- `force_initialization_time_independent`: Whether to force the initialization to not use
703703
the independent variable of `sys`.
704+
- `algebraic_only`: Whether to build the initialization problem using only algebraic equations.
705+
- `allow_incomplete`: Whether to allow incomplete initialization problems.
704706
705707
All other keyword arguments are passed as-is to `constructor`.
706708
"""
@@ -715,7 +717,8 @@ function process_SciMLProblem(
715717
circular_dependency_max_cycle_length = length(all_symbols(sys)),
716718
circular_dependency_max_cycles = 10,
717719
substitution_limit = 100, use_scc = true,
718-
force_initialization_time_independent = false, kwargs...)
720+
force_initialization_time_independent = false, algebraic_only = false,
721+
allow_incomplete = false, kwargs...)
719722
dvs = unknowns(sys)
720723
ps = parameters(sys)
721724
iv = has_iv(sys) ? get_iv(sys) : nothing
@@ -753,7 +756,7 @@ function process_SciMLProblem(
753756
eval_expression, eval_module, fully_determined,
754757
warn_cyclic_dependency, check_units = check_initialization_units,
755758
circular_dependency_max_cycle_length, circular_dependency_max_cycles, use_scc,
756-
force_time_independent = force_initialization_time_independent)
759+
force_time_independent = force_initialization_time_independent, algebraic_only, allow_incomplete)
757760

758761
kwargs = merge(kwargs, kws)
759762
end

0 commit comments

Comments
 (0)