Home
last modified time | relevance | path

Searched refs:dmCell (Results 1 – 10 of 10) sorted by relevance

/petsc/src/dm/impls/plex/
H A Dplexfvm.c7 static PetscErrorCode DMPlexApplyLimiter_Internal(DM dm, DM dmCell, PetscLimiter lim, PetscInt dim,… in DMPlexApplyLimiter_Internal() argument
20 …if (childFace >= fStart && childFace < fEnd) PetscCall(DMPlexApplyLimiter_Internal(dm, dmCell, lim… in DMPlexApplyLimiter_Internal()
41 PetscCall(DMPlexPointLocalRead(dmCell, ncell, cellgeom, &ncg)); in DMPlexApplyLimiter_Internal()
58 DM dmFace, dmCell, dmGrad; in DMPlexReconstructGradients_Internal() local
78 PetscCall(VecGetDM(cellGeometry, &dmCell)); in DMPlexReconstructGradients_Internal()
136 PetscCall(DMPlexPointLocalRead(dmCell, cell, cellgeom, &cg)); in DMPlexReconstructGradients_Internal()
142 …for (f = 0; f < coneSize; ++f) PetscCall(DMPlexApplyLimiter_Internal(dm, dmCell, lim, dim, dof, ce… in DMPlexReconstructGradients_Internal()
H A Dplexgeometry.c2971 DM dmFace, dmCell; in DMPlexComputeGeometryFVM() local
2985 PetscCall(DMClone(dm, &dmCell)); in DMPlexComputeGeometryFVM()
2986 PetscCall(DMSetCoordinateSection(dmCell, PETSC_DETERMINE, coordSection)); in DMPlexComputeGeometryFVM()
2987 PetscCall(DMSetCoordinatesLocal(dmCell, coordinates)); in DMPlexComputeGeometryFVM()
2994 PetscCall(DMSetLocalSection(dmCell, sectionCell)); in DMPlexComputeGeometryFVM()
2996 PetscCall(DMCreateLocalVector(dmCell, cellgeom)); in DMPlexComputeGeometryFVM()
3002 PetscCall(DMPlexPointLocalRef(dmCell, c, cgeom, &cg)); in DMPlexComputeGeometryFVM()
3004 PetscCall(DMPlexComputeCellGeometryFVM(dmCell, c, &cg->volume, cg->centroid, NULL)); in DMPlexComputeGeometryFVM()
3040 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cgeom, &cL)); in DMPlexComputeGeometryFVM()
3043 PetscCall(DMPlexPointLocalRead(dmCell, cells[1], cgeom, &cR)); in DMPlexComputeGeometryFVM()
[all …]
H A Dplexfem.c1043 DM dmFace, dmCell, dmGrad; in DMPlexInsertBoundaryValuesRiemann() local
1060 PetscCall(VecGetDM(cellGeometry, &dmCell)); in DMPlexInsertBoundaryValuesRiemann()
1098 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cellgeom, &cg)); in DMPlexInsertBoundaryValuesRiemann()
4092 DM dmFace, dmCell, dmGrad = NULL; in DMPlexGetFaceFields() local
4133 PetscCall(VecGetDM(cellGeometry, &dmCell)); in DMPlexGetFaceFields()
4156 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cellgeom, &cgL)); in DMPlexGetFaceFields()
4157 PetscCall(DMPlexPointLocalRead(dmCell, cells[1], cellgeom, &cgR)); in DMPlexGetFaceFields()
4283 DM dmFace, dmCell; in DMPlexGetFaceGeometry() local
4298 PetscCall(VecGetDM(cellGeometry, &dmCell)); in DMPlexGetFaceGeometry()
4316 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cellgeom, &cgL)); in DMPlexGetFaceGeometry()
[all …]
H A Dplex.c10077 DM dmFace, dmCell; in DMPlexComputeOrthogonalQuality() local
10123 PetscCall(VecGetDM(cellgeom, &dmCell)); in DMPlexComputeOrthogonalQuality()
10136 PetscCall(DMPlexPointLocalRead(dmCell, cell, cellGeomArr, &cg)); in DMPlexComputeOrthogonalQuality()
10149 PetscCall(DMPlexPointLocalRead(dmCell, neigh, cellGeomArr, &cgneigh)); in DMPlexComputeOrthogonalQuality()
/petsc/src/ts/tutorials/
H A Dex11.c717 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
[all …]
H A Dex76.c103 DM dmCell; /* A DM with piecewise constant discretization */ member
1126 options->dmCell = NULL; in ProcessOptions()
1438 PetscCall(DMDestroy(&user->dmCell)); in CreateCellDM()
1439 PetscCall(DMClone(dm, &user->dmCell)); in CreateCellDM()
1440 PetscCall(DMSetField(user->dmCell, 0, NULL, (PetscObject)fediv)); in CreateCellDM()
1441 PetscCall(DMCreateDS(user->dmCell)); in CreateCellDM()
1446 static PetscErrorCode GetCellDM(DM dm, AppCtx *user, DM *dmCell) in GetCellDM() argument
1452 if (user->dmCell) PetscCall(DMPlexGetSimplexOrBoxCells(user->dmCell, 0, &cellStart, &cellEnd)); in GetCellDM()
1454 *dmCell = user->dmCell; in GetCellDM()
1584 DM dm, dmCell = NULL; in MonitorError() local
[all …]
H A Dex18.c820 DM dmCell; in SetInitialConditionFVM() local
831 PetscCall(VecGetDM(cellgeom, &dmCell)); in SetInitialConditionFVM()
839 PetscCall(DMPlexPointLocalRead(dmCell, c, cgeom, &cg)); in SetInitialConditionFVM()
883 DM dmCell, *fdm; in MonitorFunctionals() local
917 PetscCall(VecGetDM(cellgeom, &dmCell)); in MonitorFunctionals()
924 PetscCall(DMPlexPointLocalRead(dmCell, c, cgeom, &cg)); in MonitorFunctionals()
/petsc/src/dm/impls/plex/tests/
H A Dex8.c650 DM gdm, dmCell; in main() local
665 PetscCall(VecGetDM(cellgeom, &dmCell)); in main()
670 PetscCall(DMPlexPointLocalRead(dmCell, c, cgeom, &cg)); in main()
H A Dex3.c598 DM dmRedist, dmfv, dmgrad, dmCell, refTree; in TestFVGrad() local
648 PetscCall(VecGetDM(cellgeom, &dmCell)); in TestFVGrad()
667 PetscCall(DMPlexPointLocalRead(dmCell, c, cgeom, &cg)); in TestFVGrad()
/petsc/src/dm/dt/fv/interface/
H A Dfv.c2108 …tic(PetscFV fvm, PetscInt cell, DM dm, DM dmFace, PetscScalar *fgeom, DM dmCell, PetscScalar *cgeo…
2128 PetscCall(DMPlexPointLocalRead(dmCell, fcells[i], cgeom, &cg1));