Lines Matching refs:bbox
3 …e GetBoundingBox_Internal(PetscInt npoints, PetscInt dim, const PetscReal *coords, PetscReal *bbox) in GetBoundingBox_Internal() argument
7 bbox[0 * dim + d] = PETSC_MAX_REAL; in GetBoundingBox_Internal()
8 bbox[1 * dim + d] = PETSC_MIN_REAL; in GetBoundingBox_Internal()
12 bbox[0 * dim + d] = PetscMin(bbox[0 * dim + d], coords[i * dim + d]); in GetBoundingBox_Internal()
13 bbox[1 * dim + d] = PetscMax(bbox[1 * dim + d], coords[i * dim + d]); in GetBoundingBox_Internal()
27 static PetscBool InBoundingBox_Internal(PetscInt dim, const PetscReal *x, const PetscReal *bbox, Pe… in InBoundingBox_Internal() argument
30 if (x[d] + tol < bbox[0 * dim + d] || bbox[1 * dim + d] + tol < x[d]) return PETSC_FALSE; in InBoundingBox_Internal()
120 PetscReal bbox[6], *bboxes, *target_coords; in PetscSFSetGraphFromCoordinates() local
135 PetscCall(GetBoundingBox_Internal(nroots, dim, rootcoords, bbox)); in PetscSFSetGraphFromCoordinates()
139 PetscCallMPI(MPI_Allgather(bbox, msize, MPIU_REAL, bboxes, msize, MPIU_REAL, comm)); in PetscSFSetGraphFromCoordinates()
140 PetscCall(GetBoundingBox_Internal(nleaves, dim, leafcoords, bbox)); in PetscSFSetGraphFromCoordinates()
148 if (IntersectBoundingBox_Internal(dim, bbox, &bboxes[2 * dim * r], tol)) { in PetscSFSetGraphFromCoordinates()
175 if (InBoundingBox_Internal(dim, &target_coords[i * dim], bbox, tol)) { in PetscSFSetGraphFromCoordinates()