Skip to content

Commit 44857dd

Browse files
fix: fallback op to defs if empty
1 parent 7c3886e commit 44857dd

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
@@ -71,6 +71,9 @@ function generate_initializesystem_timevarying(sys::AbstractSystem;
7171

7272
# PREPROCESSING
7373
op = anydict(op)
74+
if isempty(op)
75+
op = copy(defs)
76+
end
7477
u0map = anydict()
7578
pmap = anydict()
7679
build_operating_point!(sys, op, u0map, pmap, Dict(), unknowns(sys),

0 commit comments

Comments
 (0)