Skip to content

Commit

Permalink
Type instability fix in _find_ncube_face_neighbor_deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
amartinhuertas committed May 7, 2020
1 parent 7fb3ae8 commit aa9e320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Geometry/CartesianDiscreteModels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ end
"""
function _find_ncube_face_neighbor_deltas(p::ExtrusionPolytope{D}) where {D}
nfaces = num_faces(p)
delta_faces = Vector{CartesianIndex}(undef, nfaces - 1)
delta_faces = Vector{CartesianIndex{D}}(undef, nfaces - 1)
for face_lid = 1:nfaces-1
delta_faces[face_lid] = _find_ncube_face_neighbor_delta(p, face_lid)
end
Expand Down

0 comments on commit aa9e320

Please sign in to comment.