Return the number of cells.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(block_object), | intent(in) | :: | self | Block. |
||
logical, | intent(in), | optional | :: | with_ghosts | Take into account ghost cells. |
Number of cells.
elemental function cells_number(self, with_ghosts) result(cells_number_)
!< Return the number of cells.
class(block_object), intent(in) :: self !< Block.
logical, intent(in), optional :: with_ghosts !< Take into account ghost cells.
integer(I4P) :: cells_number_ !< Number of cells.
cells_number_ = self%signature%cells_number(with_ghosts=with_ghosts)
endfunction cells_number