Lines Matching refs:tr

83   DMPlexTransform tr;  in DMPlexCreateCoarsePointIS()  local
90 PetscCall(DMPlexTransformCreate(PetscObjectComm((PetscObject)dm), &tr)); in DMPlexCreateCoarsePointIS()
91 PetscCall(DMPlexTransformSetUp(tr)); in DMPlexCreateCoarsePointIS()
97 PetscCall(DMPlexTransformGetTargetPoint(tr, DM_POLYTOPE_POINT, DM_POLYTOPE_POINT, p, 0, &vNew)); in DMPlexCreateCoarsePointIS()
100 PetscCall(DMPlexTransformDestroy(&tr)); in DMPlexCreateCoarsePointIS()
152 PetscErrorCode DMPlexSetTransform(DM dm, DMPlexTransform tr) in DMPlexSetTransform() argument
158 if (tr) PetscValidHeaderSpecific(tr, DMPLEXTRANSFORM_CLASSID, 2); in DMPlexSetTransform()
159 PetscCall(PetscObjectReference((PetscObject)tr)); in DMPlexSetTransform()
161 mesh->transform = tr; in DMPlexSetTransform()
165 PetscErrorCode DMPlexGetTransform(DM dm, DMPlexTransform *tr) in DMPlexGetTransform() argument
171 PetscAssertPointer(tr, 2); in DMPlexGetTransform()
172 *tr = mesh->transform; in DMPlexGetTransform()
349 DMPlexTransform tr; in DMRefine_Plex() local
357 PetscCall(DMPlexTransformCreate(PetscObjectComm((PetscObject)dm), &tr)); in DMRefine_Plex()
358 PetscCall(DMPlexTransformSetDM(tr, dm)); in DMRefine_Plex()
360 if (trType) PetscCall(DMPlexTransformSetType(tr, trType)); in DMRefine_Plex()
362 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)tr, prefix)); in DMRefine_Plex()
364 PetscCall(PetscObjectSetOptions((PetscObject)tr, options)); in DMRefine_Plex()
365 PetscCall(DMPlexTransformSetFromOptions(tr)); in DMRefine_Plex()
366 PetscCall(PetscObjectSetOptions((PetscObject)tr, NULL)); in DMRefine_Plex()
367 PetscCall(DMPlexTransformSetUp(tr)); in DMRefine_Plex()
368 PetscCall(PetscObjectViewFromOptions((PetscObject)tr, NULL, "-dm_plex_transform_view")); in DMRefine_Plex()
369 PetscCall(DMPlexTransformApply(tr, dm, rdm)); in DMRefine_Plex()
393 PetscCall(DMPlexTransformCreateDiscLabels(tr, *rdm)); in DMRefine_Plex()
395 if (save) PetscCall(DMPlexSetTransform(*rdm, tr)); in DMRefine_Plex()
396 PetscCall(DMPlexTransformDestroy(&tr)); in DMRefine_Plex()
419 DMPlexTransform tr; in DMRefineHierarchy_Plex() local
423 PetscCall(DMPlexTransformCreate(PetscObjectComm((PetscObject)cdm), &tr)); in DMRefineHierarchy_Plex()
425 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)tr, prefix)); in DMRefineHierarchy_Plex()
426 PetscCall(DMPlexTransformSetDM(tr, cdm)); in DMRefineHierarchy_Plex()
427 PetscCall(DMPlexTransformSetFromOptions(tr)); in DMRefineHierarchy_Plex()
428 PetscCall(DMPlexTransformSetUp(tr)); in DMRefineHierarchy_Plex()
429 PetscCall(DMPlexTransformApply(tr, cdm, &rdm[r])); in DMRefineHierarchy_Plex()
445 PetscCall(DMPlexTransformCreateDiscLabels(tr, rdm[r])); in DMRefineHierarchy_Plex()
453 PetscCall(DMPlexTransformDestroy(&tr)); in DMRefineHierarchy_Plex()