| /petsc/src/ts/tests/ |
| H A D | ex28.c | 231 Vec coordsLocal; in CheckDistribution() local 242 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in CheckDistribution() 249 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordsLocal, c, NULL, &vcoords)); in CheckDistribution() 251 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordsLocal, c, NULL, &vcoords)); in CheckDistribution() 277 Vec coordsLocal; in RHSFunctionParticles() local 290 PetscCall(DMGetCoordinatesLocal(plex, &coordsLocal)); in RHSFunctionParticles() 322 PetscCall(DMPlexVecGetClosure(plex, coordSection, coordsLocal, c, NULL, &vcoords)); in RHSFunctionParticles() 324 PetscCall(DMPlexVecRestoreClosure(plex, coordSection, coordsLocal, c, NULL, &vcoords)); in RHSFunctionParticles() 340 PetscCall(DMPlexVecGetClosure(plex, coordSection, coordsLocal, p, NULL, &vcoords)); in RHSFunctionParticles() 342 PetscCall(DMPlexVecRestoreClosure(plex, coordSection, coordsLocal, p, NULL, &vcoords)); in RHSFunctionParticles()
|
| /petsc/src/snes/tests/ |
| H A D | ex2.c | 79 Vec coordsLocal; in CreatePoints_Centroid() local 85 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in CreatePoints_Centroid() 94 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordsLocal, p, &size, &coords)); in CreatePoints_Centroid() 105 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordsLocal, p, &num, &coords)); in CreatePoints_Centroid()
|
| /petsc/src/dm/impls/plex/transform/impls/refine/sbr/ |
| H A D | plexrefsbr.c | 26 Vec coordsLocal; in SBRGetEdgeLen_Private() local 37 PetscCall(DMGetCoordinatesLocalNoncollective(dm, &coordsLocal)); in SBRGetEdgeLen_Private() 38 PetscCall(VecGetArrayRead(coordsLocal, &coords)); in SBRGetEdgeLen_Private() 42 PetscCall(VecRestoreArrayRead(coordsLocal, &coords)); in SBRGetEdgeLen_Private()
|
| /petsc/src/snes/utils/dm/ |
| H A D | dminterpolatesnes.c | 534 Vec coordsLocal, r, ref, real; in DMInterpolate_Quad_Private() local 559 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in DMInterpolate_Quad_Private() 581 PetscCall(DMPlexVecGetClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Quad_Private() 609 PetscCall(DMPlexVecRestoreClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Quad_Private() 768 Vec coordsLocal, r, ref, real; in DMInterpolate_Hex_Private() local 778 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in DMInterpolate_Hex_Private() 800 PetscCall(DMPlexVecGetClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Hex_Private() 825 PetscCall(DMPlexVecRestoreClosure(dmCoord, NULL, coordsLocal, c, &coordSize, &vertices)); in DMInterpolate_Hex_Private()
|
| /petsc/src/dm/impls/plex/transform/interface/ |
| H A D | plextransform.c | 2165 Vec coordsLocal, coordsLocalNew, coordsLocalCell = NULL, coordsLocalCellNew; in DMPlexTransformSetCoordinates() local 2266 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in DMPlexTransformSetCoordinates() 2270 PetscCall(PetscObjectGetName((PetscObject)coordsLocal, &name)); in DMPlexTransformSetCoordinates() 2272 PetscCall(VecGetBlockSize(coordsLocal, &bs)); in DMPlexTransformSetCoordinates() 2274 PetscCall(VecGetType(coordsLocal, &vtype)); in DMPlexTransformSetCoordinates() 2277 PetscCall(VecGetArrayRead(coordsLocal, &coords)); in DMPlexTransformSetCoordinates() 2330 PetscCall(VecRestoreArrayRead(coordsLocal, &coords)); in DMPlexTransformSetCoordinates()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 4247 Vec coordsGlobal, coordsLocal; in DMConvert_pforest_plex() local 4256 PetscCall(DMGetCoordinatesLocal(newPlex, &coordsLocal)); in DMConvert_pforest_plex() 4258 PetscCall(VecGetArray(coordsLocal, &localArray)); in DMConvert_pforest_plex() 4261 PetscCall(VecRestoreArray(coordsLocal, &localArray)); in DMConvert_pforest_plex() 4263 PetscCall(DMSetCoordinatesLocal(newPlex, coordsLocal)); in DMConvert_pforest_plex()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 5773 Vec coordsLocal, cellCoordsLocal; in DMCreateCoordinateField_Plex() local 5778 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in DMCreateCoordinateField_Plex() 5782 if (coordsLocal && coordsDM) { in DMCreateCoordinateField_Plex() 5783 …llCoordsDM) PetscCall(DMFieldCreateDSWithDG(coordsDM, cellCoordsDM, 0, coordsLocal, cellCoordsLoca… in DMCreateCoordinateField_Plex() 5784 else PetscCall(DMFieldCreateDS(coordsDM, 0, coordsLocal, field)); in DMCreateCoordinateField_Plex() 9959 Vec coordsLocal; in DMPlexCheckCellShape() local 9963 PetscCall(DMGetCoordinatesLocal(dm, &coordsLocal)); in DMPlexCheckCellShape() 9965 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordsLocal, c, &Nv, &coords)); in DMPlexCheckCellShape() 9987 PetscCall(DMPlexVecRestoreClosure(dm, coordSection, coordsLocal, c, &Nv, &coords)); in DMPlexCheckCellShape()
|