Skip to content

Commit

Permalink
add module to rgf call
Browse files Browse the repository at this point in the history
  • Loading branch information
xtalax committed Sep 14, 2023
1 parent 5fff919 commit fb66ff2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/systems/pde/pdesystem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,16 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
throw(ArgumentError("The number of analytic solutions must match the number of dependent variables"))
end

if isnothing(analytic_func)
analytic_func = map(analytic) do eq
args = arguments(eq.lhs)
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))
end
end
end
if isnothing(analytic_func)
analytic_func = map(analytic) do eq
args = arguments(eq.lhs)
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__, @__MODULE__, ex))

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

View check run for this annotation

Codecov / codecov/patch

src/systems/pde/pdesystem.jl#L111-L117

Added lines #L111 - L117 were not covered by tests
end
end
end

if !isnothing(analytic_func)
analytic_func = analytic_func isa Dict ? analytic_func : analytic_func |> Dict
Expand Down

0 comments on commit fb66ff2

Please sign in to comment.