Skip to content

Commit

Permalink
eval_module
Browse files Browse the repository at this point in the history
  • Loading branch information
xtalax committed Sep 18, 2023
1 parent 732c3ee commit 5cddadd
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(@__MODULE__, ex))
eq.lhs => drop_expr(@RuntimeGeneratedFunction(eval_module, ex))

Check warning on line 118 in src/systems/pde/pdesystem.jl

View check run for this annotation

Codecov / codecov/patch

src/systems/pde/pdesystem.jl#L112-L118

Added lines #L112 - L118 were not covered by tests
end
end
end
Expand Down

0 comments on commit 5cddadd

Please sign in to comment.