SimPEG.utils.model_builder.get_indices_block#

SimPEG.utils.model_builder.get_indices_block(p0, p1, cell_centers)[source]#

Get indices for cells whose centers lie inside specified block

Parameters:
p0(dim) numpy.ndarray

Bottom southwest corner of the block

p1(dim) numpy.ndarray

Top northeast corner of the block

cell_centers(n_cells, dim) numpy.ndarray or discretize.base.BaseMesh

A mesh or its gridded cell center locations

Returns:
tuple of int

Indices of the cells whose center lie within the specified block