Searched refs:dmCur (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex10.c | 52 DM dmCur = *dm; in AdaptMesh() local 97 PetscCall(DMHasLabel(dmCur, "Cell Sets", &hasLabel)); in AdaptMesh() 98 if (!hasLabel) PetscCall(CreateDomainLabel(dmCur)); in AdaptMesh() 99 PetscCall(DMGetLabel(dmCur, "Cell Sets", &label)); in AdaptMesh() 109 PetscCall(DMPlexGetHeightStratum(dmCur, 0, &cStart, &cEnd)); in AdaptMesh() 114 PetscCall(DMPlexComputeCellGeometryFVM(dmCur, c, &volume, centroid, NULL)); in AdaptMesh() 130 …PI(MPIU_Allreduce(&nAdaptLoc, &nAdapt, 2, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)dmCur))); in AdaptMesh() 132 …PetscCall(PetscInfo(dmCur, "Adapted mesh, marking %" PetscInt_FMT " cells for refinement, and %" P… in AdaptMesh() 133 PetscCall(DMAdaptLabel(dmCur, adaptLabel, &dmAdapt)); in AdaptMesh() 134 PetscCall(DMDestroy(&dmCur)); in AdaptMesh() [all …]
|