Skip to content

Commit 1e83c94

Browse files
Fix constructor of AutoMTK
1 parent 733a26a commit 1e83c94

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/legacy.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@
1111

1212
@deprecate AutoSparseZygote() AutoSparse(AutoZygote())
1313

14-
@deprecate AutoModelingToolkit(; kwargs...) AutoSparse(AutoSymbolics())
14+
function AutoModelingToolkit(sparse = false, cons_sparse = false; kwargs...)
15+
@warn "AutoModelingToolkit(args...) is deprecated, use AutoSymbolics() or AutoSparse(AutoSymbolics()) instead."
16+
if sparse || cons_sparse
17+
return AutoSparse(AutoSymbolics())
18+
else
19+
return AutoSymbolics()
20+
end
21+
end

0 commit comments

Comments
 (0)