Lines Matching refs:numCoords

273   PetscInt           numCoords;  in DMPlexGetPlaneSimplexIntersection_Internal()  local
280 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneSimplexIntersection_Internal()
281numCoords == dim * (dim + 1), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Tetrahedron should have %" Pe… in DMPlexGetPlaneSimplexIntersection_Internal()
286 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneSimplexIntersection_Internal()
294 PetscInt numCoords; in DMPlexGetPlaneQuadIntersection_Internal() local
305 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneQuadIntersection_Internal()
306numCoords == dim * 4, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Quadrilateral should have %" PetscInt… in DMPlexGetPlaneQuadIntersection_Internal()
317 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneQuadIntersection_Internal()
325 PetscInt numCoords; in DMPlexGetPlaneHexIntersection_Internal() local
341 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneHexIntersection_Internal()
342numCoords == dim * 8, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Hexahedron should have %" PetscInt_FM… in DMPlexGetPlaneHexIntersection_Internal()
371 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexGetPlaneHexIntersection_Internal()
489 PetscInt crossings = 0, numCoords, embedDim; in DMPlexLocatePoint_Quad_2D_Linear_Internal() local
493 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexLocatePoint_Quad_2D_Linear_Internal()
494 embedDim = numCoords / 4; in DMPlexLocatePoint_Quad_2D_Linear_Internal()
495 …PetscCheck(!(numCoords % 4), PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Quadrilateral should have 8 co… in DMPlexLocatePoint_Quad_2D_Linear_Internal()
520 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexLocatePoint_Quad_2D_Linear_Internal()
599 PetscInt numCoords, f; in DMPlexLocatePoint_Hex_3D_Linear_Internal() local
603 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexLocatePoint_Hex_3D_Linear_Internal()
604 …PetscCheck(numCoords == 24, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Quadrilateral should have 8 coo… in DMPlexLocatePoint_Hex_3D_Linear_Internal()
636 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexLocatePoint_Hex_3D_Linear_Internal()
735 PetscInt numCoords; in DMPlexCreateGridHash() local
738 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexCreateGridHash()
739 …for (PetscInt i = 0; i < numCoords / cdim; ++i) PetscCall(PetscGridHashEnlarge(*box, &coords[i * c… in DMPlexCreateGridHash()
740 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexCreateGridHash()
1024 PetscInt numCoords, idx, dlim[6], lowerInt[3], upperInt[3]; in DMPlexComputeGridHash_Internal() local
1030 PetscCall(DMPlexGetCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexComputeGridHash_Internal()
1031 PetscCall(PetscGridHashGetEnclosingBox(lbox, numCoords / cdim, coords, dboxes, boxes)); in DMPlexComputeGridHash_Internal()
1032 PetscCall(DMPlexRestoreCellCoordinates(dm, c, &isDG, &numCoords, &array, &coords)); in DMPlexComputeGridHash_Internal()
1035 for (PetscInt e = 1; e < numCoords / cdim; ++e) { in DMPlexComputeGridHash_Internal()
1802 PetscInt numCoords, d; in DMPlexComputeLineGeometry_Internal() local
1806 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeLineGeometry_Internal()
1809 if (numCoords == 6) { in DMPlexComputeLineGeometry_Internal()
1831 } else if (numCoords == 4) { in DMPlexComputeLineGeometry_Internal()
1848 } else if (numCoords == 2) { in DMPlexComputeLineGeometry_Internal()
1863 …r of coordinates for segment %" PetscInt_FMT " is %" PetscInt_FMT " != 2 or 4 or 6", e, numCoords); in DMPlexComputeLineGeometry_Internal()
1864 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeLineGeometry_Internal()
1872 PetscInt numCoords, d; in DMPlexComputeTriangleGeometry_Internal() local
1876 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTriangleGeometry_Internal()
1879 if (numCoords == 9) { in DMPlexComputeTriangleGeometry_Internal()
1886 PetscCall(DMPlexComputeProjection3Dto2D(numCoords, coords, R)); in DMPlexComputeTriangleGeometry_Internal()
1904 } else if (numCoords == 6) { in DMPlexComputeTriangleGeometry_Internal()
1918 …RG_WRONG, "The number of coordinates for this triangle is %" PetscInt_FMT " != 6 or 9", numCoords); in DMPlexComputeTriangleGeometry_Internal()
1919 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTriangleGeometry_Internal()
1927 PetscInt numCoords, d; in DMPlexComputeRectangleGeometry_Internal() local
1931 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeRectangleGeometry_Internal()
1941 if (numCoords == 12) { in DMPlexComputeRectangleGeometry_Internal()
1948 PetscCall(DMPlexComputeProjection3Dto2D(numCoords, coords, R)); in DMPlexComputeRectangleGeometry_Internal()
1967 } else if (numCoords == 8) { in DMPlexComputeRectangleGeometry_Internal()
1982 …NG, "The number of coordinates for this quadrilateral is %" PetscInt_FMT " != 8 or 12", numCoords); in DMPlexComputeRectangleGeometry_Internal()
1995 if (numCoords == 12) { in DMPlexComputeRectangleGeometry_Internal()
1997 } else if (numCoords == 8) { in DMPlexComputeRectangleGeometry_Internal()
1999 …NG, "The number of coordinates for this quadrilateral is %" PetscInt_FMT " != 8 or 12", numCoords); in DMPlexComputeRectangleGeometry_Internal()
2074 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeRectangleGeometry_Internal()
2083 PetscInt numCoords, d; in DMPlexComputeTetrahedronGeometry_Internal() local
2087 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTetrahedronGeometry_Internal()
2104 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTetrahedronGeometry_Internal()
2113 PetscInt numCoords, d; in DMPlexComputeHexahedronGeometry_Internal() local
2117 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeHexahedronGeometry_Internal()
2220 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeHexahedronGeometry_Internal()
2229 PetscInt numCoords, d; in DMPlexComputeTriangularPrismGeometry_Internal() local
2233 PetscCall(DMPlexGetCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTriangularPrismGeometry_Internal()
2361 PetscCall(DMPlexRestoreCellCoordinates(dm, e, &isDG, &numCoords, &array, &coords)); in DMPlexComputeTriangularPrismGeometry_Internal()
2493 PetscInt numCoords; in DMPlexComputeCellGeometryFEM_FE() local
2503 PetscCall(DMPlexGetCellCoordinates(dm, point, &isDG, &numCoords, &array, &coords)); in DMPlexComputeCellGeometryFEM_FE()
2518numCoords == pdim * cdim, PETSC_COMM_SELF, PETSC_ERR_ARG_SIZ, "There are %" PetscInt_FMT " coordin… in DMPlexComputeCellGeometryFEM_FE()
2581 PetscCall(DMPlexRestoreCellCoordinates(dm, point, &isDG, &numCoords, &array, &coords)); in DMPlexComputeCellGeometryFEM_FE()