Skip to content

Commit

Permalink
add module to RuntimeGeneratedFunctions call (#2259)
Browse files Browse the repository at this point in the history
Co-authored-by: Yingbo Ma <[email protected]>
  • Loading branch information
xtalax and YingboMa authored Sep 20, 2023
1 parent 475ade8 commit 68dfae6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/systems/pde/pdesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
analytic = nothing,
analytic_func = nothing,
gui_metadata = nothing,
eval_module = @__MODULE__,
checks::Union{Bool, Int} = true,
name)
if checks == true || (checks & CheckUnits) > 0
Expand All @@ -114,7 +115,7 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
p = ps isa SciMLBase.NullParameters ? [] : map(a -> a.first, ps)
args = vcat(DestructuredArgs(p), args)
ex = Func(args, [], eq.rhs) |> toexpr
eq.lhs => drop_expr(@RuntimeGeneratedFunction(ex))
eq.lhs => drop_expr(@RuntimeGeneratedFunction(eval_module, ex))
end
end
end
Expand Down

0 comments on commit 68dfae6

Please sign in to comment.