Lines Matching refs:dmCell
717 PetscErrorCode CreatePartitionVec(DM dm, DM *dmCell, Vec *partition) in CreatePartitionVec() argument
730 PetscCall(DMClone(dm, dmCell)); in CreatePartitionVec()
732 PetscCall(DMSetPointSF(*dmCell, sfPoint)); in CreatePartitionVec()
733 PetscCall(DMSetCoordinateSection(*dmCell, PETSC_DETERMINE, coordSection)); in CreatePartitionVec()
734 PetscCall(DMSetCoordinatesLocal(*dmCell, coordinates)); in CreatePartitionVec()
737 PetscCall(DMPlexGetHeightStratum(*dmCell, 0, &cStart, &cEnd)); in CreatePartitionVec()
741 PetscCall(DMSetLocalSection(*dmCell, sectionCell)); in CreatePartitionVec()
743 PetscCall(DMCreateLocalVector(*dmCell, partition)); in CreatePartitionVec()
749 PetscCall(DMPlexPointLocalRef(*dmCell, c, part, &p)); in CreatePartitionVec()
758 DM plex, dmMass, dmFace, dmCell, dmCoord; in CreateMassMatrix() local
790 PetscCall(VecGetDM(cellgeom, &dmCell)); in CreateMassMatrix()
815 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cgeom, &cg)); in CreateMassMatrix()
972 DM dmCell; in MonitorVTK() local
985 PetscCall(VecGetDM(cellgeom, &dmCell)); in MonitorVTK()
986 PetscCall(DMPlexGetSimplexOrBoxCells(dmCell, 0, &cStart, &cEnd)); in MonitorVTK()
997 PetscCall(DMPlexPointLocalRead(dmCell, c, cgeom, &cg)); in MonitorVTK()
1509 DM dmCell; in main() local
1516 PetscCall(CreatePartitionVec(dm, &dmCell, &partition)); in main()
1517 PetscCall(OutputVTK(dmCell, "ex11-partition.vtk", &viewer)); in main()
1521 PetscCall(DMDestroy(&dmCell)); in main()