Lines Matching refs:dmParallel
1100 …SF migrationSF, ISLocalToGlobalMapping original, ISLocalToGlobalMapping renumbering, DM dmParallel) in DMPlexDistributeCones() argument
1102 DM_Plex *pmesh = (DM_Plex *)dmParallel->data; in DMPlexDistributeCones()
1111 PetscValidHeaderSpecific(dmParallel, DM_CLASSID, 5); in DMPlexDistributeCones()
1116 PetscCall(DMPlexGetConeSection(dmParallel, &newConeSection)); in DMPlexDistributeCones()
1118 PetscCall(DMSetUp(dmParallel)); in DMPlexDistributeCones()
1132 PetscCall(DMPlexGetCones(dmParallel, &newCones)); in DMPlexDistributeCones()
1158 PetscCall(DMPlexGetConeOrientations(dmParallel, &newCones)); in DMPlexDistributeCones()
1170 PetscCall(DMPlexSymmetrize(dmParallel)); in DMPlexDistributeCones()
1171 PetscCall(DMPlexStratify(dmParallel)); in DMPlexDistributeCones()
1176 PetscCall(DMSetBasicAdjacency(dmParallel, useCone, useClosure)); in DMPlexDistributeCones()
1178 PetscCall(DMPlexSetAdjacencyUseAnchors(dmParallel, useAnchors)); in DMPlexDistributeCones()
1183 static PetscErrorCode DMPlexDistributeCoordinates(DM dm, PetscSF migrationSF, DM dmParallel) in DMPlexDistributeCoordinates() argument
1195 PetscValidHeaderSpecific(dmParallel, DM_CLASSID, 3); in DMPlexDistributeCoordinates()
1199 PetscCall(DMGetCoordinateDM(dmParallel, &cdmParallel)); in DMPlexDistributeCoordinates()
1202 PetscCall(DMGetCoordinateSection(dmParallel, &newCoordSection)); in DMPlexDistributeCoordinates()
1210 PetscCall(DMSetCoordinatesLocal(dmParallel, newCoordinates)); in DMPlexDistributeCoordinates()
1218 PetscCall(DMSetPeriodicity(dmParallel, maxCell, Lstart, L)); in DMPlexDistributeCoordinates()
1221 PetscCall(DMClone(dmParallel, &cdmParallel)); in DMPlexDistributeCoordinates()
1222 PetscCall(DMSetCellCoordinateDM(dmParallel, cdmParallel)); in DMPlexDistributeCoordinates()
1236 PetscCall(DMSetCellCoordinateSection(dmParallel, bs, newCoordSection)); in DMPlexDistributeCoordinates()
1237 PetscCall(DMSetCellCoordinatesLocal(dmParallel, newCoordinates)); in DMPlexDistributeCoordinates()
1245 static PetscErrorCode DMPlexDistributeLabels(DM dm, PetscSF migrationSF, DM dmParallel) in DMPlexDistributeLabels() argument
1257 PetscValidHeaderSpecific(dmParallel, DM_CLASSID, 3); in DMPlexDistributeLabels()
1270 PetscCall(DMPlexGetDepthLabel(dmParallel, &dmParallel->depthLabel)); in DMPlexDistributeLabels()
1271 PetscCall(DMRemoveLabelBySelf(dmParallel, &dmParallel->depthLabel, PETSC_FALSE)); in DMPlexDistributeLabels()
1307 PetscCall(DMAddLabel(dmParallel, labelNew)); in DMPlexDistributeLabels()
1312 PetscCall(DMSetLabelOutput(dmParallel, name, isOutput)); in DMPlexDistributeLabels()
1319 PetscCall(DMPlexGetCellTypeLabel(dmParallel, &ctLabel)); in DMPlexDistributeLabels()
1326 …SF migrationSF, ISLocalToGlobalMapping original, ISLocalToGlobalMapping renumbering, DM dmParallel) in DMPlexDistributeSetupTree() argument
1329 DM_Plex *pmesh = (DM_Plex *)dmParallel->data; in DMPlexDistributeSetupTree()
1338 PetscValidHeaderSpecific(dmParallel, DM_CLASSID, 5); in DMPlexDistributeSetupTree()
1343 PetscCall(DMPlexSetReferenceTree(dmParallel, refTree)); in DMPlexDistributeSetupTree()
1351 PetscCall(DMPlexGetChart(dmParallel, &pStart, &pEnd)); in DMPlexDistributeSetupTree()
1352 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)dmParallel), &newParentSection)); in DMPlexDistributeSetupTree()
1393 PetscCall(DMPlexSetTree(dmParallel, newParentSection, newParents, newChildIDs)); in DMPlexDistributeSetupTree()
1749 …ic PetscErrorCode DMPlexDistribute_Multistage(DM dm, PetscInt overlap, PetscSF *sf, DM *dmParallel) in DMPlexDistribute_Multistage() argument
1758 *dmParallel = NULL; in DMPlexDistribute_Multistage()
1800 dm = *dmParallel = dmDist; in DMPlexDistribute_Multistage()
1831 PetscErrorCode DMPlexDistribute(DM dm, PetscInt overlap, PeOp PetscSF *sf, DM *dmParallel) in DMPlexDistribute() argument
1847 PetscAssertPointer(dmParallel, 4); in DMPlexDistribute()
1850 *dmParallel = NULL; in DMPlexDistribute()
1864 PetscCall(DMPlexDistribute_Multistage(dm, overlap, sf, dmParallel)); in DMPlexDistribute()
1926 PetscCall(DMPlexCreate(comm, dmParallel)); in DMPlexDistribute()
1927 PetscCall(PetscObjectSetName((PetscObject)*dmParallel, "Parallel Mesh")); in DMPlexDistribute()
1928 PetscCall(DMPlexMigrate(dm, sfMigration, *dmParallel)); in DMPlexDistribute()
1932 PetscCall(DMPlexSetPartitionBalance(*dmParallel, balance)); in DMPlexDistribute()
1933 PetscCall(DMPlexCreatePointSF(*dmParallel, sfMigration, PETSC_TRUE, &sfPoint)); in DMPlexDistribute()
1934 PetscCall(DMSetPointSF(*dmParallel, sfPoint)); in DMPlexDistribute()
1935 PetscCall(DMPlexMigrateIsoperiodicFaceSF_Internal(dm, *dmParallel, sfMigration)); in DMPlexDistribute()
1936 PetscCall(DMGetCoordinateDM(*dmParallel, &dmCoord)); in DMPlexDistribute()
1945 PetscCall(DMPlexDistributeOverlap(*dmParallel, overlap, &sfOverlap, &dmOverlap)); in DMPlexDistribute()
1946 PetscCall(DMDestroy(dmParallel)); in DMPlexDistribute()
1947 *dmParallel = dmOverlap; in DMPlexDistribute()
1964 PetscCall(DMPlexCopy_Internal(dm, PETSC_TRUE, PETSC_FALSE, *dmParallel)); in DMPlexDistribute()
1966 PetscCall(DMCopyDisc(dm, *dmParallel)); in DMPlexDistribute()
1971 PetscCall(DMSetLocalSection(*dmParallel, psection)); in DMPlexDistribute()
1977 PetscCall(DMSetUseNatural(*dmParallel, PETSC_TRUE)); in DMPlexDistribute()
1984 …PetscCall(DMPlexMigrateGlobalToNaturalSF(dm, *dmParallel, dm->sfNatural, sfMigration, &(*dmParalle… in DMPlexDistribute()
1986 …PetscCall(DMPlexCreateGlobalToNaturalSF(*dmParallel, section, sfMigration, &(*dmParallel)->sfNatur… in DMPlexDistribute()