Searched refs:leafcoords (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex20.c | 11 PetscReal *rootcoords, *leafcoords; in main() local 20 PetscCall(PetscMalloc2(nroots * dim, &rootcoords, nleaves * dim, &leafcoords)); in main() 26 leafcoords[(i * nleaves / height + l) * dim + 0] = 0.1 * (rank + j - 1); in main() 27 leafcoords[(i * nleaves / height + l) * dim + 1] = 1. * i; in main() 35 PetscCall(PetscRealView(nleaves * dim, leafcoords, viewer)); in main() 38 …PetscCall(PetscSFSetGraphFromCoordinates(sf, nroots, nleaves, dim, 1e-10, rootcoords, leafcoords)); in main() 41 PetscCall(PetscFree2(rootcoords, leafcoords)); in main()
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfcoord.c | 118 …t nleaves, PetscInt dim, PetscReal tol, const PetscReal rootcoords[], const PetscReal leafcoords[]) in PetscSFSetGraphFromCoordinates() argument 133 if (nleaves != 0) PetscAssertPointer(leafcoords, 7); in PetscSFSetGraphFromCoordinates() 140 PetscCall(GetBoundingBox_Internal(nleaves, dim, leafcoords, bbox)); in PetscSFSetGraphFromCoordinates() 191 …PetscCall(PetscKDTreeQueryPointsNearestNeighbor(tree, nleaves, leafcoords, tol, indices, distances… in PetscSFSetGraphFromCoordinates() 198 …, PETSC_ERR_ARG_INCOMP, "No target found for leaf coordinate %g", (double)leafcoords[i * dim + 0]); in PetscSFSetGraphFromCoordinates() 200 …No target found for leaf coordinate (%g, %g)", (double)leafcoords[i * dim + 0], (double)leafcoords… in PetscSFSetGraphFromCoordinates() 202 …eaf coordinate (%g, %g, %g)", (double)leafcoords[i * dim + 0], (double)leafcoords[i * dim + 1], (d… in PetscSFSetGraphFromCoordinates()
|