discretize.TreeMesh.get_boundary_cells#

TreeMesh.get_boundary_cells(self, active_ind=None, direction='zu')#

Return the indices of boundary cells in a given direction given an active index array.

Parameters:
active_indarray_like of bool, optional

If not None, then this must show which cells are active

direction: {‘zu’, ‘zd’, ‘xu’, ‘xd’, ‘yu’, ‘yd’}

The requested direction to return

Returns:
numpy.ndarray of int

Array of indices for the boundary cells in the requested direction