Skip to content

Commit d9236b6

Browse files
eachindex instead of 1:length (#2521)
* `axes` instead of `1:length` * Update src/meshes/mesh_io.jl Co-authored-by: Joshua Lampert <[email protected]> --------- Co-authored-by: Joshua Lampert <[email protected]>
1 parent 9b51a54 commit d9236b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meshes/mesh_io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ function save_mesh_file(mesh::DGMultiMesh, basis, output_directory, timestep = 0
365365
# Transfer vectors of vectors to a matrix (2D array) and store into h5 file.
366366
for (idim, vectors) in enumerate(get_VXYZ(mesh.md))
367367
matrix = zeros(length(vectors[1]), length(vectors))
368-
for ielem in 1:length(vectors)
368+
for ielem in eachindex(vectors)
369369
@views matrix[:, ielem] .= vectors[ielem]
370370
end
371371
# ASCII: Char(58) => 'X'

0 commit comments

Comments
 (0)