Home
last modified time | relevance | path

Searched refs:fgA (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/
H A Dex52.c154 PetscFVFaceGeom *fgA; /* struct with face geometry information */ in FormFunction() local
203 PetscCall(DMPlexPointLocalRead(dmFace, cellcone[0], fgeom, &fgA)); in FormFunction()
204 centroid_y[0] = fgA->centroid[1]; in FormFunction()
206 PetscCall(DMPlexPointLocalRead(dmFace, cellcone[2], fgeom, &fgA)); in FormFunction()
207 centroid_y[1] = fgA->centroid[1]; in FormFunction()
209 PetscCall(DMPlexPointLocalRead(dmFace, cellcone[3], fgeom, &fgA)); in FormFunction()
210 centroid_x[0] = fgA->centroid[0]; in FormFunction()
212 PetscCall(DMPlexPointLocalRead(dmFace, cellcone[1], fgeom, &fgA)); in FormFunction()
213 centroid_x[1] = fgA->centroid[0]; in FormFunction()
H A Dex11.c796 PetscFVFaceGeom *fgA, *fgB, *cg; in CreateMassMatrix() local
805 PetscCall(DMPlexPointLocalRead(dmFace, faces[f], fgeom, &fgA)); in CreateMassMatrix()
816 …calar((vertex[0] - cg->centroid[0]) * (fgA->centroid[1] - cg->centroid[1]) - (vertex[1] - cg->cent… in CreateMassMatrix()
818 m[f * numFaces + g] = Dot2Real(fgA->normal, fgB->normal) * area * 0.5; in CreateMassMatrix()