Lines Matching refs:normal
18 PetscReal *centroid, *normal, *vol; /* FVM data */ member
58 PetscCall(PetscMalloc1(numCells * dim, &options->normal)); in ProcessOptions()
84 …etscOptionsRealArray("-normal", "Input normal for each cell", "ex8.c", options->normal, &n, &flg)); in ProcessOptions()
87 PetscCall(PetscFree(options->normal)); in ProcessOptions()
88 options->normal = NULL; in ProcessOptions()
178 PetscReal centroid[3], normal[3], vol; in CheckFVMGeometry() local
182 …eometryFVM(dm, cell, volEx ? &vol : NULL, centroidEx ? centroid : NULL, normalEx ? normal : NULL)); in CheckFVMGeometry()
186 …normal[d], normalEx[d]) < tol, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cell %" PetscInt_FMT ", Invalid n… in CheckFVMGeometry()
196 PetscReal normal[3], integral[3] = {0., 0., 0.}, area; in CheckGaussLaw() local
212 PetscCall(DMPlexComputeCellGeometryFVM(dm, cone[f], &area, NULL, normal)); in CheckGaussLaw()
213 for (d = 0; d < cdim; ++d) integral[d] += sgn * area * normal[d]; in CheckGaussLaw()
639 PetscReal *normal = PetscSafePointerPlusOffset(user.normal, c * dim); in main() local
642 …PetscCall(CheckCell(user.dm, c + cStart, PETSC_FALSE, v0, J, invJ, detJ, centroid, normal, vol, NU… in main()
646 PetscCall(PetscFree(user.normal)); in main()