Skip to content

Commit

Permalink
generalize type of threshold in 1D gradient algo
Browse files Browse the repository at this point in the history
  • Loading branch information
warisa-r committed Sep 17, 2024
1 parent 5bb4f15 commit 3016993
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shock_point_detectors/1D/gradient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ function detect_discon_at_timestep(density_at_t, velocity_at_t, pressure_at_t, x
return shock_locations
end

struct GradientShockDetectionAlgo <: Abstract1DShockDetectionAlgo
threshold::Float64
end # GradientEntropyShockDetectionAlgo
struct GradientShockDetectionAlgo{T} <: Abstract1DShockDetectionAlgo
threshold::T
end # GradientShockDetectionAlgo

function detect(flow_data::FlowData, alg::GradientShockDetectionAlgo)
# Unpack all the values from the detector
Expand Down

0 comments on commit 3016993

Please sign in to comment.