Lines Matching refs:dmNew

552 static PetscErrorCode DMPlexShiftSizes_Internal(DM dm, PetscInt depthShift[], DM dmNew)  in DMPlexShiftSizes_Internal()  argument
563 PetscCall(DMPlexSetChart(dmNew, pStart, pEnd)); in DMPlexShiftSizes_Internal()
564 PetscCall(DMCreateLabel(dmNew, "depth")); in DMPlexShiftSizes_Internal()
565 PetscCall(DMPlexGetDepthLabel(dmNew, &depthLabel)); in DMPlexShiftSizes_Internal()
566 PetscCall(DMCreateLabel(dmNew, "celltype")); in DMPlexShiftSizes_Internal()
584 PetscCall(DMPlexSetConeSize(dmNew, newp, size)); in DMPlexShiftSizes_Internal()
586 PetscCall(DMPlexSetSupportSize(dmNew, newp, size)); in DMPlexShiftSizes_Internal()
588 PetscCall(DMPlexSetCellType(dmNew, newp, ct)); in DMPlexShiftSizes_Internal()
594 static PetscErrorCode DMPlexShiftPoints_Internal(DM dm, PetscInt depthShift[], DM dmNew) in DMPlexShiftPoints_Internal() argument
603 PetscCall(DMPlexGetMaxSizes(dmNew, &maxConeSizeNew, &maxSupportSizeNew)); in DMPlexShiftPoints_Internal()
615 PetscCall(DMPlexSetCone(dmNew, newp, newpoints)); in DMPlexShiftPoints_Internal()
616 PetscCall(DMPlexSetConeOrientation(dmNew, newp, orientations)); in DMPlexShiftPoints_Internal()
618 PetscCall(DMPlexGetSupportSize(dmNew, newp, &sizeNew)); in DMPlexShiftPoints_Internal()
622 PetscCall(DMPlexSetSupport(dmNew, newp, newpoints)); in DMPlexShiftPoints_Internal()
628 static PetscErrorCode DMPlexShiftCoordinates_Internal(DM dm, PetscInt depthShift[], DM dmNew) in DMPlexShiftCoordinates_Internal() argument
639 PetscCall(DMSetCoordinateDim(dmNew, dim)); in DMPlexShiftCoordinates_Internal()
644 PetscCall(DMPlexGetDepthStratum(dmNew, 0, &vStartNew, &vEndNew)); in DMPlexShiftCoordinates_Internal()
645 PetscCall(DMPlexGetHeightStratum(dmNew, 0, &cStartNew, &cEndNew)); in DMPlexShiftCoordinates_Internal()
667 PetscCall(DMSetCoordinateSection(dmNew, PETSC_DETERMINE, newCoordSection)); in DMPlexShiftCoordinates_Internal()
674 PetscCall(DMSetCoordinatesLocal(dmNew, newCoordinates)); in DMPlexShiftCoordinates_Internal()
734 static PetscErrorCode DMPlexShiftSF_Internal(DM dm, PetscInt depthShift[], DM dmNew) in DMPlexShiftSF_Internal() argument
742 PetscCall(DMGetPointSF(dmNew, &sfPointNew)); in DMPlexShiftSF_Internal()
749 PetscCall(DMSetUseNatural(dmNew, useNatural)); in DMPlexShiftSF_Internal()
751 PetscCall(DMGetNaturalSF(dmNew, &sfNatNew)); in DMPlexShiftSF_Internal()
757 static PetscErrorCode DMPlexShiftLabels_Internal(DM dm, PetscInt depthShift[], DM dmNew) in DMPlexShiftLabels_Internal() argument
778 PetscCall(DMCreateLabel(dmNew, lname)); in DMPlexShiftLabels_Internal()
780 PetscCall(DMGetLabel(dmNew, lname, &newlabel)); in DMPlexShiftLabels_Internal()
808 static PetscErrorCode DMPlexCreateVTKLabel_Internal(DM dm, PetscBool createGhostLabel, DM dmNew) in DMPlexCreateVTKLabel_Internal() argument
821 PetscCall(DMPlexGetVTKCellHeight(dmNew, &cellHeight)); in DMPlexCreateVTKLabel_Internal()
824 PetscCall(DMCreateLabel(dmNew, "vtk")); in DMPlexCreateVTKLabel_Internal()
825 PetscCall(DMGetLabel(dmNew, "vtk", &vtkLabel)); in DMPlexCreateVTKLabel_Internal()
827 PetscCall(DMCreateLabel(dmNew, "ghost")); in DMPlexCreateVTKLabel_Internal()
828 PetscCall(DMGetLabel(dmNew, "ghost", &ghostLabel)); in DMPlexCreateVTKLabel_Internal()
838 PetscCall(DMPlexGetHeightStratum(dmNew, 1, &fStart, &fEnd)); in DMPlexCreateVTKLabel_Internal()
842 PetscCall(DMPlexGetSupportSize(dmNew, f, &numCells)); in DMPlexCreateVTKLabel_Internal()
849 PetscCall(DMPlexGetSupport(dmNew, f, &cells)); in DMPlexCreateVTKLabel_Internal()
859 static PetscErrorCode DMPlexShiftTree_Internal(DM dm, PetscInt depthShift[], DM dmNew) in DMPlexShiftTree_Internal() argument
867 PetscCall(DMPlexSetReferenceTree(dmNew, refTree)); in DMPlexShiftTree_Internal()
879 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dmNew), &pSecShifted)); in DMPlexShiftTree_Internal()
907 PetscCall(DMPlexSetTree(dmNew, pSecShifted, parentsShifted, childIDsShifted)); in DMPlexShiftTree_Internal()