Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Jan 8, 2025
1 parent 985dc5f commit 1c787df
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ function compute_PairedExplicitRK2_butcher_tableau(num_stages, eig_vals, tspan,
num_monomial_coeffs = length(monomial_coeffs)
@assert num_monomial_coeffs == coeffs_max
A = compute_a_coeffs(num_stages, stage_scaling_factors, monomial_coeffs)
a_matrix[:, 1] -= A
a_matrix[:, 2] = A
a_matrix[1, :] -= A
a_matrix[2, :] = A
end

return a_matrix, c, dt_opt
Expand Down Expand Up @@ -92,8 +92,8 @@ function compute_PairedExplicitRK2_butcher_tableau(num_stages,
@assert num_monomial_coeffs == coeffs_max
A = compute_a_coeffs(num_stages, stage_scaling_factors, monomial_coeffs)

a_matrix[:, 1] -= A
a_matrix[:, 2] = A
a_matrix[1, :] -= A
a_matrix[2, :] = A
end

return a_matrix, c
Expand Down

0 comments on commit 1c787df

Please sign in to comment.