Skip to content

Commit 269ef94

Browse files
feat: propagate algebraic_only, allow_incomplete kwargs to initialization in process_SciMLProblem
1 parent 869faad commit 269ef94

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
@@ -708,6 +708,8 @@ Keyword arguments:
708708
determined.
709709
- `force_initialization_time_independent`: Whether to force the initialization to not use
710710
the independent variable of `sys`.
711+
- `algebraic_only`: Whether to build the initialization problem using only algebraic equations.
712+
- `allow_incomplete`: Whether to allow incomplete initialization problems.
711713
712714
All other keyword arguments are passed as-is to `constructor`.
713715
"""
@@ -722,7 +724,8 @@ function process_SciMLProblem(
722724
circular_dependency_max_cycle_length = length(all_symbols(sys)),
723725
circular_dependency_max_cycles = 10,
724726
substitution_limit = 100, use_scc = true,
725-
force_initialization_time_independent = false, kwargs...)
727+
force_initialization_time_independent = false, algebraic_only = false,
728+
allow_incomplete = false, kwargs...)
726729
dvs = unknowns(sys)
727730
ps = parameters(sys)
728731
iv = has_iv(sys) ? get_iv(sys) : nothing
@@ -759,7 +762,7 @@ function process_SciMLProblem(
759762
eval_expression, eval_module, fully_determined,
760763
warn_cyclic_dependency, check_units = check_initialization_units,
761764
circular_dependency_max_cycle_length, circular_dependency_max_cycles, use_scc,
762-
force_time_independent = force_initialization_time_independent)
765+
force_time_independent = force_initialization_time_independent, algebraic_only, allow_incomplete)
763766

764767
kwargs = merge(kwargs, kws)
765768
end

0 commit comments

Comments
 (0)