Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/absorb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function setup_q_profile_2D_serial!(w_inv_q::Array{T,2}, freesurface::Bool, nspo
dt::T, q_freq::T, q_min::T, q_interior::T) where T<:Float32
# check for unphysical q pairing
if (q_min < eps(T)) && (q_interior < eps(T))
@info "q_min & q_interior set to less than machine epsilon; setting wOverQ to zero"
w_inv_q .= zero(T)
return
end
Expand Down Expand Up @@ -48,6 +49,7 @@ function setup_q_profile_2D_threaded!(w_inv_q::Array{T,2}, freesurface, nsponge:
dt::T, q_freq::T, q_min::T, q_interior::T) where T<:Float32
# check for unphysical q pairing
if (q_min < eps(T)) && (q_interior < eps(T))
@info "q_min & q_interior set to less than machine epsilon; setting wOverQ to zero"
w_inv_q .= zero(T)
return
end
Expand Down Expand Up @@ -76,6 +78,7 @@ function setup_q_profile_3D_serial!(w_inv_q::Array{T,3}, freesurface::Bool, nspo
dt::T, q_freq::T, q_min::T, q_interior::T) where T<:Float32
# check for unphysical q pairing
if (q_min < eps(T)) && (q_interior < eps(T))
@info "q_min & q_interior set to less than machine epsilon; setting wOverQ to zero"
w_inv_q .= zero(T)
return
end
Expand Down Expand Up @@ -113,6 +116,7 @@ function setup_q_profile_3D_threaded!(w_inv_q::Array{T,3}, freesurface, nsponge:

# check for unphysical q pairing
if (q_min < eps(T)) && (q_interior < eps(T))
@info "q_min & q_interior set to less than machine epsilon; setting wOverQ to zero"
w_inv_q .= zero(T)
return
end
Expand Down