Skip to content

Commit

Permalink
Error if plane not identified
Browse files Browse the repository at this point in the history
  • Loading branch information
bclyons12 committed Sep 6, 2023
1 parent 39773e8 commit 184f48a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ function is_in_tri(lp, a, b, c)
return true
end



mutable struct BBnode{T<:Real}
index::Int
parent::Int
Expand Down Expand Up @@ -270,7 +268,7 @@ function find_element(meshtree::BBtree{T}, r::Real, z::Real, φ::Real=0.0) where
offset += Np
end
end
@assert offset < N
(offset >= N) && throw(ErrorException(" is not found in meshtree for some reason"))
end

k = find_element(meshtree, meshtree.root, r, z, localφ)
Expand Down

0 comments on commit 184f48a

Please sign in to comment.