Lines Matching refs:points
41 Vec points; in TestCentroidLocation() local
54 PetscCall(VecCreateSeq(PETSC_COMM_SELF, (cEnd - cStart) * cdim, &points)); in TestCentroidLocation()
55 PetscCall(VecSetBlockSize(points, cdim)); in TestCentroidLocation()
56 PetscCall(VecGetArray(points, &a)); in TestCentroidLocation()
64 PetscCall(VecRestoreArray(points, &a)); in TestCentroidLocation()
65 PetscCall(DMLocatePoints(dm, points, DM_POINTLOCATION_NONE, &cellSF)); in TestCentroidLocation()
66 PetscCall(VecDestroy(&points)); in TestCentroidLocation()
84 Vec points; in TestCustomLocation() local
95 PetscCall(VecCreate(PETSC_COMM_SELF, &points)); in TestCustomLocation()
96 PetscCall(VecSetBlockSize(points, cdim)); in TestCustomLocation()
97 PetscCall(VecSetSizes(points, Np * cdim, PETSC_DETERMINE)); in TestCustomLocation()
98 PetscCall(VecSetFromOptions(points)); in TestCustomLocation()
101 PetscCall(VecSetValues(points, cdim, idx, coords, INSERT_VALUES)); in TestCustomLocation()
103 PetscCall(VecAssemblyBegin(points)); in TestCustomLocation()
104 PetscCall(VecAssemblyEnd(points)); in TestCustomLocation()
106 PetscCall(DMLocatePoints(dm, points, DM_POINTLOCATION_NONE, &cellSF)); in TestCustomLocation()
132 PetscCall(VecDestroy(&points)); in TestCustomLocation()