Home
last modified time | relevance | path

Searched refs:locGrad (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/impls/plex/ftn-custom/
H A Dzplexfemf90.c73 …fEnd, Vec *locX, Vec *locX_t, Vec *faceGeometry, Vec *cellGeometry, Vec *locGrad, PetscInt *Nface,… in dmplexgetfacefields_() argument
79 …elds(*dm, *fStart, *fEnd, *locX, *locX_t, *faceGeometry, *cellGeometry, *locGrad, Nface, &uL, &uR); in dmplexgetfacefields_()
91 …fEnd, Vec *locX, Vec *locX_t, Vec *faceGeometry, Vec *cellGeometry, Vec *locGrad, PetscInt *Nface,… in dmplexrestorefacefields_() argument
/petsc/src/dm/impls/plex/tests/
H A Dex3.c602 Vec cellgeom, grad, locGrad; in TestFVGrad() local
651 PetscCall(DMGetLocalVector(dmgrad, &locGrad)); in TestFVGrad()
680 PetscCall(DMGlobalToLocalBegin(dmgrad, grad, INSERT_VALUES, locGrad)); in TestFVGrad()
681 PetscCall(DMGlobalToLocalEnd(dmgrad, grad, INSERT_VALUES, locGrad)); in TestFVGrad()
682 PetscCall(VecGetArrayRead(locGrad, &gradArray)); in TestFVGrad()
709 PetscCall(VecRestoreArrayRead(locGrad, &gradArray)); in TestFVGrad()
717 PetscCall(DMRestoreLocalVector(dmgrad, &locGrad)); in TestFVGrad()
/petsc/src/ts/tutorials/
H A Dex11.c1113 Vec grad, locGrad, locX, errVec; in adaptToleranceFVMSetUp() local
1138 PetscCall(DMCreateLocalVector(gradDM, &locGrad)); in adaptToleranceFVMSetUp()
1139 PetscCall(DMGlobalToLocalBegin(gradDM, grad, INSERT_VALUES, locGrad)); in adaptToleranceFVMSetUp()
1140 PetscCall(DMGlobalToLocalEnd(gradDM, grad, INSERT_VALUES, locGrad)); in adaptToleranceFVMSetUp()
1143 PetscCall(VecGetArrayRead(locGrad, &pointGrads)); in adaptToleranceFVMSetUp()
1169 PetscCall(VecRestoreArrayRead(locGrad, &pointGrads)); in adaptToleranceFVMSetUp()
1170 PetscCall(VecDestroy(&locGrad)); in adaptToleranceFVMSetUp()
/petsc/src/dm/impls/plex/
H A Dplexfem.c1392 Vec cellGeometryFVM, faceGeometryFVM, locGrad = NULL; in DMPlexInsertBoundaryValuesFVM() local
1413 PetscCall(DMGetLocalVector(dmGrad, &locGrad)); in DMPlexInsertBoundaryValuesFVM()
1414 PetscCall(DMGlobalToLocalBegin(dmGrad, grad, INSERT_VALUES, locGrad)); in DMPlexInsertBoundaryValuesFVM()
1415 PetscCall(DMGlobalToLocalEnd(dmGrad, grad, INSERT_VALUES, locGrad)); in DMPlexInsertBoundaryValuesFVM()
1418 …MPlexInsertBoundaryValues(dm, PETSC_FALSE, locX, time, faceGeometryFVM, cellGeometryFVM, locGrad)); in DMPlexInsertBoundaryValuesFVM()
1419 if (locGradient) *locGradient = locGrad; in DMPlexInsertBoundaryValuesFVM()
1420 else if (locGrad) PetscCall(DMRestoreLocalVector(dmGrad, &locGrad)); in DMPlexInsertBoundaryValuesFVM()
2418 Vec cellGeometryFVM = NULL, faceGeometryFVM = NULL, locGrad = NULL; in DMPlexComputeIntegral_Internal() local
2494 PetscCall(DMGetLocalVector(dmGrad, &locGrad)); in DMPlexComputeIntegral_Internal()
2495 PetscCall(DMGlobalToLocalBegin(dmGrad, grad, INSERT_VALUES, locGrad)); in DMPlexComputeIntegral_Internal()
[all …]