Home
last modified time | relevance | path

Searched refs:trType (Results 1 – 9 of 9) sorted by relevance

/petsc/src/dm/impls/plex/transform/impls/refine/1d/
H A Dplexref1d.c14 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Refine Type", &tr->trType)); in DMPlexTransformSetUp_1D()
17 DMLabel trType = tr->trType; in DMPlexTransformSetUp_1D() local
24 PetscCall(DMLabelSetValue(trType, p, 0)); in DMPlexTransformSetUp_1D()
29 if (val == 1) PetscCall(DMLabelSetValue(trType, p, val)); in DMPlexTransformSetUp_1D()
30 else PetscCall(DMLabelSetValue(trType, p, 2)); in DMPlexTransformSetUp_1D()
44 PetscCall(DMLabelGetValue(tr->trType, sp, &rt)); in DMPlexTransformGetSubcellOrientation_1D()
59 DMLabel trType = tr->trType; in DMPlexTransformCellTransform_1D() local
64 PetscCall(DMLabelGetValue(trType, p, &val)); in DMPlexTransformCellTransform_1D()
116 if (format == PETSC_VIEWER_ASCII_INFO_DETAIL) PetscCall(DMLabelView(tr->trType, viewer)); in DMPlexTransformView_1D()
/petsc/src/dm/impls/plex/transform/impls/refine/sbr/
H A Dplexrefsbr.c223 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Refine Type", &tr->trType)); in DMPlexTransformSetUp_SBR()
226 DMLabel trType = tr->trType; in DMPlexTransformSetUp_SBR() local
233 PetscCall(DMLabelSetValue(trType, p, RT_VERTEX)); in DMPlexTransformSetUp_SBR()
237 if (val == 1) PetscCall(DMLabelSetValue(trType, p, RT_EDGE_SPLIT)); in DMPlexTransformSetUp_SBR()
238 else PetscCall(DMLabelSetValue(trType, p, RT_EDGE)); in DMPlexTransformSetUp_SBR()
253 if (vals[0] && vals[1] && vals[2]) PetscCall(DMLabelSetValue(trType, p, RT_TRIANGLE_SPLIT)); in DMPlexTransformSetUp_SBR()
254 …else if (vals[0] && vals[1]) PetscCall(DMLabelSetValue(trType, p, lens[0] > lens[1] ? RT_TRIANGLE_… in DMPlexTransformSetUp_SBR()
255 …else if (vals[1] && vals[2]) PetscCall(DMLabelSetValue(trType, p, lens[1] > lens[2] ? RT_TRIANGLE_… in DMPlexTransformSetUp_SBR()
256 …else if (vals[2] && vals[0]) PetscCall(DMLabelSetValue(trType, p, lens[2] > lens[0] ? RT_TRIANGLE_… in DMPlexTransformSetUp_SBR()
257 else if (vals[0]) PetscCall(DMLabelSetValue(trType, p, RT_TRIANGLE_SPLIT_0)); in DMPlexTransformSetUp_SBR()
[all …]
/petsc/src/dm/impls/plex/transform/impls/filter/
H A Dplextrfilter.c36 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Filter Type", &tr->trType)); in DMPlexTransformSetUp_Filter()
49 PetscCall(DMLabelSetValue(tr->trType, closure[cl], ct)); in DMPlexTransformSetUp_Filter()
73 if (tr->trType && p >= 0) { in DMPlexTransformCellTransform_Filter()
76 PetscCall(DMLabelGetValue(tr->trType, p, &val)); in DMPlexTransformCellTransform_Filter()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c250 if (tr->trType) PetscCall(DMLabelView(tr->trType, v)); in DMPlexTransformView_Ascii()
262 if (tr->trType) { in DMPlexTransformView_Ascii()
263 PetscCall(DMLabelGetNumValues(tr->trType, &Nrt)); in DMPlexTransformView_Ascii()
264 PetscCall(DMLabelGetValueIS(tr->trType, &trIS)); in DMPlexTransformView_Ascii()
276 if (tr->trType) { in DMPlexTransformView_Ascii()
409 PetscCall(DMLabelDestroy(&(*tr)->trType)); in DMPlexTransformDestroy()
445 DMLabel trType = tr->trType; in DMPlexTransformCreateOffset_Internal() local
449 if (trType) { in DMPlexTransformCreateOffset_Internal()
456 PetscCall(DMLabelGetNumValues(trType, &Nrt)); in DMPlexTransformCreateOffset_Internal()
457 PetscCall(DMLabelGetValueIS(trType, &rtIS)); in DMPlexTransformCreateOffset_Internal()
[all …]
/petsc/src/dm/impls/plex/transform/impls/extrude/
H A Dplextrcohesive.c775 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Refine Type", &tr->trType)); in DMPlexTransformSetUp_Cohesive()
786 PetscCall(DMLabelSetValue(tr->trType, p, ct * 2 + 0)); in DMPlexTransformSetUp_Cohesive()
794 …NSOR || ct == DM_POLYTOPE_QUAD_PRISM_TENSOR) PetscCall(DMLabelSetValue(tr->trType, p, ct * 2 + 0)); in DMPlexTransformSetUp_Cohesive()
795 else PetscCall(DMLabelSetValue(tr->trType, p, ct * 2 + 1)); in DMPlexTransformSetUp_Cohesive()
799 if (!fsplit) PetscCall(DMLabelSetValue(tr->trType, p, ct * 2 + 0)); in DMPlexTransformSetUp_Cohesive()
800 else PetscCall(DMLabelSetValue(tr->trType, p, (ct * 2 + 0) * 100 + fsplit)); in DMPlexTransformSetUp_Cohesive()
804 PetscCall(DMLabelSetValue(tr->trType, p, (ct * 2 + 1) * 100 + funsplit)); in DMPlexTransformSetUp_Cohesive()
810 PetscCall(DMLabelView(tr->trType, NULL)); in DMPlexTransformSetUp_Cohesive()
847 DMLabel trType = tr->trType; in DMPlexTransformGetSubcellOrientation_Cohesive() local
854 if (trType) { in DMPlexTransformGetSubcellOrientation_Cohesive()
[all …]
H A Dplextrextrude.c472 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Refine Type", &tr->trType)); in DMPlexTransformSetUp_Extrude()
480 PetscCall(DMLabelSetValue(tr->trType, p, ct + 100)); in DMPlexTransformSetUp_Extrude()
482 PetscCall(DMLabelSetValue(tr->trType, p, ct)); in DMPlexTransformSetUp_Extrude()
633 DMLabel trType = tr->trType, active; in DMPlexTransformGetSubcellOrientation_Extrude() local
642 if (trType) { in DMPlexTransformGetSubcellOrientation_Extrude()
643 PetscCall(DMLabelGetValue(tr->trType, sp, &rt)); in DMPlexTransformGetSubcellOrientation_Extrude()
755 DMLabel trType = tr->trType; in DMPlexTransformCellTransform_Extrude() local
760 if (trType) { in DMPlexTransformCellTransform_Extrude()
761 PetscCall(DMLabelGetValue(trType, p, &val)); in DMPlexTransformCellTransform_Extrude()
/petsc/src/dm/impls/plex/transform/impls/refine/bl/
H A Dplexrefbl.c32 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "Refine Type", &tr->trType)); in DMPlexTransformSetUp_BL()
57 PetscCall(DMLabelSetValue(tr->trType, point, val + 1)); in DMPlexTransformSetUp_BL()
71 PetscCall(DMLabelGetValue(tr->trType, p, &val)); in DMPlexTransformSetUp_BL()
79 PetscCall(DMLabelSetValue(tr->trType, p, val)); in DMPlexTransformSetUp_BL()
414 if (tr->trType) { in DMPlexTransformGetSubcellOrientation_BL()
417 PetscCall(DMLabelGetValue(tr->trType, sp, &rt)); in DMPlexTransformGetSubcellOrientation_BL()
467 if (tr->trType && p >= 0) { in DMPlexTransformCellTransform_BL()
470 PetscCall(DMLabelGetValue(tr->trType, p, &val)); in DMPlexTransformCellTransform_BL()
546 if (format == PETSC_VIEWER_ASCII_INFO_DETAIL) PetscCall(DMLabelView(tr->trType, viewer)); in DMPlexTransformView_BL()
/petsc/src/dm/impls/plex/
H A Dplexrefine.c351 DMPlexTransformType trType; in DMRefine_Plex() local
359 PetscCall(DMPlexGetTransformType(dm, &trType)); in DMRefine_Plex()
360 if (trType) PetscCall(DMPlexTransformSetType(tr, trType)); in DMRefine_Plex()
/petsc/include/petsc/private/
H A Ddmplextransformimpl.h33 DMLabel trType; /* If not NULL, this holds the transformation type for each point */ member