Searched refs:pcell_offsets (Results 1 – 2 of 2) sorted by relevance
35 PetscCall(PetscMalloc1(1, &ctx->pcell_offsets)); in DMSwarmSortCreate()56 PetscCall(PetscRealloc(sizeof(PetscInt) * (ncells + 1), &ctx->pcell_offsets)); in DMSwarmSortSetup()59 PetscCall(PetscArrayzero(ctx->pcell_offsets, ctx->ncells + 1)); in DMSwarmSortSetup()80 for (p = 0; p < ctx->npoints; p++) ctx->pcell_offsets[ctx->list[p].cell_index]++; in DMSwarmSortSetup()85 tmp = ctx->pcell_offsets[c]; in DMSwarmSortSetup()86 ctx->pcell_offsets[c] = count; in DMSwarmSortSetup()89 ctx->pcell_offsets[c] = count; in DMSwarmSortSetup()105 if (ictx->pcell_offsets) PetscCall(PetscFree(ictx->pcell_offsets)); in DMSwarmSortDestroy()142 *npoints = ctx->pcell_offsets[cell + 1] - ctx->pcell_offsets[cell]; in DMSwarmSortGetNumberOfPointsPerCell()177 pid = ctx->pcell_offsets[cell] + p; in DMSwarmSortGetPointsPerCell()
95 PetscInt *pcell_offsets; member