Searched refs:depthShift (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/dm/impls/plex/ |
| H A D | plexsubmesh.c | 489 static inline PetscErrorCode DMPlexShiftPointSetUp_Internal(PetscInt depth, PetscInt depthShift[]) in DMPlexShiftPointSetUp_Internal() argument 497 PetscInt firstStart = depthShift[2 * d]; in DMPlexShiftPointSetUp_Internal() 501 if (depthShift[2 * e] < firstStart) { in DMPlexShiftPointSetUp_Internal() 503 firstStart = depthShift[2 * d]; in DMPlexShiftPointSetUp_Internal() 510 swap[0] = depthShift[2 * d]; in DMPlexShiftPointSetUp_Internal() 511 swap[1] = depthShift[2 * d + 1]; in DMPlexShiftPointSetUp_Internal() 512 depthShift[2 * d] = depthShift[2 * e]; in DMPlexShiftPointSetUp_Internal() 513 depthShift[2 * d + 1] = depthShift[2 * e + 1]; in DMPlexShiftPointSetUp_Internal() 514 depthShift[2 * e] = swap[0]; in DMPlexShiftPointSetUp_Internal() 515 depthShift[2 * e + 1] = swap[1]; in DMPlexShiftPointSetUp_Internal() [all …]
|
| H A D | plexdistribute.c | 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() [all …]
|