We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 475ade8 commit 68dfae6Copy full SHA for 68dfae6
src/systems/pde/pdesystem.jl
@@ -94,6 +94,7 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
94
analytic = nothing,
95
analytic_func = nothing,
96
gui_metadata = nothing,
97
+ eval_module = @__MODULE__,
98
checks::Union{Bool, Int} = true,
99
name)
100
if checks == true || (checks & CheckUnits) > 0
@@ -114,7 +115,7 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
114
115
p = ps isa SciMLBase.NullParameters ? [] : map(a -> a.first, ps)
116
args = vcat(DestructuredArgs(p), args)
117
ex = Func(args, [], eq.rhs) |> toexpr
- eq.lhs => drop_expr(@RuntimeGeneratedFunction(ex))
118
+ eq.lhs => drop_expr(@RuntimeGeneratedFunction(eval_module, ex))
119
end
120
121
0 commit comments