Skip to content

Commit

Permalink
dimension -> ndims
Browse files Browse the repository at this point in the history
  • Loading branch information
iintSjds committed Nov 21, 2022
1 parent 030464e commit a20db9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/AbstractMeshes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Base.iterate(mesh::AbstractMesh, state) = (state >= length(mesh)) ? nothing : (m
Base.length(mesh::AbstractMesh) = prod(mesh.size)
Base.size(mesh::AbstractMesh) = mesh.size
Base.size(mesh::AbstractMesh, I) = mesh.size[I]
dimension(mesh::AbstractMesh{T,DIM}) where {T,DIM} = DIM
# dimension(mesh::AbstractMesh{T,DIM}) where {T,DIM} = DIM
Base.ndims(mesh::AbstractMesh{T,DIM}) where {T,DIM} = DIM

# below are interfaces that should be implemented by concrete types
Base.show(io::IO, mesh::AbstractMesh) = error("not implemented!")
Expand Down
2 changes: 1 addition & 1 deletion src/CompositeMeshes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ end

function CompositeMesh(panelmesh::PM, N) where {PM}
T = eltype(panelmesh)
DIM = dimension(panelmesh)
DIM = ndims(panelmesh)
submeshes = []
for (i, p) in enumerate(panelmesh)
intervals = AbstractMeshes.interval(panelmesh, i)
Expand Down

0 comments on commit a20db9b

Please # to comment.