Lines Matching refs:centroid
18 PetscReal *centroid, *normal, *vol; /* FVM data */ member
57 PetscCall(PetscMalloc1(numCells * dim, &options->centroid)); in ProcessOptions()
77 …tionsRealArray("-centroid", "Input centroid for each cell", "ex8.c", options->centroid, &n, &flg)); in ProcessOptions()
80 PetscCall(PetscFree(options->centroid)); in ProcessOptions()
81 options->centroid = NULL; in ProcessOptions()
178 PetscReal centroid[3], normal[3], vol; in CheckFVMGeometry() local
182 …PetscCall(DMPlexComputeCellGeometryFVM(dm, cell, volEx ? &vol : NULL, centroidEx ? centroid : NULL… in CheckFVMGeometry()
185 …centroid[d], centroidEx[d]) < tol, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Cell %" PetscInt_FMT ", Inval… in CheckFVMGeometry()
638 PetscReal *centroid = PetscSafePointerPlusOffset(user.centroid, c * dim); in main() local
642 …PetscCall(CheckCell(user.dm, c + cStart, PETSC_FALSE, v0, J, invJ, detJ, centroid, normal, vol, NU… in main()
645 PetscCall(PetscFree(user.centroid)); in main()
674 PetscCall(PetscPrintf(PETSC_COMM_SELF, "%12.2g", (double)cg->centroid[d])); in main()