Skip to content

Commit 044eb48

Browse files
fix: fallback op to defs if empty
1 parent 9462b80 commit 044eb48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function generate_initializesystem_timevarying(sys::AbstractSystem;
4040

4141
# PREPROCESSING
4242
op = anydict(op)
43+
if isempty(op)
44+
op = copy(defs)
45+
end
4346
u0map = anydict()
4447
pmap = anydict()
4548
build_operating_point!(sys, op, u0map, pmap, Dict(), unknowns(sys),

0 commit comments

Comments
 (0)