Skip to content

Commit

Permalink
Update src/util.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
JoshuaLampert and ranocha authored May 23, 2024
1 parent c5d95bc commit 0f67cc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ function convergence_test(mod::Module, example::AbstractString, Ns::AbstractVect
# Types of errors to be calculated
errors = Dict(:l2 => Float64[], :linf => Float64[])

Base.require_one_based_indexing(Ns)
sort!(Ns)
iterations = length(Ns)
# run simulations and extract errors
Expand Down

0 comments on commit 0f67cc2

Please sign in to comment.