Home
last modified time | relevance | path

Searched refs:target_coords (Results 1 – 1 of 1) sorted by relevance

/petsc/src/vec/is/sf/utils/
H A Dsfcoord.c120 PetscReal bbox[6], *bboxes, *target_coords; in PetscSFSetGraphFromCoordinates() local
163 PetscCall(PetscMalloc1(root_starts[num_ranks] * dim, &target_coords)); in PetscSFSetGraphFromCoordinates()
167 PetscCall(PetscSFBcastBegin(psf, unit, rootcoords, target_coords, MPI_REPLACE)); in PetscSFSetGraphFromCoordinates()
168 PetscCall(PetscSFBcastEnd(psf, unit, rootcoords, target_coords, MPI_REPLACE)); in PetscSFSetGraphFromCoordinates()
175 if (InBoundingBox_Internal(dim, &target_coords[i * dim], bbox, tol)) { in PetscSFSetGraphFromCoordinates()
177 …for (PetscInt d = 0; d < dim; d++) target_coords[num_targets * dim + d] = target_coords[i * dim + … in PetscSFSetGraphFromCoordinates()
189 …PetscCall(PetscKDTreeCreate(num_targets, dim, target_coords, PETSC_USE_POINTER, PETSC_DETERMINE, &… in PetscSFSetGraphFromCoordinates()
209 PetscCall(PetscFree(target_coords)); in PetscSFSetGraphFromCoordinates()