Home
last modified time | relevance | path

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

/petsc/src/dm/impls/plex/tests/
H A Dex56.c213 static PetscErrorCode VertexCoordinatesToAll(DM dm, IS vertices, Vec *allCoords) in VertexCoordinatesToAll() argument
243 *allCoords = allCoords_; in VertexCoordinatesToAll()
247 …cErrorCode DMLabelGetCoordinateRepresentation(DM dm, DMLabel label, PetscInt value, Vec *allCoords) in DMLabelGetCoordinateRepresentation() argument
253 PetscCall(VertexCoordinatesToAll(dm, vertices, allCoords)); in DMLabelGetCoordinateRepresentation()
258 …eWithCoordinateRepresentation(DM dm, DMLabel label, PetscInt value, Vec allCoords, PetscInt verbos… in DMLabelCompareWithCoordinateRepresentation() argument
279 PetscCall(DMPlexFindVertices(dm, allCoords, 0.0, &pointsIS)); in DMLabelCompareWithCoordinateRepresentation()
361 Vec allCoords = NULL; in main() local
374 PetscCall(DMLabelGetCoordinateRepresentation(dm, label, BOUNDARY_VERTICES_VALUE, &allCoords)); in main()
388 …mpareWithCoordinateRepresentation(dmnew, label, BOUNDARY_VERTICES_VALUE, allCoords, user.verbose)); in main()
392 PetscCall(VecDestroy(&allCoords)); in main()
/petsc/src/dm/impls/plex/
H A Dplexgeometry.c44 const PetscScalar *allCoords; in DMPlexFindVertices() local
58 PetscCall(VecGetArrayRead(allCoordsVec, &allCoords)); in DMPlexFindVertices()
78 if (coord[j + c] != allCoords[o + c]) break; in DMPlexFindVertices()
93 for (c = 0; c < cdim; c++) norm += PetscRealPart(PetscSqr(coord[j + c] - allCoords[o + c])); in DMPlexFindVertices()
102 PetscCall(VecRestoreArrayRead(allCoordsVec, &allCoords)); in DMPlexFindVertices()