Searched refs:cgrad (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexfvm.c | 7 … PetscScalar *cellgeom, const PetscFVCellGeom *cg, const PetscScalar *cx, const PetscScalar *cgrad) in DMPlexApplyLimiter_Internal() argument 20 …dmCell, lim, dim, dof, cell, field, childFace, fStart, fEnd, cellPhi, x, cellgeom, cg, cx, cgrad)); in DMPlexApplyLimiter_Internal() 45 PetscReal denom = DMPlex_DotD_Internal(dim, &cgrad[d * dim], v); in DMPlexApplyLimiter_Internal() 89 PetscScalar *cgrad[2]; in DMPlexReconstructGradients_Internal() local 107 PetscCall(DMPlexPointGlobalRef(dmGrad, cells[c], gr, &cgrad[c])); in DMPlexReconstructGradients_Internal() 113 if (cgrad[0]) cgrad[0][pd * dim + d] += fg->grad[0][d] * delta; in DMPlexReconstructGradients_Internal() 114 if (cgrad[1]) cgrad[1][pd * dim + d] -= fg->grad[1][d] * delta; in DMPlexReconstructGradients_Internal() 126 PetscScalar *cgrad; in DMPlexReconstructGradients_Internal() local 137 PetscCall(DMPlexPointGlobalRef(dmGrad, cell, gr, &cgrad)); in DMPlexReconstructGradients_Internal() 138 if (!cgrad) continue; /* Unowned overlap cell, we do not compute */ in DMPlexReconstructGradients_Internal() [all …]
|
| H A D | plexfem.c | 1093 PetscScalar *cx, *cgrad; in DMPlexInsertBoundaryValuesRiemann() local 1100 PetscCall(DMPlexPointLocalRead(dmGrad, cells[0], grad, &cgrad)); in DMPlexInsertBoundaryValuesRiemann() 1103 for (d = 0; d < pdim; ++d) fx[d] = cx[d] + DMPlex_DotD_Internal(dim, &cgrad[d * dim], dx); in DMPlexInsertBoundaryValuesRiemann()
|