Lines Matching refs:cone

621         PetscInt cone[2];  in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()  local
623 cone[0] = vertex; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
624 cone[1] = vertex + edges[0] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
625 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
628 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerRight)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
630 PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerRight)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
631 PetscCall(DMSetLabelValue(dm, "Face Sets", cone[1], markerRight)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
635 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerLeft)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
637 PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerLeft)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
638 PetscCall(DMSetLabelValue(dm, "Face Sets", cone[1], markerLeft)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
647 PetscInt cone[2]; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal() local
649 cone[0] = vertex; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
650 cone[1] = vertex + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
651 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
654 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerTop)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
656 PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerTop)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
657 PetscCall(DMSetLabelValue(dm, "Face Sets", cone[1], markerTop)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
661 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBottom)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
663 PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBottom)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
664 PetscCall(DMSetLabelValue(dm, "Face Sets", cone[1], markerBottom)); in DMPlexCreateBoxSurfaceMesh_Tensor_2D_Internal()
719 PetscInt voffset, iface = 0, cone[4]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal() local
748 cone[0] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
749 cone[1] = voffset + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
750 cone[2] = voffset + vertices[0] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
751 cone[3] = voffset + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
752 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
766 cone[0] = voffset + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
767 cone[1] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
768 cone[2] = voffset + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
769 cone[3] = voffset + vertices[0] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
770 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
784 cone[0] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
785 cone[1] = voffset + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
786 cone[2] = voffset + vertices[0] * vertices[1] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
787 cone[3] = voffset + vertices[0] * vertices[1]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
788 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
802 cone[0] = voffset + vertices[0] * vertices[1]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
803 cone[1] = voffset + vertices[0] * vertices[1] + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
804 cone[2] = voffset + 1; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
805 cone[3] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
806 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
820 cone[0] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
821 cone[1] = voffset + vertices[0] * vertices[1]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
822 cone[2] = voffset + vertices[0] * vertices[1] + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
823 cone[3] = voffset + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
824 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
838 cone[0] = voffset + vertices[0] * vertices[1]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
839 cone[1] = voffset; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
840 cone[2] = voffset + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
841 cone[3] = voffset + vertices[0] * vertices[1] + vertices[0]; in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
842 PetscCall(DMPlexSetCone(dm, iface, cone)); in DMPlexCreateBoxSurfaceMesh_Tensor_3D_Internal()
1353 const PetscInt cone[] = {v0, v1}; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1355 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1360 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerRight)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1361 if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerRight)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1365 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerLeft)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1366 if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerLeft)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1378 const PetscInt cone[] = {v0, v1}; in DMPlexCreateSquareMesh_Simplex_CrissCross() local
1380 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1385 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerTop)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1386 if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerTop)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1390 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBottom)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1391 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBottom)); in DMPlexCreateSquareMesh_Simplex_CrissCross()
1590 PetscInt cone[6]; in DMPlexCreateCubeMesh_Internal() local
1593 cone[0] = faceB; in DMPlexCreateCubeMesh_Internal()
1594 cone[1] = faceT; in DMPlexCreateCubeMesh_Internal()
1595 cone[2] = faceF; in DMPlexCreateCubeMesh_Internal()
1596 cone[3] = faceK; in DMPlexCreateCubeMesh_Internal()
1597 cone[4] = faceR; in DMPlexCreateCubeMesh_Internal()
1598 cone[5] = faceL; in DMPlexCreateCubeMesh_Internal()
1599 PetscCall(DMPlexSetCone(dm, cell, cone)); in DMPlexCreateCubeMesh_Internal()
1617 PetscInt cone[4]; in DMPlexCreateCubeMesh_Internal() local
1631 cone[0] = edgeB; in DMPlexCreateCubeMesh_Internal()
1632 cone[1] = edgeR; in DMPlexCreateCubeMesh_Internal()
1633 cone[2] = edgeT; in DMPlexCreateCubeMesh_Internal()
1634 cone[3] = edgeL; in DMPlexCreateCubeMesh_Internal()
1635 PetscCall(DMPlexSetCone(dm, face, cone)); in DMPlexCreateCubeMesh_Internal()
1650 PetscInt cone[4]; in DMPlexCreateCubeMesh_Internal() local
1664 cone[0] = edgeB; in DMPlexCreateCubeMesh_Internal()
1665 cone[1] = edgeR; in DMPlexCreateCubeMesh_Internal()
1666 cone[2] = edgeT; in DMPlexCreateCubeMesh_Internal()
1667 cone[3] = edgeL; in DMPlexCreateCubeMesh_Internal()
1668 PetscCall(DMPlexSetCone(dm, face, cone)); in DMPlexCreateCubeMesh_Internal()
1683 PetscInt cone[4]; in DMPlexCreateCubeMesh_Internal() local
1708 cone[0] = edgeB; in DMPlexCreateCubeMesh_Internal()
1709 cone[1] = edgeR; in DMPlexCreateCubeMesh_Internal()
1710 cone[2] = edgeT; in DMPlexCreateCubeMesh_Internal()
1711 cone[3] = edgeL; in DMPlexCreateCubeMesh_Internal()
1712 PetscCall(DMPlexSetCone(dm, face, cone)); in DMPlexCreateCubeMesh_Internal()
1724 PetscInt cone[2]; in DMPlexCreateCubeMesh_Internal() local
1726 cone[0] = vertexB; in DMPlexCreateCubeMesh_Internal()
1727 cone[1] = vertexT; in DMPlexCreateCubeMesh_Internal()
1728 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateCubeMesh_Internal()
1733 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerRight)); in DMPlexCreateCubeMesh_Internal()
1734 … if (ez == numZEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerRight)); in DMPlexCreateCubeMesh_Internal()
1737 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1738 … if (ez == numZEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1744 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBack)); in DMPlexCreateCubeMesh_Internal()
1745 … if (ez == numZEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBack)); in DMPlexCreateCubeMesh_Internal()
1748 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerFront)); in DMPlexCreateCubeMesh_Internal()
1749 … if (ez == numZEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerFront)); in DMPlexCreateCubeMesh_Internal()
1764 PetscInt cone[2]; in DMPlexCreateCubeMesh_Internal() local
1766 cone[0] = vertexF; in DMPlexCreateCubeMesh_Internal()
1767 cone[1] = vertexK; in DMPlexCreateCubeMesh_Internal()
1768 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateCubeMesh_Internal()
1774 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerRight)); in DMPlexCreateCubeMesh_Internal()
1775 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerRight)); in DMPlexCreateCubeMesh_Internal()
1779 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1780 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1785 PetscCall(DMLabelSetValue(cutLabel, cone[0], 1)); in DMPlexCreateCubeMesh_Internal()
1786 if (ey == numYEdges - 1) PetscCall(DMLabelSetValue(cutLabel, cone[1], 1)); in DMPlexCreateCubeMesh_Internal()
1793 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerRight)); in DMPlexCreateCubeMesh_Internal()
1794 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerRight)); in DMPlexCreateCubeMesh_Internal()
1797 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1798 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerLeft)); in DMPlexCreateCubeMesh_Internal()
1804 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerTop)); in DMPlexCreateCubeMesh_Internal()
1805 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerTop)); in DMPlexCreateCubeMesh_Internal()
1808 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBottom)); in DMPlexCreateCubeMesh_Internal()
1809 … if (ey == numYEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBottom)); in DMPlexCreateCubeMesh_Internal()
1824 PetscInt cone[2]; in DMPlexCreateCubeMesh_Internal() local
1826 cone[0] = vertexL; in DMPlexCreateCubeMesh_Internal()
1827 cone[1] = vertexR; in DMPlexCreateCubeMesh_Internal()
1828 PetscCall(DMPlexSetCone(dm, edge, cone)); in DMPlexCreateCubeMesh_Internal()
1834 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerTop)); in DMPlexCreateCubeMesh_Internal()
1835 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerTop)); in DMPlexCreateCubeMesh_Internal()
1839 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBottom)); in DMPlexCreateCubeMesh_Internal()
1840 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBottom)); in DMPlexCreateCubeMesh_Internal()
1845 PetscCall(DMLabelSetValue(cutLabel, cone[0], 1)); in DMPlexCreateCubeMesh_Internal()
1846 if (ex == numXEdges - 1) PetscCall(DMLabelSetValue(cutLabel, cone[1], 1)); in DMPlexCreateCubeMesh_Internal()
1853 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBack)); in DMPlexCreateCubeMesh_Internal()
1854 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBack)); in DMPlexCreateCubeMesh_Internal()
1857 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerFront)); in DMPlexCreateCubeMesh_Internal()
1858 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerFront)); in DMPlexCreateCubeMesh_Internal()
1864 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerTop)); in DMPlexCreateCubeMesh_Internal()
1865 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerTop)); in DMPlexCreateCubeMesh_Internal()
1868 PetscCall(DMSetLabelValue(dm, "marker", cone[0], markerBottom)); in DMPlexCreateCubeMesh_Internal()
1869 … if (ex == numXEdges - 1) PetscCall(DMSetLabelValue(dm, "marker", cone[1], markerBottom)); in DMPlexCreateCubeMesh_Internal()
2233 PetscInt *vert, *vtmp, *supp, cone[2], *leaves; in DMPlexCreateHypercubicMesh_Internal() local
2309 cone[0] = vertex; in DMPlexCreateHypercubicMesh_Internal()
2310 cone[1] = TupleToIndex_Private(dim, vertices, vtmp) + numCells; in DMPlexCreateHypercubicMesh_Internal()
2312 PetscCall(PetscSynchronizedPrintf(comm, " Vertex %" PetscInt_FMT ":", cone[1])); in DMPlexCreateHypercubicMesh_Internal()
2316 PetscCall(DMPlexSetCone(dm, cell, cone)); in DMPlexCreateHypercubicMesh_Internal()
2318 …comm, " Edge %" PetscInt_FMT " (%" PetscInt_FMT " %" PetscInt_FMT ")\n", cell, cone[0], cone[1])); in DMPlexCreateHypercubicMesh_Internal()
2597 PetscInt cone[8], c; in DMPlexCreateHexCylinderMesh_Internal() local
2610 cone[0] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2611 cone[1] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2612 cone[2] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2613 cone[3] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2614 cone[4] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2615 cone[5] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2616 cone[6] = 33; in DMPlexCreateHexCylinderMesh_Internal()
2617 cone[7] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2618 PetscCall(DMPlexSetCone(dm, 0, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2619 cone[0] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2620 cone[1] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2621 cone[2] = 24; in DMPlexCreateHexCylinderMesh_Internal()
2622 cone[3] = 23; in DMPlexCreateHexCylinderMesh_Internal()
2623 cone[4] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2624 cone[5] = 36; in DMPlexCreateHexCylinderMesh_Internal()
2625 cone[6] = 37; in DMPlexCreateHexCylinderMesh_Internal()
2626 cone[7] = 33; /* 22 25 26 21 */ in DMPlexCreateHexCylinderMesh_Internal()
2627 PetscCall(DMPlexSetCone(dm, 1, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2628 cone[0] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2629 cone[1] = 27; in DMPlexCreateHexCylinderMesh_Internal()
2630 cone[2] = 24; in DMPlexCreateHexCylinderMesh_Internal()
2631 cone[3] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2632 cone[4] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2633 cone[5] = 33; in DMPlexCreateHexCylinderMesh_Internal()
2634 cone[6] = 37; in DMPlexCreateHexCylinderMesh_Internal()
2635 cone[7] = 38; in DMPlexCreateHexCylinderMesh_Internal()
2636 PetscCall(DMPlexSetCone(dm, 2, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2637 cone[0] = 29; in DMPlexCreateHexCylinderMesh_Internal()
2638 cone[1] = 27; in DMPlexCreateHexCylinderMesh_Internal()
2639 cone[2] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2640 cone[3] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2641 cone[4] = 35; in DMPlexCreateHexCylinderMesh_Internal()
2642 cone[5] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2643 cone[6] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2644 cone[7] = 38; in DMPlexCreateHexCylinderMesh_Internal()
2645 PetscCall(DMPlexSetCone(dm, 3, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2646 cone[0] = 29; in DMPlexCreateHexCylinderMesh_Internal()
2647 cone[1] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2648 cone[2] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2649 cone[3] = 23; in DMPlexCreateHexCylinderMesh_Internal()
2650 cone[4] = 35; in DMPlexCreateHexCylinderMesh_Internal()
2651 cone[5] = 36; in DMPlexCreateHexCylinderMesh_Internal()
2652 cone[6] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2653 cone[7] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2654 PetscCall(DMPlexSetCone(dm, 4, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2656 cone[0] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2657 cone[1] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2658 cone[2] = 33; in DMPlexCreateHexCylinderMesh_Internal()
2659 cone[3] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2660 cone[4] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2661 cone[5] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2662 cone[6] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2663 cone[7] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2664 PetscCall(DMPlexSetCone(dm, 5, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2665 cone[0] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2666 cone[1] = 33; in DMPlexCreateHexCylinderMesh_Internal()
2667 cone[2] = 37; in DMPlexCreateHexCylinderMesh_Internal()
2668 cone[3] = 36; in DMPlexCreateHexCylinderMesh_Internal()
2669 cone[4] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2670 cone[5] = 25; in DMPlexCreateHexCylinderMesh_Internal()
2671 cone[6] = 26; in DMPlexCreateHexCylinderMesh_Internal()
2672 cone[7] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2673 PetscCall(DMPlexSetCone(dm, 6, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2674 cone[0] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2675 cone[1] = 38; in DMPlexCreateHexCylinderMesh_Internal()
2676 cone[2] = 37; in DMPlexCreateHexCylinderMesh_Internal()
2677 cone[3] = 33; in DMPlexCreateHexCylinderMesh_Internal()
2678 cone[4] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2679 cone[5] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2680 cone[6] = 26; in DMPlexCreateHexCylinderMesh_Internal()
2681 cone[7] = 28; in DMPlexCreateHexCylinderMesh_Internal()
2682 PetscCall(DMPlexSetCone(dm, 7, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2683 cone[0] = 35; in DMPlexCreateHexCylinderMesh_Internal()
2684 cone[1] = 38; in DMPlexCreateHexCylinderMesh_Internal()
2685 cone[2] = 34; in DMPlexCreateHexCylinderMesh_Internal()
2686 cone[3] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2687 cone[4] = 30; in DMPlexCreateHexCylinderMesh_Internal()
2688 cone[5] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2689 cone[6] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2690 cone[7] = 28; in DMPlexCreateHexCylinderMesh_Internal()
2691 PetscCall(DMPlexSetCone(dm, 8, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2692 cone[0] = 35; in DMPlexCreateHexCylinderMesh_Internal()
2693 cone[1] = 31; in DMPlexCreateHexCylinderMesh_Internal()
2694 cone[2] = 32; in DMPlexCreateHexCylinderMesh_Internal()
2695 cone[3] = 36; in DMPlexCreateHexCylinderMesh_Internal()
2696 cone[4] = 30; in DMPlexCreateHexCylinderMesh_Internal()
2697 cone[5] = 25; in DMPlexCreateHexCylinderMesh_Internal()
2698 cone[6] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2699 cone[7] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2700 PetscCall(DMPlexSetCone(dm, 9, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2702 cone[0] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2703 cone[1] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2704 cone[2] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2705 cone[3] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2706 cone[4] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2707 cone[5] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2708 cone[6] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2709 cone[7] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2710 PetscCall(DMPlexSetCone(dm, 10, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2711 cone[0] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2712 cone[1] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2713 cone[2] = 26; in DMPlexCreateHexCylinderMesh_Internal()
2714 cone[3] = 25; in DMPlexCreateHexCylinderMesh_Internal()
2715 cone[4] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2716 cone[5] = 23; in DMPlexCreateHexCylinderMesh_Internal()
2717 cone[6] = 24; in DMPlexCreateHexCylinderMesh_Internal()
2718 cone[7] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2719 PetscCall(DMPlexSetCone(dm, 11, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2720 cone[0] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2721 cone[1] = 28; in DMPlexCreateHexCylinderMesh_Internal()
2722 cone[2] = 26; in DMPlexCreateHexCylinderMesh_Internal()
2723 cone[3] = 21; in DMPlexCreateHexCylinderMesh_Internal()
2724 cone[4] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2725 cone[5] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2726 cone[6] = 24; in DMPlexCreateHexCylinderMesh_Internal()
2727 cone[7] = 27; in DMPlexCreateHexCylinderMesh_Internal()
2728 PetscCall(DMPlexSetCone(dm, 12, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2729 cone[0] = 30; in DMPlexCreateHexCylinderMesh_Internal()
2730 cone[1] = 28; in DMPlexCreateHexCylinderMesh_Internal()
2731 cone[2] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2732 cone[3] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2733 cone[4] = 29; in DMPlexCreateHexCylinderMesh_Internal()
2734 cone[5] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2735 cone[6] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2736 cone[7] = 27; in DMPlexCreateHexCylinderMesh_Internal()
2737 PetscCall(DMPlexSetCone(dm, 13, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2738 cone[0] = 30; in DMPlexCreateHexCylinderMesh_Internal()
2739 cone[1] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2740 cone[2] = 22; in DMPlexCreateHexCylinderMesh_Internal()
2741 cone[3] = 25; in DMPlexCreateHexCylinderMesh_Internal()
2742 cone[4] = 29; in DMPlexCreateHexCylinderMesh_Internal()
2743 cone[5] = 23; in DMPlexCreateHexCylinderMesh_Internal()
2744 cone[6] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2745 cone[7] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2746 PetscCall(DMPlexSetCone(dm, 14, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2748 cone[0] = 5; in DMPlexCreateHexCylinderMesh_Internal()
2749 cone[1] = 8; in DMPlexCreateHexCylinderMesh_Internal()
2750 cone[2] = 7; in DMPlexCreateHexCylinderMesh_Internal()
2751 cone[3] = 6; in DMPlexCreateHexCylinderMesh_Internal()
2752 cone[4] = 9; in DMPlexCreateHexCylinderMesh_Internal()
2753 cone[5] = 12; in DMPlexCreateHexCylinderMesh_Internal()
2754 cone[6] = 11; in DMPlexCreateHexCylinderMesh_Internal()
2755 cone[7] = 10; in DMPlexCreateHexCylinderMesh_Internal()
2756 PetscCall(DMPlexSetCone(dm, 0, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2757 cone[0] = 6; in DMPlexCreateHexCylinderMesh_Internal()
2758 cone[1] = 7; in DMPlexCreateHexCylinderMesh_Internal()
2759 cone[2] = 14; in DMPlexCreateHexCylinderMesh_Internal()
2760 cone[3] = 13; in DMPlexCreateHexCylinderMesh_Internal()
2761 cone[4] = 12; in DMPlexCreateHexCylinderMesh_Internal()
2762 cone[5] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2763 cone[6] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2764 cone[7] = 11; in DMPlexCreateHexCylinderMesh_Internal()
2765 PetscCall(DMPlexSetCone(dm, 1, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2766 cone[0] = 8; in DMPlexCreateHexCylinderMesh_Internal()
2767 cone[1] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2768 cone[2] = 14; in DMPlexCreateHexCylinderMesh_Internal()
2769 cone[3] = 7; in DMPlexCreateHexCylinderMesh_Internal()
2770 cone[4] = 10; in DMPlexCreateHexCylinderMesh_Internal()
2771 cone[5] = 11; in DMPlexCreateHexCylinderMesh_Internal()
2772 cone[6] = 16; in DMPlexCreateHexCylinderMesh_Internal()
2773 cone[7] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2774 PetscCall(DMPlexSetCone(dm, 2, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2775 cone[0] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2776 cone[1] = 17; in DMPlexCreateHexCylinderMesh_Internal()
2777 cone[2] = 8; in DMPlexCreateHexCylinderMesh_Internal()
2778 cone[3] = 5; in DMPlexCreateHexCylinderMesh_Internal()
2779 cone[4] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2780 cone[5] = 9; in DMPlexCreateHexCylinderMesh_Internal()
2781 cone[6] = 10; in DMPlexCreateHexCylinderMesh_Internal()
2782 cone[7] = 18; in DMPlexCreateHexCylinderMesh_Internal()
2783 PetscCall(DMPlexSetCone(dm, 3, cone)); in DMPlexCreateHexCylinderMesh_Internal()
2784 cone[0] = 19; in DMPlexCreateHexCylinderMesh_Internal()
2785 cone[1] = 5; in DMPlexCreateHexCylinderMesh_Internal()
2786 cone[2] = 6; in DMPlexCreateHexCylinderMesh_Internal()
2787 cone[3] = 13; in DMPlexCreateHexCylinderMesh_Internal()
2788 cone[4] = 20; in DMPlexCreateHexCylinderMesh_Internal()
2789 cone[5] = 15; in DMPlexCreateHexCylinderMesh_Internal()
2790 cone[6] = 12; in DMPlexCreateHexCylinderMesh_Internal()
2791 cone[7] = 9; in DMPlexCreateHexCylinderMesh_Internal()
2792 PetscCall(DMPlexSetCone(dm, 4, cone)); in DMPlexCreateHexCylinderMesh_Internal()
3051 PetscInt cone[6], c; in DMPlexCreateWedgeCylinderMesh_Internal() local
3059 cone[0] = c + n * 1; in DMPlexCreateWedgeCylinderMesh_Internal()
3060 cone[1] = (c + 1) % n + n * 1; in DMPlexCreateWedgeCylinderMesh_Internal()
3061 cone[2] = 0 + 3 * n; in DMPlexCreateWedgeCylinderMesh_Internal()
3062 cone[3] = c + n * 2; in DMPlexCreateWedgeCylinderMesh_Internal()
3063 cone[4] = (c + 1) % n + n * 2; in DMPlexCreateWedgeCylinderMesh_Internal()
3064 cone[5] = 1 + 3 * n; in DMPlexCreateWedgeCylinderMesh_Internal()
3065 PetscCall(DMPlexSetCone(dm, c, cone)); in DMPlexCreateWedgeCylinderMesh_Internal()
3203 PetscInt cone[2]; in DMPlexCreateSphereMesh_Internal() local
3205 cone[0] = c + numCells; in DMPlexCreateSphereMesh_Internal()
3206 cone[1] = (c + 1) % numVerts + numCells; in DMPlexCreateSphereMesh_Internal()
3207 PetscCall(DMPlexSetCone(dm, c, cone)); in DMPlexCreateSphereMesh_Internal()
3226 PetscInt cone[3]; in DMPlexCreateSphereMesh_Internal() local
3275 cone[0] = firstVertex + i; in DMPlexCreateSphereMesh_Internal()
3276 cone[1] = firstVertex + j; in DMPlexCreateSphereMesh_Internal()
3277 cone[2] = firstVertex + k; in DMPlexCreateSphereMesh_Internal()
3295 PetscInt tmp = cone[1]; in DMPlexCreateSphereMesh_Internal()
3296 cone[1] = cone[2]; in DMPlexCreateSphereMesh_Internal()
3297 cone[2] = tmp; in DMPlexCreateSphereMesh_Internal()
3300 PetscCall(DMPlexSetCone(dm, c++, cone)); in DMPlexCreateSphereMesh_Internal()
3328 PetscInt cone[4], ornt[4]; in DMPlexCreateSphereMesh_Internal() local
3342 cone[0] = 14; in DMPlexCreateSphereMesh_Internal()
3343 cone[1] = 15; in DMPlexCreateSphereMesh_Internal()
3344 cone[2] = 16; in DMPlexCreateSphereMesh_Internal()
3345 cone[3] = 17; in DMPlexCreateSphereMesh_Internal()
3346 PetscCall(DMPlexSetCone(dm, 0, cone)); in DMPlexCreateSphereMesh_Internal()
3353 cone[0] = 18; in DMPlexCreateSphereMesh_Internal()
3354 cone[1] = 19; in DMPlexCreateSphereMesh_Internal()
3355 cone[2] = 14; in DMPlexCreateSphereMesh_Internal()
3356 cone[3] = 20; in DMPlexCreateSphereMesh_Internal()
3357 PetscCall(DMPlexSetCone(dm, 1, cone)); in DMPlexCreateSphereMesh_Internal()
3364 cone[0] = 21; in DMPlexCreateSphereMesh_Internal()
3365 cone[1] = 22; in DMPlexCreateSphereMesh_Internal()
3366 cone[2] = 18; in DMPlexCreateSphereMesh_Internal()
3367 cone[3] = 23; in DMPlexCreateSphereMesh_Internal()
3368 PetscCall(DMPlexSetCone(dm, 2, cone)); in DMPlexCreateSphereMesh_Internal()
3375 cone[0] = 19; in DMPlexCreateSphereMesh_Internal()
3376 cone[1] = 22; in DMPlexCreateSphereMesh_Internal()
3377 cone[2] = 24; in DMPlexCreateSphereMesh_Internal()
3378 cone[3] = 15; in DMPlexCreateSphereMesh_Internal()
3379 PetscCall(DMPlexSetCone(dm, 3, cone)); in DMPlexCreateSphereMesh_Internal()
3386 cone[0] = 16; in DMPlexCreateSphereMesh_Internal()
3387 cone[1] = 24; in DMPlexCreateSphereMesh_Internal()
3388 cone[2] = 21; in DMPlexCreateSphereMesh_Internal()
3389 cone[3] = 25; in DMPlexCreateSphereMesh_Internal()
3390 PetscCall(DMPlexSetCone(dm, 4, cone)); in DMPlexCreateSphereMesh_Internal()
3397 cone[0] = 20; in DMPlexCreateSphereMesh_Internal()
3398 cone[1] = 17; in DMPlexCreateSphereMesh_Internal()
3399 cone[2] = 25; in DMPlexCreateSphereMesh_Internal()
3400 cone[3] = 23; in DMPlexCreateSphereMesh_Internal()
3401 PetscCall(DMPlexSetCone(dm, 5, cone)); in DMPlexCreateSphereMesh_Internal()
3408 cone[0] = 6; in DMPlexCreateSphereMesh_Internal()
3409 cone[1] = 7; in DMPlexCreateSphereMesh_Internal()
3410 PetscCall(DMPlexSetCone(dm, 14, cone)); in DMPlexCreateSphereMesh_Internal()
3411 cone[0] = 7; in DMPlexCreateSphereMesh_Internal()
3412 cone[1] = 8; in DMPlexCreateSphereMesh_Internal()
3413 PetscCall(DMPlexSetCone(dm, 15, cone)); in DMPlexCreateSphereMesh_Internal()
3414 cone[0] = 8; in DMPlexCreateSphereMesh_Internal()
3415 cone[1] = 9; in DMPlexCreateSphereMesh_Internal()
3416 PetscCall(DMPlexSetCone(dm, 16, cone)); in DMPlexCreateSphereMesh_Internal()
3417 cone[0] = 9; in DMPlexCreateSphereMesh_Internal()
3418 cone[1] = 6; in DMPlexCreateSphereMesh_Internal()
3419 PetscCall(DMPlexSetCone(dm, 17, cone)); in DMPlexCreateSphereMesh_Internal()
3420 cone[0] = 10; in DMPlexCreateSphereMesh_Internal()
3421 cone[1] = 11; in DMPlexCreateSphereMesh_Internal()
3422 PetscCall(DMPlexSetCone(dm, 18, cone)); in DMPlexCreateSphereMesh_Internal()
3423 cone[0] = 11; in DMPlexCreateSphereMesh_Internal()
3424 cone[1] = 7; in DMPlexCreateSphereMesh_Internal()
3425 PetscCall(DMPlexSetCone(dm, 19, cone)); in DMPlexCreateSphereMesh_Internal()
3426 cone[0] = 6; in DMPlexCreateSphereMesh_Internal()
3427 cone[1] = 10; in DMPlexCreateSphereMesh_Internal()
3428 PetscCall(DMPlexSetCone(dm, 20, cone)); in DMPlexCreateSphereMesh_Internal()
3429 cone[0] = 12; in DMPlexCreateSphereMesh_Internal()
3430 cone[1] = 13; in DMPlexCreateSphereMesh_Internal()
3431 PetscCall(DMPlexSetCone(dm, 21, cone)); in DMPlexCreateSphereMesh_Internal()
3432 cone[0] = 13; in DMPlexCreateSphereMesh_Internal()
3433 cone[1] = 11; in DMPlexCreateSphereMesh_Internal()
3434 PetscCall(DMPlexSetCone(dm, 22, cone)); in DMPlexCreateSphereMesh_Internal()
3435 cone[0] = 10; in DMPlexCreateSphereMesh_Internal()
3436 cone[1] = 12; in DMPlexCreateSphereMesh_Internal()
3437 PetscCall(DMPlexSetCone(dm, 23, cone)); in DMPlexCreateSphereMesh_Internal()
3438 cone[0] = 13; in DMPlexCreateSphereMesh_Internal()
3439 cone[1] = 8; in DMPlexCreateSphereMesh_Internal()
3440 PetscCall(DMPlexSetCone(dm, 24, cone)); in DMPlexCreateSphereMesh_Internal()
3441 cone[0] = 12; in DMPlexCreateSphereMesh_Internal()
3442 cone[1] = 9; in DMPlexCreateSphereMesh_Internal()
3443 PetscCall(DMPlexSetCone(dm, 25, cone)); in DMPlexCreateSphereMesh_Internal()
3499 PetscInt cone[4]; in DMPlexCreateSphereMesh_Internal() local
3585 cone[0] = firstVertex + i; in DMPlexCreateSphereMesh_Internal()
3586 cone[1] = firstVertex + j; in DMPlexCreateSphereMesh_Internal()
3587 cone[2] = firstVertex + k; in DMPlexCreateSphereMesh_Internal()
3588 cone[3] = firstVertex + l; in DMPlexCreateSphereMesh_Internal()
3614 PetscInt tmp = cone[1]; in DMPlexCreateSphereMesh_Internal()
3615 cone[1] = cone[2]; in DMPlexCreateSphereMesh_Internal()
3616 cone[2] = tmp; in DMPlexCreateSphereMesh_Internal()
3619 PetscCall(DMPlexSetCone(dm, c++, cone)); in DMPlexCreateSphereMesh_Internal()
6746 PetscInt cone[8]; in DMPlexCreateCellVertexFromFile() local
6779 for (v = 0; v < Ncn; ++v) cone[v] = vbuf[v] + Nc; in DMPlexCreateCellVertexFromFile()
6782 PetscInt tmp = cone[1]; in DMPlexCreateCellVertexFromFile()
6783 cone[1] = cone[3]; in DMPlexCreateCellVertexFromFile()
6784 cone[3] = tmp; in DMPlexCreateCellVertexFromFile()
6786 PetscCall(DMPlexSetCone(*dm, c, cone)); in DMPlexCreateCellVertexFromFile()
7163 PetscInt cone[2] = {Nc + c, Nc + c + 1}; in DMPlexCreateShapefile() local
7165 PetscCall(DMPlexSetCone(*dm, c, cone)); in DMPlexCreateShapefile()