Lines Matching refs:remoteDepths
778 PetscInt *pointDepths, *remoteDepths, *ilocal; in DMPlexCreateOverlapMigrationSF() local
794 PetscCall(PetscMalloc2(nroots, &pointDepths, nleaves, &remoteDepths)); in DMPlexCreateOverlapMigrationSF()
799 for (p = 0; p < nleaves; p++) remoteDepths[p] = -1; in DMPlexCreateOverlapMigrationSF()
800 PetscCall(PetscSFBcastBegin(overlapSF, MPIU_INT, pointDepths, remoteDepths, MPI_REPLACE)); in DMPlexCreateOverlapMigrationSF()
801 PetscCall(PetscSFBcastEnd(overlapSF, MPIU_INT, pointDepths, remoteDepths, MPI_REPLACE)); in DMPlexCreateOverlapMigrationSF()
806 for (p = 0; p < nleaves; p++) depthRecv[remoteDepths[p]]++; in DMPlexCreateOverlapMigrationSF()
849 point = depthIdx[remoteDepths[p]]; in DMPlexCreateOverlapMigrationSF()
853 depthIdx[remoteDepths[p]]++; in DMPlexCreateOverlapMigrationSF()
855 PetscCall(PetscFree2(pointDepths, remoteDepths)); in DMPlexCreateOverlapMigrationSF()
889 PetscSFNode *pointDepths, *remoteDepths; in DMPlexStratifyMigrationSF() local
908 PetscCall(PetscMalloc2(nroots, &pointDepths, nleaves, &remoteDepths)); in DMPlexStratifyMigrationSF()
920 remoteDepths[p].index = -1; in DMPlexStratifyMigrationSF()
921 remoteDepths[p].rank = -1; in DMPlexStratifyMigrationSF()
923 PetscCall(PetscSFBcastBegin(sf, MPIU_SF_NODE, pointDepths, remoteDepths, MPI_REPLACE)); in DMPlexStratifyMigrationSF()
924 PetscCall(PetscSFBcastEnd(sf, MPIU_SF_NODE, pointDepths, remoteDepths, MPI_REPLACE)); in DMPlexStratifyMigrationSF()
928 if (remoteDepths[p].rank < 0) { in DMPlexStratifyMigrationSF()
929 ++depthRecv[remoteDepths[p].index]; in DMPlexStratifyMigrationSF()
931 ++ctRecv[remoteDepths[p].rank]; in DMPlexStratifyMigrationSF()
972 const DMPolytopeType ct = (DMPolytopeType)remoteDepths[p].rank; in DMPlexStratifyMigrationSF()
980 PetscCall(PetscFree2(pointDepths, remoteDepths)); in DMPlexStratifyMigrationSF()