Lines Matching refs:depthShift
779 PetscInt *depthRecv, *depthShift, *depthIdx; in DMPlexCreateOverlapMigrationSF() local
804 PetscCall(PetscMalloc3(dim + 1, &depthRecv, dim + 1, &depthShift, dim + 1, &depthIdx)); in DMPlexCreateOverlapMigrationSF()
807 depthShift[dim] = 0; in DMPlexCreateOverlapMigrationSF()
808 for (d = 0; d < dim; d++) depthShift[d] = depthRecv[dim]; in DMPlexCreateOverlapMigrationSF()
809 for (d = 1; d < dim; d++) depthShift[d] += depthRecv[0]; in DMPlexCreateOverlapMigrationSF()
810 for (d = dim - 2; d > 0; d--) depthShift[d] += depthRecv[d + 1]; in DMPlexCreateOverlapMigrationSF()
813 depthIdx[d] = pStart + depthShift[d]; in DMPlexCreateOverlapMigrationSF()
825 point = p + depthShift[d]; in DMPlexCreateOverlapMigrationSF()
840 point = sharedLocal[p] + depthShift[d]; in DMPlexCreateOverlapMigrationSF()
863 PetscCall(PetscFree3(depthRecv, depthShift, depthIdx)); in DMPlexCreateOverlapMigrationSF()
891 PetscInt *depthRecv, *depthShift, *depthIdx; in DMPlexStratifyMigrationSF() local
926 …PetscCall(PetscCalloc6(depth + 1, &depthRecv, depth + 1, &depthShift, depth + 1, &depthIdx, DM_NUM… in DMPlexStratifyMigrationSF()
957 depthShift[dep] = shift; in DMPlexStratifyMigrationSF()
981 PetscCall(PetscFree6(depthRecv, depthShift, depthIdx, ctRecv, ctShift, ctIdx)); in DMPlexStratifyMigrationSF()