Home
last modified time | relevance | path

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

/petsc/src/binding/petsc4py/demo/legacy/dmplex/
H A Danisotropic_adaptation.py66 dmGrad = plex.clone() variable
68 dmGrad.setField(0, fe)
69 dmGrad.createDS()
70 g = dmGrad.createLocalVector()
79 dmGrad.computeGradientClementInterpolant(g, H)
/petsc/src/dm/impls/plex/
H A Dplexfvm.c58 DM dmFace, dmCell, dmGrad; in DMPlexReconstructGradients_Internal() local
81 PetscCall(VecGetDM(grad, &dmGrad)); in DMPlexReconstructGradients_Internal()
107 PetscCall(DMPlexPointGlobalRef(dmGrad, cells[c], gr, &cgrad[c])); in DMPlexReconstructGradients_Internal()
122 for (cell = (dmGrad && lim) ? cStart : cEnd; cell < cEnd; ++cell) { in DMPlexReconstructGradients_Internal()
137 PetscCall(DMPlexPointGlobalRef(dmGrad, cell, gr, &cgrad)); in DMPlexReconstructGradients_Internal()
181 DM dmGrad = NULL; in DMPlexReconstructGradientsFVM() local
198 PetscCall(DMPlexGetDataFVM(dm, fvm, &cellGeometryFVM, &faceGeometryFVM, &dmGrad)); in DMPlexReconstructGradientsFVM()
199 …PetscCheck(dmGrad, PetscObjectComm((PetscObject)dm), PETSC_ERR_SUP, "This dm's finite volume discr… in DMPlexReconstructGradientsFVM()
H A Dplexfem.c1043 DM dmFace, dmCell, dmGrad; in DMPlexInsertBoundaryValuesRiemann() local
1067 PetscCall(VecGetDM(Grad, &dmGrad)); in DMPlexInsertBoundaryValuesRiemann()
1100 PetscCall(DMPlexPointLocalRead(dmGrad, cells[0], grad, &cgrad)); in DMPlexInsertBoundaryValuesRiemann()
1391 DM dmGrad; in DMPlexInsertBoundaryValuesFVM() local
1404 PetscCall(DMPlexGetGradientDM(dm, fv, &dmGrad)); in DMPlexInsertBoundaryValuesFVM()
1405 if (dmGrad) { in DMPlexInsertBoundaryValuesFVM()
1410 PetscCall(DMGetGlobalVector(dmGrad, &grad)); in DMPlexInsertBoundaryValuesFVM()
1413 PetscCall(DMGetLocalVector(dmGrad, &locGrad)); in DMPlexInsertBoundaryValuesFVM()
1414 PetscCall(DMGlobalToLocalBegin(dmGrad, grad, INSERT_VALUES, locGrad)); in DMPlexInsertBoundaryValuesFVM()
1415 PetscCall(DMGlobalToLocalEnd(dmGrad, grad, INSERT_VALUES, locGrad)); in DMPlexInsertBoundaryValuesFVM()
[all …]
H A Dplextree.c4250 DM dmGrad = NULL; in DMPlexTransferVecTree() local
4266 PetscCall(DMPlexGetDataFVM(dmIn, (PetscFV)obj, &cellGeom, &faceGeom, &dmGrad)); in DMPlexTransferVecTree()
4274 if (dmGrad) { in DMPlexTransferVecTree()
4275 PetscCall(DMGetGlobalVector(dmGrad, &grad)); in DMPlexTransferVecTree()
4280 if (dmGrad) PetscCall(DMRestoreGlobalVector(dmGrad, &grad)); in DMPlexTransferVecTree()
H A Dplexgeometry.c3396 …orCode DMPlexComputeGradientFVM(DM dm, PetscFV fvm, Vec faceGeometry, Vec cellGeometry, DM *dmGrad) in DMPlexComputeGradientFVM() argument
3422 PetscCall(DMClone(dm, dmGrad)); in DMPlexComputeGradientFVM()
3427 PetscCall(DMSetLocalSection(*dmGrad, sectionGrad)); in DMPlexComputeGradientFVM()
/petsc/src/dm/impls/plex/tests/
H A Dex60.c130 DM dmGrad; in main() local
138 PetscCall(DMClone(dmIndi, &dmGrad)); in main()
140 PetscCall(DMSetField(dmGrad, 0, NULL, (PetscObject)fe)); in main()
141 PetscCall(DMCreateDS(dmGrad)); in main()
143 PetscCall(DMCreateLocalVector(dmGrad, &gradient)); in main()
149 PetscCall(DMPlexComputeGradientClementInterpolant(dmGrad, gradient, metric)); in main()
152 PetscCall(DMDestroy(&dmGrad)); in main()
H A Dex19.c67 DM dmSensor, dmGrad, dmHess, dmDet; in ComputeMetricSensor() local
87 PetscCall(DMClone(dm, &dmGrad)); in ComputeMetricSensor()
89 PetscCall(DMSetField(dmGrad, 0, NULL, (PetscObject)fe)); in ComputeMetricSensor()
91 PetscCall(DMCreateDS(dmGrad)); in ComputeMetricSensor()
92 PetscCall(DMCreateLocalVector(dmGrad, &g)); in ComputeMetricSensor()
100 PetscCall(DMPlexComputeGradientClementInterpolant(dmGrad, g, H)); in ComputeMetricSensor()
112 PetscCall(DMDestroy(&dmGrad)); in ComputeMetricSensor()
/petsc/src/ts/tutorials/
H A Dex45.c338 DM dmGrad; in Remesh() local
340 PetscCall(DMClone(dm, &dmGrad)); in Remesh()
342 PetscCall(DMSetField(dmGrad, 0, NULL, (PetscObject)fe)); in Remesh()
344 PetscCall(DMCreateDS(dmGrad)); in Remesh()
348 PetscCall(DMGetLocalVector(dmGrad, &locG)); in Remesh()
374 PetscCall(DMRestoreLocalVector(dmGrad, &locG)); in Remesh()
375 PetscCall(DMDestroy(&dmGrad)); in Remesh()
/petsc/src/dm/impls/swarm/tests/
H A Dex11.c399 DM dmGrad, gsubdm; in main() local
402 PetscCall(DMClone(dm, &dmGrad)); in main()
403 PetscCall(CreateGradDiscretization(dmGrad, &user)); in main()
404 PetscCall(DMCreateSubDM(dmGrad, 1, &user.field, &gsubis, &gsubdm)); in main()
413 PetscCall(DMDestroy(&dmGrad)); in main()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c1438 DM dmGrad, dmHess, dmMetric, dmDet; in DMAdaptorAdapt_Sequence_Private() local
1450 PetscCall(DMClone(dm, &dmGrad)); in DMAdaptorAdapt_Sequence_Private()
1474 …PetscCall(PetscFECreateDefault(PetscObjectComm((PetscObject)dmGrad), dim, Nc * coordDim, PETSC_TRU… in DMAdaptorAdapt_Sequence_Private()
1476 PetscCall(DMSetField(dmGrad, f, NULL, (PetscObject)feGrad)); in DMAdaptorAdapt_Sequence_Private()
1478 PetscCall(DMCreateDS(dmGrad)); in DMAdaptorAdapt_Sequence_Private()
1484 PetscCall(DMCreateLocalVector(dmGrad, &xGrad)); in DMAdaptorAdapt_Sequence_Private()
1490 PetscCall(DMPlexComputeGradientClementInterpolant(dmGrad, xGrad, xHess)); in DMAdaptorAdapt_Sequence_Private()
1493 PetscCall(DMDestroy(&dmGrad)); in DMAdaptorAdapt_Sequence_Private()