Searched refs:coordVec (Results 1 – 3 of 3) sorted by relevance
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex75.c | 12 Vec coordVec; in main() local 44 PetscCall(VecCreate(PETSC_COMM_SELF, &coordVec)); in main() 45 PetscCall(PetscObjectSetName((PetscObject)coordVec, "cellcoordinates")); in main() 46 PetscCall(VecSetBlockSize(coordVec, dim)); in main() 47 PetscCall(VecSetSizes(coordVec, coordSize, PETSC_DETERMINE)); in main() 48 PetscCall(VecSetType(coordVec, VECSTANDARD)); in main() 49 PetscCall(VecGetArray(coordVec, &coords)); in main() 57 PetscCall(VecRestoreArray(coordVec, &coords)); in main() 58 PetscCall(DMSetCellCoordinatesLocal(dm, coordVec)); in main() 59 PetscCall(VecDestroy(&coordVec)); in main()
|
| /petsc/src/dm/dt/dualspace/impls/lagrange/ |
| H A D | dspacelagrange.c | 391 Vec coordVec; in PetscLagNodeIndicesComputeVertexOrder() local 437 PetscCall(DMGetCoordinatesLocal(dm, &coordVec)); in PetscLagNodeIndicesComputeVertexOrder() 438 PetscCall(VecGetArrayRead(coordVec, &coords)); in PetscLagNodeIndicesComputeVertexOrder() 457 PetscCall(VecRestoreArrayRead(coordVec, &coords)); in PetscLagNodeIndicesComputeVertexOrder() 559 Vec coordVec; in PetscLagNodeIndicesPushForward() local 566 PetscCall(DMGetCoordinatesLocal(dm, &coordVec)); in PetscLagNodeIndicesPushForward() 611 PetscCall(VecGetArrayRead(coordVec, &oldCoords)); in PetscLagNodeIndicesPushForward() 616 PetscCall(VecRestoreArrayRead(coordVec, &oldCoords)); in PetscLagNodeIndicesPushForward() 618 PetscCall(VecPlaceArray(coordVec, newCoords)); in PetscLagNodeIndicesPushForward() 622 PetscCall(VecResetArray(coordVec)); in PetscLagNodeIndicesPushForward()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plextree.c | 2037 Vec coordVec; in DMPlexTreeRefineCell() local 2050 PetscCall(DMGetCoordinatesLocal(dm, &coordVec)); in DMPlexTreeRefineCell() 2051 PetscCall(VecGetArray(coordVec, &coords)); in DMPlexTreeRefineCell() 2058 PetscCall(VecRestoreArray(coordVec, &coords)); in DMPlexTreeRefineCell()
|