Home
last modified time | relevance | path

Searched refs:xcoorl (Results 1 – 3 of 3) sorted by relevance

/petsc/src/dm/impls/da/
H A Dgrglvis.c151 Vec xcoor, xcoorl; in DMSetUpGLVisViewer_DMDA() local
196 PetscCall(DMCreateLocalVector(dacoord, &xcoorl)); in DMSetUpGLVisViewer_DMDA()
197 PetscCall(DMGlobalToLocalBegin(dacoord, xcoor, INSERT_VALUES, xcoorl)); in DMSetUpGLVisViewer_DMDA()
198 PetscCall(DMGlobalToLocalEnd(dacoord, xcoor, INSERT_VALUES, xcoorl)); in DMSetUpGLVisViewer_DMDA()
211 PetscCall(VecDuplicate(xcoor, &xcoorl)); in DMSetUpGLVisViewer_DMDA()
212 PetscCall(VecCopy(xcoor, xcoorl)); in DMSetUpGLVisViewer_DMDA()
213 PetscCall(VecSetDM(xcoorl, NULL)); in DMSetUpGLVisViewer_DMDA()
230 PetscCall(PetscObjectSetName((PetscObject)xcoorl, fecmesh)); in DMSetUpGLVisViewer_DMDA()
231 } else PetscCall(PetscObjectSetName((PetscObject)xcoorl, name)); in DMSetUpGLVisViewer_DMDA()
235 …scCall(PetscObjectCompose((PetscObject)daview, "GLVisGraphicsCoordsGhosted", (PetscObject)xcoorl)); in DMSetUpGLVisViewer_DMDA()
[all …]
H A Dgr2.c125 Vec xlocal, xcoor, xcoorl; in VecView_MPI_Draw_DA2d() local
235 PetscCall(PetscObjectQuery((PetscObject)da, "GraphicsCoordinateGhosted", (PetscObject *)&xcoorl)); in VecView_MPI_Draw_DA2d()
236 if (!xcoorl) { in VecView_MPI_Draw_DA2d()
241 PetscCall(DMCreateLocalVector(dag, &xcoorl)); in VecView_MPI_Draw_DA2d()
242 … PetscCall(PetscObjectCompose((PetscObject)da, "GraphicsCoordinateGhosted", (PetscObject)xcoorl)); in VecView_MPI_Draw_DA2d()
244 PetscCall(PetscObjectDereference((PetscObject)xcoorl)); in VecView_MPI_Draw_DA2d()
245 } else PetscCall(VecGetDM(xcoorl, &dag)); in VecView_MPI_Draw_DA2d()
246 PetscCall(DMGlobalToLocalBegin(dag, xcoor, INSERT_VALUES, xcoorl)); in VecView_MPI_Draw_DA2d()
247 PetscCall(DMGlobalToLocalEnd(dag, xcoor, INSERT_VALUES, xcoorl)); in VecView_MPI_Draw_DA2d()
248 PetscCall(VecGetArrayRead(xcoorl, &zctx.xy)); in VecView_MPI_Draw_DA2d()
[all …]
/petsc/src/ksp/ksp/tutorials/
H A Dex71.c208 Vec x, b, xcoor, xcoorl; in main() local
413 PetscCall(DMGetCoordinatesLocal(da, &xcoorl)); in main()
436 PetscCall(VecGetLocalSize(xcoorl, &n)); in main()
437 PetscCall(VecGetBlockSize(xcoorl, &bs)); in main()
440 PetscCall(VecGetArrayRead(xcoorl, &a)); in main()
444 PetscCall(VecRestoreArrayRead(xcoorl, &a)); in main()