Skip to content

Commit 1947bd2

Browse files
committed
avoid Core.Box in the package
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 65773c2 commit 1947bd2

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
@@ -376,8 +376,10 @@ function create_discontinuous_vtk_griddata(grid::Grid{dim, C, T}) where {dim, C,
376376
cell_coords = getcoordinates(cell)
377377
n = length(cell_coords)
378378
cellnodes[cellid(cell)] = (1:n) .+ icoord
379-
vtk_cellnodes = nodes_to_vtkorder(CT((ntuple(i -> i + icoord, n))))
380-
cls[cellid(cell)] = WriteVTK.MeshCell(vtk_celltype, vtk_cellnodes)
379+
let icoord = icoord
380+
vtk_cellnodes = nodes_to_vtkorder(CT((ntuple(i -> i + icoord, n))))
381+
cls[cellid(cell)] = WriteVTK.MeshCell(vtk_celltype, vtk_cellnodes)
382+
end
381383
for (x, node_idx) in zip(cell_coords, getnodes(cell))
382384
icoord += 1
383385
coords[:, icoord] = x

0 commit comments

Comments
 (0)