Skip to content

Commit

Permalink
Update src/time_integration/paired_explicit_runge_kutta/methods_PERK4.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Warisa Roongaraya <[email protected]>
  • Loading branch information
DanielDoehring and warisa-r authored Dec 19, 2024
1 parent 44f4ebe commit 2244572
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ function compute_PairedExplicitRK4_butcher_tableau(num_stages, tspan,

if num_stages > 5
a_unknown = copy(monomial_coeffs)
l = 2
for _ in 5:(num_stages - 2)
a_unknown[l] /= monomial_coeffs[l - 1]
l += 1
for i in 5:(num_stages - 2)
a_unknown_1[i - 3] /= monomial_coeffs[i - 4]
end
reverse!(a_unknown)

Expand Down

0 comments on commit 2244572

Please sign in to comment.