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
ordiscretize.base.BaseMesh
A mesh or its gridded cell center locations
- p0(
- Returns