diff --git a/src/Geometry/BoundaryTriangulations.jl b/src/Geometry/BoundaryTriangulations.jl index d040d833b..1de7dcf9c 100644 --- a/src/Geometry/BoundaryTriangulations.jl +++ b/src/Geometry/BoundaryTriangulations.jl @@ -137,7 +137,7 @@ function BoundaryTriangulation( bgface_to_mask::AbstractVector{Bool}, bgface_to_lcell::AbstractVector{<:Integer}) - face_to_bgface = findall(bgface_to_mask) + face_to_bgface = convert(Vector{Int32},findall(bgface_to_mask)) BoundaryTriangulation(model,face_to_bgface,bgface_to_lcell) end diff --git a/src/Geometry/Triangulations.jl b/src/Geometry/Triangulations.jl index ed82f0f70..883ec0ab6 100644 --- a/src/Geometry/Triangulations.jl +++ b/src/Geometry/Triangulations.jl @@ -193,7 +193,7 @@ function Triangulation( if tags === nothing grid = Grid(ReferenceFE{d},model) - tface_to_mface = IdentityVector(num_cells(grid)) + tface_to_mface = IdentityVector(Int32(num_cells(grid))) BodyFittedTriangulation(model,grid,tface_to_mface) else mface_to_mask = get_face_mask(labels,tags,d)