Skip to content

Commit

Permalink
cython._binary_reader.cells_with_*_nodes: correct expression for `nce…
Browse files Browse the repository at this point in the history
…lls`
  • Loading branch information
beppo-dd committed Oct 13, 2021
1 parent 5ea8199 commit ae3a88e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansys/mapdl/reader/cython/_binary_reader.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ def cells_with_all_nodes(index_type [::1] offset, index_type [::1] cells,
Updates mask of cells containing all points in the point indices
or mask.
"""
cdef int ncells = offset - 1
cdef int ncells = offset.size - 1
cdef int i, j
cdef index_type cell_offset, next_cell_offset
cdef uint8 [::1] cell_mask = np.ones(ncells, np.uint8)
Expand All @@ -1666,7 +1666,7 @@ def cells_with_any_nodes(index_type [::1] offset, index_type [::1] cells,
Updates mask of cells containing at least one point in the point
indices or mask.
"""
cdef int ncells = offset - 1
cdef int ncells = offset.size - 1
cdef index_type cell_offset, next_cell_offset
cdef int i, j

Expand Down

0 comments on commit ae3a88e

Please sign in to comment.