Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed May 9, 2023
1 parent 30a8178 commit 9645043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MeshData.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function Base.getproperty(x::MeshData{Dim, <:VertexMappedMesh}, s::Symbol) where
end
end

@inline num_elements(md::MeshData) = size(getfield(md, :x), 2) # number of columns in the "x" coordinate array
@inline num_elements(md::MeshData) = size(first(getfield(md, :xyz)), 2) # number of columns in the coordinate array

# splat `uniform_mesh` arguments, e.g., enables `MeshData(uniform_mesh(Line(), 1), rd)`
# TODO: wrap `uniform_mesh` in a custom type so we can dispatch more precisely
Expand Down

0 comments on commit 9645043

Please sign in to comment.