| /petsc/src/dm/impls/plex/ |
| H A D | plexfvm.c | 7 …cInt fEnd, PetscReal *cellPhi, const PetscScalar *x, const PetscScalar *cellgeom, const PetscFVCel… in DMPlexApplyLimiter_Internal() argument 20 …dmCell, lim, dim, dof, cell, field, childFace, fStart, fEnd, cellPhi, x, cellgeom, cg, cx, cgrad)); in DMPlexApplyLimiter_Internal() 41 PetscCall(DMPlexPointLocalRead(dmCell, ncell, cellgeom, &ncg)); in DMPlexApplyLimiter_Internal() 63 const PetscScalar *facegeom, *cellgeom, *x; in DMPlexReconstructGradients_Internal() local 79 PetscCall(VecGetArrayRead(cellGeometry, &cellgeom)); in DMPlexReconstructGradients_Internal() 136 PetscCall(DMPlexPointLocalRead(dmCell, cell, cellgeom, &cg)); in DMPlexReconstructGradients_Internal() 142 …dof, cell, nFields > 1 ? field : -1, faces[f], fStart, fEnd, cellPhi, x, cellgeom, cg, cx, cgrad)); in DMPlexReconstructGradients_Internal() 152 PetscCall(VecRestoreArrayRead(cellGeometry, &cellgeom)); in DMPlexReconstructGradients_Internal()
|
| H A D | plexfem.c | 1044 const PetscScalar *facegeom, *cellgeom = NULL, *grad; in DMPlexInsertBoundaryValuesRiemann() local 1061 PetscCall(VecGetArrayRead(cellGeometry, &cellgeom)); in DMPlexInsertBoundaryValuesRiemann() 1098 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cellgeom, &cg)); in DMPlexInsertBoundaryValuesRiemann() 1128 if (cellGeometry) PetscCall(VecRestoreArrayRead(cellGeometry, &cellgeom)); in DMPlexInsertBoundaryValuesRiemann() 4096 const PetscScalar *facegeom, *cellgeom, *x, *lgrad; in DMPlexGetFaceFields() local 4134 PetscCall(VecGetArrayRead(cellGeometry, &cellgeom)); in DMPlexGetFaceFields() 4156 PetscCall(DMPlexPointLocalRead(dmCell, cells[0], cellgeom, &cgL)); in DMPlexGetFaceFields() 4157 PetscCall(DMPlexPointLocalRead(dmCell, cells[1], cellgeom, &cgR)); in DMPlexGetFaceFields() 4226 PetscCall(VecRestoreArrayRead(cellGeometry, &cellgeom)); in DMPlexGetFaceFields() 4285 const PetscScalar *facegeom, *cellgeom; in DMPlexGetFaceGeometry() local [all …]
|
| H A D | plexgeometry.c | 2969 PetscErrorCode DMPlexComputeGeometryFVM(DM dm, Vec *cellgeom, Vec *facegeom) in DMPlexComputeGeometryFVM() argument 2996 PetscCall(DMCreateLocalVector(dmCell, cellgeom)); in DMPlexComputeGeometryFVM() 2998 PetscCall(VecGetArray(*cellgeom, &cgeom)); in DMPlexComputeGeometryFVM() 3101 PetscCall(VecRestoreArray(*cellgeom, &cgeom)); in DMPlexComputeGeometryFVM() 3450 PetscErrorCode DMPlexGetDataFVM(DM dm, PetscFV fv, Vec *cellgeom, Vec *facegeom, DM *gradDM) in DMPlexGetDataFVM() argument 3467 if (cellgeom) *cellgeom = (Vec)cellgeomobj; in DMPlexGetDataFVM()
|
| H A D | plex.c | 10076 Vec cellgeom, facegeom; in DMPlexComputeOrthogonalQuality() local 10120 PetscCall(DMPlexGetDataFVM(dm, fv, &cellgeom, &facegeom, NULL)); in DMPlexComputeOrthogonalQuality() 10121 PetscCall(VecGetArrayRead(cellgeom, &cellGeomArr)); in DMPlexComputeOrthogonalQuality() 10123 PetscCall(VecGetDM(cellgeom, &dmCell)); in DMPlexComputeOrthogonalQuality() 10196 PetscCall(VecRestoreArrayRead(cellgeom, &cellGeomArr)); in DMPlexComputeOrthogonalQuality()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex21.c | 60 Vec cellgeom = NULL; in pic_advect() local 81 PetscCall(DMPlexComputeGeometryFVM(celldm, &cellgeom, &facegeom)); in pic_advect() 84 PetscCall(VecDestroy(&cellgeom)); in pic_advect()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex18.c | 821 Vec cellgeom; in SetInitialConditionFVM() local 830 PetscCall(DMPlexGetGeometryFVM(dm, NULL, &cellgeom, NULL)); in SetInitialConditionFVM() 831 PetscCall(VecGetDM(cellgeom, &dmCell)); in SetInitialConditionFVM() 833 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in SetInitialConditionFVM() 843 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in SetInitialConditionFVM() 854 Vec cellgeom; in MonitorFunctionals() local 863 PetscCall(DMPlexGetGeometryFVM(dm, NULL, &cellgeom, NULL)); in MonitorFunctionals() 917 PetscCall(VecGetDM(cellgeom, &dmCell)); in MonitorFunctionals() 918 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in MonitorFunctionals() 942 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in MonitorFunctionals()
|
| H A D | ex11.c | 760 Vec coordinates, facegeom, cellgeom; in CreateMassMatrix() local 787 PetscCall(DMPlexGetGeometryFVM(plex, &facegeom, &cellgeom, NULL)); in CreateMassMatrix() 790 PetscCall(VecGetDM(cellgeom, &dmCell)); in CreateMassMatrix() 791 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in CreateMassMatrix() 824 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in CreateMassMatrix() 968 Vec cellgeom; in MonitorVTK() local 977 PetscCall(DMPlexGetGeometryFVM(plex, NULL, &cellgeom, NULL)); in MonitorVTK() 985 PetscCall(VecGetDM(cellgeom, &dmCell)); in MonitorVTK() 987 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in MonitorVTK() 1011 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in MonitorVTK() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex8.c | 651 Vec cellgeom, facegeom; in main() local 661 PetscCall(DMPlexComputeGeometryFVM(user.dm, &cellgeom, &facegeom)); in main() 665 PetscCall(VecGetDM(cellgeom, &dmCell)); in main() 666 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in main() 678 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in main() 679 PetscCall(VecDestroy(&cellgeom)); in main()
|
| H A D | ex3.c | 602 Vec cellgeom, grad, locGrad; in TestFVGrad() local 647 PetscCall(DMPlexGetGeometryFVM(dmfv, NULL, &cellgeom, NULL)); in TestFVGrad() 648 PetscCall(VecGetDM(cellgeom, &dmCell)); in TestFVGrad() 649 PetscCall(VecGetArrayRead(cellgeom, &cgeom)); in TestFVGrad() 719 PetscCall(VecRestoreArrayRead(cellgeom, &cgeom)); in TestFVGrad()
|