Lines Matching refs:centroid
2642 …_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid[], PetscReal norm… in DMPlexComputeGeometryFVM_0D_Internal() argument
2655 if (centroid) { in DMPlexComputeGeometryFVM_0D_Internal()
2658 for (d = 0; d < dof; d++) centroid[d] = PetscRealPart(coords[off + d]); in DMPlexComputeGeometryFVM_0D_Internal()
2687 …_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid[], PetscReal norm… in DMPlexComputeGeometryFVM_1D_Internal() argument
2698 if (centroid) { in DMPlexComputeGeometryFVM_1D_Internal()
2699 for (d = 0; d < cdim; ++d) centroid[d] = 0.5 * PetscRealPart(coords[d] + coords[cdim + d]); in DMPlexComputeGeometryFVM_1D_Internal()
2730 …_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid[], PetscReal norm… in DMPlexComputeGeometryFVM_2D_Internal() argument
2785 if (centroid) in DMPlexComputeGeometryFVM_2D_Internal()
2786 for (d = 0; d < cdim; ++d) centroid[d] = c[d]; in DMPlexComputeGeometryFVM_2D_Internal()
2795 …_Internal(DM dm, PetscInt dim, PetscInt cell, PetscReal *vol, PetscReal centroid[], PetscReal norm… in DMPlexComputeGeometryFVM_3D_Internal() argument
2823 if (centroid) in DMPlexComputeGeometryFVM_3D_Internal()
2824 for (d = 0; d < dim; ++d) centroid[d] = 0.0; in DMPlexComputeGeometryFVM_3D_Internal()
2848 if (centroid) { /* Centroid of OABC = (a+b+c)/4 */ in DMPlexComputeGeometryFVM_3D_Internal()
2850 for (p = 0; p < 3; ++p) centroid[d] += coordsTmp[p * dim + d] * vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
2873 if (centroid) { in DMPlexComputeGeometryFVM_3D_Internal()
2875 for (p = 0; p < 3; ++p) centroid[d] += coordsTmp[p * dim + d] * vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
2887 if (centroid) { in DMPlexComputeGeometryFVM_3D_Internal()
2889 for (p = 0; p < 3; ++p) centroid[d] += coordsTmp[p * dim + d] * vtmp; in DMPlexComputeGeometryFVM_3D_Internal()
2904 if (centroid) in DMPlexComputeGeometryFVM_3D_Internal()
2905 for (d = 0; d < dim; ++d) centroid[d] = centroid[d] / (vsum * 4) + origin[d]; in DMPlexComputeGeometryFVM_3D_Internal()
2927 …xComputeCellGeometryFVM(DM dm, PetscInt cell, PetscReal *vol, PetscReal centroid[], PetscReal norm… in DMPlexComputeCellGeometryFVM() argument
2938 PetscCall(DMPlexComputeGeometryFVM_0D_Internal(dm, dim, cell, vol, centroid, normal)); in DMPlexComputeCellGeometryFVM()
2941 PetscCall(DMPlexComputeGeometryFVM_1D_Internal(dm, dim, cell, vol, centroid, normal)); in DMPlexComputeCellGeometryFVM()
2944 PetscCall(DMPlexComputeGeometryFVM_2D_Internal(dm, dim, cell, vol, centroid, normal)); in DMPlexComputeCellGeometryFVM()
2947 PetscCall(DMPlexComputeGeometryFVM_3D_Internal(dm, dim, cell, vol, centroid, normal)); in DMPlexComputeCellGeometryFVM()
3004 PetscCall(DMPlexComputeCellGeometryFVM(dmCell, c, &cg->volume, cg->centroid, NULL)); in DMPlexComputeGeometryFVM()
3032 PetscCall(DMPlexComputeCellGeometryFVM(dm, f, &area, fg->centroid, fg->normal)); in DMPlexComputeGeometryFVM()
3041 lcentroid = cells[0] >= cEndInterior ? fg->centroid : cL->centroid; in DMPlexComputeGeometryFVM()
3044 rcentroid = cells[1] >= cEndInterior ? fg->centroid : cR->centroid; in DMPlexComputeGeometryFVM()
3046 rcentroid = fg->centroid; in DMPlexComputeGeometryFVM()
3048 PetscCall(DMLocalizeCoordinateReal_Internal(dm, dim, fg->centroid, lcentroid, l)); in DMPlexComputeGeometryFVM()
3049 PetscCall(DMLocalizeCoordinateReal_Internal(dm, dim, fg->centroid, rcentroid, r)); in DMPlexComputeGeometryFVM()
3060 DMPlex_WaxpyD_Internal(dim, -1, fg->centroid, cL->centroid, v); in DMPlexComputeGeometryFVM()
3064 DMPlex_WaxpyD_Internal(dim, -1, fg->centroid, cR->centroid, v); in DMPlexComputeGeometryFVM()
3092 … DMPlex_WaxpyD_Internal(dim, -1, ci->centroid, fg->centroid, c2f); /* cell to face centroid */ in DMPlexComputeGeometryFVM()
3095 DMPlex_WaxpyD_Internal(dim, 2 * a, fg->normal, ci->centroid, cg->centroid); in DMPlexComputeGeometryFVM()
3247 for (d = 0; d < dim; ++d) dx[usedFaces * dim + d] = cg1->centroid[d] - cg->centroid[d]; in BuildGradientReconstruction_Internal()
3361 for (d = 0; d < dim; ++d) dx[f * dim + d] = cg1->centroid[d] - cg->centroid[d]; in BuildGradientReconstruction_Internal_Tree()