Skip to content

Commit adf98ba

Browse files
format
1 parent e1b098b commit adf98ba

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

src/systems/clock_inference.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,12 @@ function generate_discrete_affect(
416416
inits = map(a -> eval_module.eval(toexpr(LiteralExpr(a))), init_funs)
417417
else
418418
affects = map(affect_funs) do a
419-
drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, toexpr(LiteralExpr(a))))
419+
drop_expr(RuntimeGeneratedFunction(
420+
eval_module, eval_module, toexpr(LiteralExpr(a))))
420421
end
421422
inits = map(init_funs) do a
422-
drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, toexpr(LiteralExpr(a))))
423+
drop_expr(RuntimeGeneratedFunction(
424+
eval_module, eval_module, toexpr(LiteralExpr(a))))
423425
end
424426
end
425427
defaults = Dict{Any, Any}(v => 0.0 for v in Iterators.flatten(inputs))

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ function DiffEqBase.ODEFunction{iip, specialize}(sys::AbstractODESystem,
356356
expression_module = eval_module,
357357
checkbounds = checkbounds, kwargs...)
358358
tgrad_oop, tgrad_iip = eval_expression ? eval_module.eval.(tgrad_gen) :
359-
(drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, ex)) for ex in tgrad_gen)
359+
(drop_expr(RuntimeGeneratedFunction(
360+
eval_module, eval_module, ex)) for ex in tgrad_gen)
360361
if p isa Tuple
361362
__tgrad(u, p, t) = tgrad_oop(u, p..., t)
362363
__tgrad(J, u, p, t) = tgrad_iip(J, u, p..., t)
@@ -377,7 +378,8 @@ function DiffEqBase.ODEFunction{iip, specialize}(sys::AbstractODESystem,
377378
expression_module = eval_module,
378379
checkbounds = checkbounds, kwargs...)
379380
jac_oop, jac_iip = eval_expression ? eval_module.eval.(jac_gen) :
380-
(drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, ex)) for ex in jac_gen)
381+
(drop_expr(RuntimeGeneratedFunction(
382+
eval_module, eval_module, ex)) for ex in jac_gen)
381383

382384
_jac(u, p, t) = jac_oop(u, p, t)
383385
_jac(J, u, p, t) = jac_iip(J, u, p, t)
@@ -501,7 +503,8 @@ function DiffEqBase.DAEFunction{iip}(sys::AbstractODESystem, dvs = unknowns(sys)
501503
expression_module = eval_module,
502504
checkbounds = checkbounds, kwargs...)
503505
jac_oop, jac_iip = eval_expression ? eval_module.eval.(jac_gen) :
504-
(drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, ex)) for ex in jac_gen)
506+
(drop_expr(RuntimeGeneratedFunction(
507+
eval_module, eval_module, ex)) for ex in jac_gen)
505508

506509
_jac(du, u, p, ˍ₋gamma, t) = jac_oop(du, u, p, ˍ₋gamma, t)
507510
_jac(du, u, p::MTKParameters, ˍ₋gamma, t) = jac_oop(du, u, p..., ˍ₋gamma, t)

src/systems/pde/pdesystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ struct PDESystem <: ModelingToolkit.AbstractMultivariateSystem
116116
p = ps isa SciMLBase.NullParameters ? [] : ps
117117
args = vcat(DestructuredArgs(p), args)
118118
ex = Func(args, [], eq.rhs) |> toexpr
119-
eq.lhs => drop_expr(RuntimeGeneratedFunction(eval_module, eval_module, ex))
119+
eq.lhs => drop_expr(RuntimeGeneratedFunction(
120+
eval_module, eval_module, ex))
120121
end
121122
end
122123
end

0 commit comments

Comments
 (0)