Skip to content

Commit

Permalink
Fix to boundary tag logic
Browse files Browse the repository at this point in the history
  • Loading branch information
moyner committed Aug 24, 2024
1 parent 43b6c24 commit c7137c5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/CornerPointGrid/processing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -632,14 +632,12 @@ function grid_from_primitives(primitives; nnc = missing)
end
for k in (:left, :right, :upper, :lower, :top, :bottom)
bnd_ix = Vector{Int}()
for (btype, v) in pairs(boundary_type)
for (f, btype) in pairs(boundary_type)
if btype == k
push!(bnd_ix, v)
push!(bnd_ix, f)
end
end
if length(bnd_ix) > 0
set_mesh_entity_tag!(g, BoundaryFaces(), :direction, k, bnd_ix)
end
set_mesh_entity_tag!(g, BoundaryFaces(), :direction, k, bnd_ix)
end
return g
end

0 comments on commit c7137c5

Please sign in to comment.