Skip to content

Commit

Permalink
Update Benchmark.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Apr 10, 2024
1 parent 3d0539e commit 8850dfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ function benchmark_forward_problem(m::AbstractFEStateMap, φh, ranks; nreps = 10
end

"""
benchmark_advection(stencil::AdvectionStencil, φ0, v0, γ, ranks; nreps)
benchmark_advection(stencil::LevelSetEvolution, φ0, v0, γ, ranks; nreps)
Benchmark solving the Hamilton-Jacobi evolution equation given a `stencil`,
level-set function `φ0`, velocity function `v0`, and time step coefficient `γ`.
See [`advect!`](@ref) for input types.
"""
function benchmark_advection(stencil::AdvectionStencil, φ0, v0, γ, ranks; nreps = 10)
function benchmark_advection(stencil::LevelSetEvolution, φ0, v0, γ, ranks; nreps = 10)
function f(stencil,φ,v,γ)
advect!(stencil,φ,v,γ)
end
Expand All @@ -136,12 +136,12 @@ function benchmark_advection(stencil::AdvectionStencil, φ0, v0, γ, ranks; nrep
end

"""
benchmark_reinitialisation(stencil::AdvectionStencil, φ0, γ_reinit, ranks; nreps)
benchmark_reinitialisation(stencil::LevelSetEvolution, φ0, γ_reinit, ranks; nreps)
Benchmark solving the reinitialisation equation given a `stencil`, level-set function
`φ0`, and time step coefficient `γ`. See [`reinit!`](@ref) for input types.
"""
function benchmark_reinitialisation(stencil::AdvectionStencil, φ0, γ_reinit, ranks; nreps = 10)
function benchmark_reinitialisation(stencil::LevelSetEvolution, φ0, γ_reinit, ranks; nreps = 10)
function f(stencil,φ,γ_reinit)
reinit!(stencil,φ,γ_reinit)
end
Expand Down

0 comments on commit 8850dfa

Please sign in to comment.