Skip to content

Commit

Permalink
Add formatter
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <[email protected]>
  • Loading branch information
ErikQQY committed Jun 1, 2024
1 parent 61a089c commit 4c10b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
style = "sciml"
format_markdown = true
annotate_untyped_fields_with_any = false
format_docstrings = true
join_lines_based_on_source = false
2 changes: 1 addition & 1 deletion src/delay/pece.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function SciMLBase.solve!(cache::DelayPECECache{iip, T}) where {iip, T}
if iip
tmp = zeros(length(cache.yp[1]))
prob.f(tmp, cache.y[j], v(cache, j), p, mesh[j])
cache.yp[n+1] = cache.yp[n+1]+generalized_binomials(j-1, n-1, order, dt)*tmp
cache.yp[n+1] = cache.yp[n+1] + generalized_binomials(j-1, n-1, order, dt)*tmp
else
length(u0) == 1 ? (tmp = prob.f(cache.y[j][1], v(cache, j)[1], p, mesh[j])) : (tmp = prob.f(cache.y[j], v(cache, j), p, mesh[j]))
@. cache.yp[n+1] = cache.yp[n+1] + generalized_binomials(j-1, n-1, order, dt)*tmp
Expand Down

1 comment on commit 4c10b03

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Benchmark suite Current: 4c10b03 Previous: 61a089c Ratio
FLMM/Trapezoid 17545076 ns 17357485 ns 1.01
FLMM/NewtonGregory 16847063.5 ns 16803226 ns 1.00
FLMM/BDF 16937641.5 ns 16816974.5 ns 1.01

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.