Skip to content

Commit d31de82

Browse files
authored
avoid Core.Box in the package (#1265)
Uses JuliaLang/julia#60478 to find `Core.Box` entries in the package and remove them. After this, there are no such closure boxes in the package.
1 parent fccae80 commit d31de82

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Dofs/ConstraintHandler.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,8 +1189,8 @@ function _add!(
11891189
union!(all_node_idxs, nodes)
11901190
for n in nodes
11911191
x = get_node_coordinate(grid, n)
1192-
min_x = Tx(i -> min(min_x[i], x[i]))
1193-
max_x = Tx(i -> max(max_x[i], x[i]))
1192+
min_x = Tx(min.(min_x.data, x.data))
1193+
max_x = Tx(max.(max_x.data, x.data))
11941194
end
11951195
end
11961196
all_node_idxs_v = collect(all_node_idxs)

src/Export/VTK.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,10 @@ function create_discontinuous_vtk_griddata(grid::Grid{dim, C, T}) where {dim, C,
399399
cell_coords = getcoordinates(cell)
400400
n = length(cell_coords)
401401
cellnodes[cellid(cell)] = (1:n) .+ icoord
402-
vtk_cellnodes = nodes_to_vtkorder(CT((ntuple(i -> i + icoord, n))))
403-
cls[cellid(cell)] = WriteVTK.MeshCell(vtk_celltype, vtk_cellnodes)
402+
let icoord = icoord
403+
vtk_cellnodes = nodes_to_vtkorder(CT((ntuple(i -> i + icoord, n))))
404+
cls[cellid(cell)] = WriteVTK.MeshCell(vtk_celltype, vtk_cellnodes)
405+
end
404406
for (x, node_idx) in zip(cell_coords, getnodes(cell))
405407
icoord += 1
406408
coords[:, icoord] = x

0 commit comments

Comments
 (0)