Skip to content

Commit ff64940

Browse files
committed
Fix preface name collision
1 parent f6e72c2 commit ff64940

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ function generate_function(
103103
t = get_iv(sys)
104104

105105
if has_preface(sys) && (pre = preface(sys); pre !== nothing)
106-
pre = ex -> Let(pre, ex)
106+
pre_ = ex -> Let(pre, ex)
107107
else
108-
pre = ex -> ex
108+
pre_ = ex -> ex
109109
end
110110

111111
if implicit_dae
112-
build_function(rhss, ddvs, u, p, t; postprocess_fbody=pre, kwargs...)
112+
build_function(rhss, ddvs, u, p, t; postprocess_fbody=pre_, kwargs...)
113113
else
114-
build_function(rhss, u, p, t; postprocess_fbody=pre, kwargs...)
114+
build_function(rhss, u, p, t; postprocess_fbody=pre_, kwargs...)
115115
end
116116
end
117117

0 commit comments

Comments
 (0)