Lines Matching refs:plexNew
246 DM_Plex *plex = (DM_Plex *)dm->data, *plexNew; in DMPlexPermute() local
271 plexNew = (DM_Plex *)(*pdm)->data; in DMPlexPermute()
288 … if (plex->subpointMap) PetscCall(DMLabelPermute(plex->subpointMap, perm, &plexNew->subpointMap)); in DMPlexPermute()
302 PetscCall(PetscSectionDestroy(&plexNew->coneSection)); in DMPlexPermute()
303 PetscCall(PetscSectionPermute(plex->coneSection, perm, &plexNew->coneSection)); in DMPlexPermute()
304 PetscCall(PetscSectionGetStorageSize(plexNew->coneSection, &n)); in DMPlexPermute()
305 PetscCall(PetscMalloc1(n, &plexNew->cones)); in DMPlexPermute()
306 PetscCall(PetscMalloc1(n, &plexNew->coneOrientations)); in DMPlexPermute()
312 PetscCall(PetscSectionGetDof(plexNew->coneSection, pperm[p], &dof)); in DMPlexPermute()
314 PetscCall(PetscSectionGetOffset(plexNew->coneSection, pperm[p], &offNew)); in DMPlexPermute()
316 plexNew->cones[offNew + d] = pperm[plex->cones[off + d]]; in DMPlexPermute()
317 plexNew->coneOrientations[offNew + d] = plex->coneOrientations[off + d]; in DMPlexPermute()
320 PetscCall(PetscSectionDestroy(&plexNew->supportSection)); in DMPlexPermute()
321 PetscCall(PetscSectionPermute(plex->supportSection, perm, &plexNew->supportSection)); in DMPlexPermute()
322 PetscCall(PetscSectionGetStorageSize(plexNew->supportSection, &n)); in DMPlexPermute()
323 PetscCall(PetscMalloc1(n, &plexNew->supports)); in DMPlexPermute()
328 PetscCall(PetscSectionGetDof(plexNew->supportSection, pperm[p], &dof)); in DMPlexPermute()
330 PetscCall(PetscSectionGetOffset(plexNew->supportSection, pperm[p], &offNew)); in DMPlexPermute()
331 for (d = 0; d < dof; ++d) plexNew->supports[offNew + d] = pperm[plex->supports[off + d]]; in DMPlexPermute()