Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Jan 8, 2025
1 parent 10574df commit 01471d5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function compute_PairedExplicitRK2_butcher_tableau(num_stages, eig_vals, tspan,
dteps,
eig_vals; verbose)

if coeffs_max > 0
if num_coeffs_max > 0
monomial_coeffs = undo_normalization!(monomial_coeffs, consistency_order,
num_stages)
num_monomial_coeffs = length(monomial_coeffs)
Expand All @@ -82,15 +82,15 @@ function compute_PairedExplicitRK2_butcher_tableau(num_stages,
a_matrix = zeros(2, num_coeffs_max)
a_matrix[1, :] = c[3:end]

if coeffs_max > 0
if num_coeffs_max > 0
path_monomial_coeffs = joinpath(base_path_monomial_coeffs,
"gamma_" * string(num_stages) * ".txt")

@assert isfile(path_monomial_coeffs) "Couldn't find file"
monomial_coeffs = readdlm(path_monomial_coeffs, Float64)
num_monomial_coeffs = size(monomial_coeffs, 1)

@assert num_monomial_coeffs == coeffs_max
@assert num_monomial_coeffs == num_coeffs_max
A = compute_a_coeffs(num_stages, stage_scaling_factors, monomial_coeffs)

a_matrix[1, :] -= A
Expand Down

0 comments on commit 01471d5

Please sign in to comment.