Searched refs:rootcoords (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() 22 rootcoords[i * dim + 0] = 0.1 * rank; in main() 23 rootcoords[i * dim + 1] = 1. * i; in main() 33 PetscCall(PetscRealView(nroots * dim, rootcoords, 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 …nroots, PetscInt nleaves, PetscInt dim, PetscReal tol, const PetscReal rootcoords[], const PetscRe… in PetscSFSetGraphFromCoordinates() argument 132 if (nroots != 0) PetscAssertPointer(rootcoords, 6); in PetscSFSetGraphFromCoordinates() 135 PetscCall(GetBoundingBox_Internal(nroots, dim, rootcoords, bbox)); 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()
|