Lines Matching refs:cgrad
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()
142 …dof, cell, nFields > 1 ? field : -1, faces[f], fStart, fEnd, cellPhi, x, cellgeom, cg, cx, cgrad)); in DMPlexReconstructGradients_Internal()
148 for (d = 0; d < dim; ++d) cgrad[pd * dim + d] *= cellPhi[pd]; in DMPlexReconstructGradients_Internal()