Home
last modified time | relevance | path

Searched refs:tdm (Results 1 – 11 of 11) sorted by relevance

/petsc/src/ts/utils/
H A Ddmlocalts.c18 static PetscErrorCode DMTSDestroy_DMLocal(DMTS tdm) in DMTSDestroy_DMLocal() argument
21 PetscCall(PetscFree(tdm->data)); in DMTSDestroy_DMLocal()
25 static PetscErrorCode DMTSDuplicate_DMLocal(DMTS oldtdm, DMTS tdm) in DMTSDuplicate_DMLocal() argument
28 PetscCall(PetscNew((DMTS_Local **)&tdm->data)); in DMTSDuplicate_DMLocal()
29 if (oldtdm->data) PetscCall(PetscMemcpy(tdm->data, oldtdm->data, sizeof(DMTS_Local))); in DMTSDuplicate_DMLocal()
33 static PetscErrorCode DMLocalTSGetContext(DM dm, DMTS tdm, DMTS_Local **dmlocalts) in DMLocalTSGetContext() argument
37 if (!tdm->data) { in DMLocalTSGetContext()
38 PetscCall(PetscNew((DMTS_Local **)&tdm->data)); in DMLocalTSGetContext()
40 tdm->ops->destroy = DMTSDestroy_DMLocal; in DMLocalTSGetContext()
41 tdm->ops->duplicate = DMTSDuplicate_DMLocal; in DMLocalTSGetContext()
[all …]
/petsc/src/dm/interface/ftn-custom/
H A Dzdmf.c39 DM *tdm; in dmcreatefielddecompositiongetisdm_() local
42 *ierr = DMCreateFieldDecomposition(*dm, &n, NULL, &tis, &tdm); in dmcreatefielddecompositiongetisdm_()
46 *ierr = DMCreateFieldDecomposition(*dm, &n, NULL, NULL, &tdm); in dmcreatefielddecompositiongetisdm_()
51 if (dms) *ierr = F90Array1dCreate(tdm, MPIU_FORTRANADDR, 1, n, dms PETSC_F90_2PTR_PARAM(ptrd2)); in dmcreatefielddecompositiongetisdm_()
71 DM *tdm; in dmcreatefielddecompositionrestoreisdm_() local
72 *ierr = F90Array1dAccess(dms, MPIU_FORTRANADDR, (void **)&tdm PETSC_F90_2PTR_PARAM(ptrd2)); in dmcreatefielddecompositionrestoreisdm_()
76 for (PetscInt i = 0; i < n; i++) *ierr = DMDestroy(&tdm[i]); in dmcreatefielddecompositionrestoreisdm_()
77 *ierr = PetscFree(tdm); in dmcreatefielddecompositionrestoreisdm_()
/petsc/src/dm/impls/plex/tests/
H A Dex57.c77 static PetscErrorCode CreateEphemeralMesh(DMPlexTransform tr, DM *tdm) in CreateEphemeralMesh() argument
80 PetscCall(DMPlexCreateEphemeral(tr, "eph_", tdm)); in CreateEphemeralMesh()
81 PetscCall(PetscObjectSetName((PetscObject)*tdm, "Ephemeral Mesh")); in CreateEphemeralMesh()
144 DM dm, tdm, rdm; in main() local
155 PetscCall(CreateEphemeralMesh(tr, &tdm)); in main()
162 PetscCall(DMViewFromOptions(tdm, NULL, "-dm_sec_view")); in main()
164 else PetscCall(CreateTransform(tdm, user.active, "second_", &tr2)); in main()
167 PetscCall(DMDestroy(&tdm)); in main()
170 tdm = tdm2; in main()
173 PetscCall(DMViewFromOptions(tdm, NULL, "-dm_view")); in main()
[all …]
/petsc/src/dm/label/tutorials/
H A Dex1.c148 DM tdm; in TestEphemeralLabels() local
158 PetscCall(DMPlexCreateEphemeral(tr, "eph_", &tdm)); in TestEphemeralLabels()
160 PetscCall(PetscObjectSetName((PetscObject)tdm, "Ephemeral Mesh")); in TestEphemeralLabels()
162 PetscCall(DMGetLabel(tdm, "OuterBoundary", &label)); in TestEphemeralLabels()
166 PetscCall(DMDestroy(&tdm)); in TestEphemeralLabels()
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrcohesive.c962 static PetscErrorCode DMPlexTransformOrderSupports_Cohesive(DMPlexTransform tr, DM dm, DM tdm) in DMPlexTransformOrderSupports_Cohesive() argument
968 PetscCall(DMPlexGetChart(tdm, &pStart, &pEnd)); in DMPlexTransformOrderSupports_Cohesive()
972 PetscCall(DMPlexGetCellType(tdm, p, &ct)); in DMPlexTransformOrderSupports_Cohesive()
975 if (ct == DM_POLYTOPE_SEG_PRISM_TENSOR) PetscCall(OrderCohesiveSupport_Private(tdm, p)); in DMPlexTransformOrderSupports_Cohesive()
978 …ISM_TENSOR || ct == DM_POLYTOPE_QUAD_PRISM_TENSOR) PetscCall(OrderCohesiveSupport_Private(tdm, p)); in DMPlexTransformOrderSupports_Cohesive()
H A Dplextrextrude.c129 static PetscErrorCode DMPlexTransformSetDimensions_Extrude(DMPlexTransform tr, DM dm, DM tdm) in DMPlexTransformSetDimensions_Extrude() argument
136 PetscCall(DMSetDimension(tdm, ex->dimEx)); in DMPlexTransformSetDimensions_Extrude()
137 PetscCall(DMSetCoordinateDim(tdm, ex->cdimEx)); in DMPlexTransformSetDimensions_Extrude()
/petsc/src/dm/impls/plex/
H A Dplexfem.c622 static PetscErrorCode DMPlexBasisTransformField_Internal(DM dm, DM tdm, Vec tv, PetscInt p, PetscIn… in DMPlexBasisTransformField_Internal() argument
629 PetscCall(DMGetLocalSection(tdm, &ts)); in DMPlexBasisTransformField_Internal()
632 PetscCall(DMPlexPointLocalFieldRead(tdm, p, f, ta, &tva)); in DMPlexBasisTransformField_Internal()
656 static PetscErrorCode DMPlexBasisTransformFieldTensor_Internal(DM dm, DM tdm, Vec tv, PetscInt pf, … in DMPlexBasisTransformFieldTensor_Internal() argument
664 PetscCall(DMGetLocalSection(tdm, &ts)); in DMPlexBasisTransformFieldTensor_Internal()
670 PetscCall(DMPlexPointLocalFieldRead(tdm, pf, f, ta, &tvaf)); in DMPlexBasisTransformFieldTensor_Internal()
671 PetscCall(DMPlexPointLocalFieldRead(tdm, pg, g, ta, &tvag)); in DMPlexBasisTransformFieldTensor_Internal()
711 PetscErrorCode DMPlexBasisTransformPoint_Internal(DM dm, DM tdm, Vec tv, PetscInt p, PetscBool fiel… in DMPlexBasisTransformPoint_Internal() argument
728 …if (fieldActive[f]) PetscCall(DMPlexBasisTransformField_Internal(dm, tdm, tv, points[cp], f, l2g, … in DMPlexBasisTransformPoint_Internal()
736 PetscErrorCode DMPlexBasisTransformPointTensor_Internal(DM dm, DM tdm, Vec tv, PetscInt p, PetscBoo… in DMPlexBasisTransformPointTensor_Internal() argument
[all …]
H A Dplexproject.c715 DM plex, dmIn, plexIn, dmAux = NULL, plexAux = NULL, tdm; in DMProjectLocal_Generic_Plex() local
742 PetscCall(DMGetBasisTransformDM_Internal(dm, &tdm)); in DMProjectLocal_Generic_Plex()
1055 …if (transform) PetscCall(DMPlexBasisTransformPoint_Internal(plex, tdm, tv, point, fieldActive, PET… in DMProjectLocal_Generic_Plex()
1086 …if (transform) PetscCall(DMPlexBasisTransformPoint_Internal(plex, tdm, tv, p, fieldActive, PETSC_F… in DMProjectLocal_Generic_Plex()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c851 PetscErrorCode DMPlexTransformSetDimensions_Internal(DMPlexTransform tr, DM dm, DM tdm) in DMPlexTransformSetDimensions_Internal() argument
857 PetscCall(DMSetDimension(tdm, dim)); in DMPlexTransformSetDimensions_Internal()
859 PetscCall(DMSetCoordinateDim(tdm, cdim)); in DMPlexTransformSetDimensions_Internal()
/petsc/src/dm/interface/
H A Ddm.c2642 PetscErrorCode DMGetBasisTransformDM_Internal(DM dm, DM *tdm) in DMGetBasisTransformDM_Internal() argument
2646 PetscAssertPointer(tdm, 2); in DMGetBasisTransformDM_Internal()
2647 *tdm = dm->transformDM; in DMGetBasisTransformDM_Internal()
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h407 static PetscErrorCode DMForestTemplate_pforest(DM dm, DM tdm) in DMForestTemplate_pforest() argument
410 DM_Forest_pforest *tpforest = (DM_Forest_pforest *)((DM_Forest *)tdm->data)->data; in DMForestTemplate_pforest()