Skip to content

Commit 1099e09

Browse files
authored
Merge pull request #27 from WIAS-PDELib/feature/marrays
Use MArrays for small data holders in marching_tetrahedra
2 parents ae54513 + 7d87401 commit 1099e09

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/marching.jl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,11 +222,10 @@ function marching_tetrahedra(
222222
@views push!(all_ixvalues, primevalues[iprime])
223223
end
224224

225-
planeq = zeros(4)
226-
ixcoord = zeros(3, 6)
227-
ixvalues = zeros(6)
228-
cn = zeros(4)
229-
node_indices = zeros(Int32, 4)
225+
planeq = @MArray zeros(4)
226+
ixcoord = @MArray zeros(3, 6)
227+
ixvalues = @MArray zeros(6)
228+
node_indices = @MArray zeros(Int32, 4)
230229

231230
# Function to evaluate plane equation
232231
@inbounds @fastmath plane_equation(plane, coord) = coord[1] * plane[1] + coord[2] * plane[2] + coord[3] * plane[3] + plane[4]

0 commit comments

Comments
 (0)