Lines Matching refs:refTree

898   DM       refTree;  in DMPlexSetTree_Internal()  local
918 PetscCall(DMPlexGetReferenceTree(dm, &refTree)); in DMPlexSetTree_Internal()
919 if (refTree) { in DMPlexSetTree_Internal()
922 PetscCall(DMGetLabel(refTree, "canonical", &canonLabel)); in DMPlexSetTree_Internal()
1387 static PetscErrorCode DMPlexReferenceTreeGetChildrenMatrices(DM refTree, PetscScalar ****childrenMa… in DMPlexReferenceTreeGetChildrenMatrices() argument
1400 PetscCall(DMGetDS(refTree, &ds)); in DMPlexReferenceTreeGetChildrenMatrices()
1403 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, &refCmat, NULL)); in DMPlexReferenceTreeGetChildrenMatrices()
1404 PetscCall(DMPlexGetAnchors(refTree, &refAnSec, &refAnIS)); in DMPlexReferenceTreeGetChildrenMatrices()
1406 PetscCall(DMGetLocalSection(refTree, &refSection)); in DMPlexReferenceTreeGetChildrenMatrices()
1417 PetscCall(DMPlexGetTreeParent(refTree, p, &parent, NULL)); in DMPlexReferenceTreeGetChildrenMatrices()
1423 PetscCall(DMPlexGetTransitiveClosure(refTree, parent, PETSC_TRUE, &closureSize, &closure)); in DMPlexReferenceTreeGetChildrenMatrices()
1487 PetscCall(DMPlexRestoreTransitiveClosure(refTree, parent, PETSC_TRUE, &closureSize, &closure)); in DMPlexReferenceTreeGetChildrenMatrices()
1497 static PetscErrorCode DMPlexReferenceTreeRestoreChildrenMatrices(DM refTree, PetscScalar ****childr… in DMPlexReferenceTreeRestoreChildrenMatrices() argument
1510 PetscCall(DMGetDS(refTree, &ds)); in DMPlexReferenceTreeRestoreChildrenMatrices()
1513 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, NULL, NULL)); in DMPlexReferenceTreeRestoreChildrenMatrices()
1518 PetscCall(DMPlexGetTreeParent(refTree, p, &parent, NULL)); in DMPlexReferenceTreeRestoreChildrenMatrices()
1543 DM refTree; in DMPlexComputeAnchorMatrix_Tree_FromReference() local
1557 PetscCall(DMPlexGetReferenceTree(dm, &refTree)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1558 PetscCall(DMCopyDisc(dm, refTree)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1559 PetscCall(DMSetLocalSection(refTree, NULL)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1560 PetscCall(DMSetDefaultConstraints(refTree, NULL, NULL, NULL)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1561 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, &refCmat, NULL)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1562 PetscCall(DMPlexGetAnchors(refTree, &refAnSec, &refAnIS)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1572 PetscCall(DMPlexReferenceTreeGetChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)); in DMPlexComputeAnchorMatrix_Tree_FromReference()
1755 …PetscCall(DMPlexReferenceTreeRestoreChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)… in DMPlexComputeAnchorMatrix_Tree_FromReference()
2493 DM refTree; in DMPlexComputeInterpolatorTree() local
2668 PetscCall(DMPlexGetReferenceTree(fine, &refTree)); in DMPlexComputeInterpolatorTree()
2669 PetscCall(DMCopyDisc(fine, refTree)); in DMPlexComputeInterpolatorTree()
2670 PetscCall(DMSetLocalSection(refTree, NULL)); in DMPlexComputeInterpolatorTree()
2671 PetscCall(DMSetDefaultConstraints(refTree, NULL, NULL, NULL)); in DMPlexComputeInterpolatorTree()
2672 PetscCall(DMPlexReferenceTreeGetChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)); in DMPlexComputeInterpolatorTree()
2673 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, NULL, NULL)); in DMPlexComputeInterpolatorTree()
2674 PetscCall(DMPlexGetAnchors(refTree, &refAnSec, NULL)); in DMPlexComputeInterpolatorTree()
2798 …PetscCall(DMPlexReferenceTreeRestoreChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)… in DMPlexComputeInterpolatorTree()
2824 PetscErrorCode DMPlexComputeInjectorReferenceTree(DM refTree, Mat *inj) in DMPlexComputeInjectorReferenceTree() argument
2837 PetscCall(DMGetLocalSection(refTree, &section)); in DMPlexComputeInjectorReferenceTree()
2838 PetscCall(DMGetDimension(refTree, &dim)); in DMPlexComputeInjectorReferenceTree()
2841 PetscCall(DMGetDS(refTree, &ds)); in DMPlexComputeInjectorReferenceTree()
2844 PetscCall(DMGetLabel(refTree, "canonical", &canonical)); in DMPlexComputeInjectorReferenceTree()
2845 PetscCall(DMGetLabel(refTree, "depth", &depth)); in DMPlexComputeInjectorReferenceTree()
2846 PetscCall(DMGetDefaultConstraints(refTree, &cSection, &cMat, NULL)); in DMPlexComputeInjectorReferenceTree()
2847 PetscCall(DMPlexGetChart(refTree, &pStart, &pEnd)); in DMPlexComputeInjectorReferenceTree()
2848 PetscCall(DMPlexGetHeightStratum(refTree, 0, &cStart, &cEnd)); in DMPlexComputeInjectorReferenceTree()
2862 PetscCall(DMPlexGetTreeChildren(refTree, p, &numChildren, &children)); in DMPlexComputeInjectorReferenceTree()
2906 PetscCall(DMPlexGetTreeChildren(refTree, p, &numChildren, &children)); in DMPlexComputeInjectorReferenceTree()
2952 PetscCall(DMPlexGetTransitiveClosure(refTree, p, PETSC_FALSE, &numStar, &star)); in DMPlexComputeInjectorReferenceTree()
2961 PetscCall(DMPlexRestoreTransitiveClosure(refTree, p, PETSC_FALSE, &numStar, &star)); in DMPlexComputeInjectorReferenceTree()
2979 … PetscCall(DMPlexGetTransitiveClosure(refTree, parentCell, PETSC_TRUE, &numClosure, &closure)); in DMPlexComputeInjectorReferenceTree()
2991 … PetscCall(DMPlexRestoreTransitiveClosure(refTree, parentCell, PETSC_TRUE, &numClosure, &closure)); in DMPlexComputeInjectorReferenceTree()
2994 PetscCall(DMGetWorkArray(refTree, numSelfDof * numChildDof, MPIU_SCALAR, &pointMat)); in DMPlexComputeInjectorReferenceTree()
2995 PetscCall(DMGetWorkArray(refTree, numSelfDof + numChildDof, MPIU_INT, &matRows)); in DMPlexComputeInjectorReferenceTree()
3067 PetscCall(DMPlexGetTransitiveClosure(refTree, child, PETSC_FALSE, &numStar, &star)); in DMPlexComputeInjectorReferenceTree()
3072 PetscCall(DMPlexLocatePoint_Internal(refTree, dim, point, c, &childCell)); in DMPlexComputeInjectorReferenceTree()
3075 … PetscCall(DMPlexRestoreTransitiveClosure(refTree, child, PETSC_FALSE, &numStar, &star)); in DMPlexComputeInjectorReferenceTree()
3079 PetscCall(DMPlexComputeCellGeometryFEM(refTree, childCell, NULL, v0, J, invJ, &detJ)); in DMPlexComputeInjectorReferenceTree()
3080 …PetscCall(DMPlexComputeCellGeometryFEM(refTree, parentCell, NULL, v0parent, Jparent, NULL, &detJpa… in DMPlexComputeInjectorReferenceTree()
3085 … PetscCall(DMPlexGetTransitiveClosure(refTree, childCell, PETSC_TRUE, &numClosure, &closure)); in DMPlexComputeInjectorReferenceTree()
3123 … PetscCall(DMPlexRestoreTransitiveClosure(refTree, childCell, PETSC_TRUE, &numClosure, &closure)); in DMPlexComputeInjectorReferenceTree()
3132 PetscCall(DMPlexComputeCellGeometryFVM(refTree, p, &parentVol, NULL, NULL)); in DMPlexComputeInjectorReferenceTree()
3138 PetscCall(DMPlexComputeCellGeometryFVM(refTree, child, &childVol, NULL, NULL)); in DMPlexComputeInjectorReferenceTree()
3145 PetscCall(DMRestoreWorkArray(refTree, numSelfDof + numChildDof, MPIU_INT, &matRows)); in DMPlexComputeInjectorReferenceTree()
3146 PetscCall(DMRestoreWorkArray(refTree, numSelfDof * numChildDof, MPIU_SCALAR, &pointMat)); in DMPlexComputeInjectorReferenceTree()
3157 static PetscErrorCode DMPlexReferenceTreeGetChildrenMatrices_Injection(DM refTree, Mat inj, PetscSc… in DMPlexReferenceTreeGetChildrenMatrices_Injection() argument
3165 PetscCall(DMGetDS(refTree, &ds)); in DMPlexReferenceTreeGetChildrenMatrices_Injection()
3167 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, NULL, NULL)); in DMPlexReferenceTreeGetChildrenMatrices_Injection()
3168 PetscCall(DMGetLocalSection(refTree, &refSection)); in DMPlexReferenceTreeGetChildrenMatrices_Injection()
3177 PetscCall(DMPlexGetTreeParent(refTree, p, &parent, NULL)); in DMPlexReferenceTreeGetChildrenMatrices_Injection()
3220 static PetscErrorCode DMPlexReferenceTreeRestoreChildrenMatrices_Injection(DM refTree, Mat inj, Pet… in DMPlexReferenceTreeRestoreChildrenMatrices_Injection() argument
3230 PetscCall(DMGetDS(refTree, &ds)); in DMPlexReferenceTreeRestoreChildrenMatrices_Injection()
3231 PetscCall(DMGetLocalSection(refTree, &refSection)); in DMPlexReferenceTreeRestoreChildrenMatrices_Injection()
3233 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, NULL, NULL)); in DMPlexReferenceTreeRestoreChildrenMatrices_Injection()
3238 PetscCall(DMPlexGetTreeParent(refTree, p, &parent, NULL)); in DMPlexReferenceTreeRestoreChildrenMatrices_Injection()
3260 static PetscErrorCode DMPlexReferenceTreeGetInjector(DM refTree, Mat *injRef) in DMPlexReferenceTreeGetInjector() argument
3266 PetscCall(DMGetDefaultConstraints(refTree, NULL, &cMatRef, NULL)); in DMPlexReferenceTreeGetInjector()
3270 PetscCall(DMPlexComputeInjectorReferenceTree(refTree, injRef)); in DMPlexReferenceTreeGetInjector()
3512 DM refTree; in DMPlexComputeInjectorTree() local
3528 PetscCall(DMPlexGetReferenceTree(coarse, &refTree)); in DMPlexComputeInjectorTree()
3529 PetscCall(DMCopyDisc(coarse, refTree)); in DMPlexComputeInjectorTree()
3530 PetscCall(DMSetLocalSection(refTree, NULL)); in DMPlexComputeInjectorTree()
3531 PetscCall(DMSetDefaultConstraints(refTree, NULL, NULL, NULL)); in DMPlexComputeInjectorTree()
3532 PetscCall(DMGetDefaultConstraints(refTree, &cSecRef, NULL, NULL)); in DMPlexComputeInjectorTree()
3534 PetscCall(DMPlexReferenceTreeGetInjector(refTree, &injRef)); in DMPlexComputeInjectorTree()
3614 PetscCall(DMPlexGetTreeParent(refTree, childId, &parentId, NULL)); in DMPlexComputeInjectorTree()
3663 PetscCall(DMPlexReferenceTreeGetChildrenMatrices_Injection(refTree, injRef, &childrenMats)); in DMPlexComputeInjectorTree()
3708 PetscCall(DMPlexGetTreeParent(refTree, childId, &parentId, NULL)); in DMPlexComputeInjectorTree()
3740 PetscCall(DMPlexReferenceTreeRestoreChildrenMatrices_Injection(refTree, injRef, &childrenMats)); in DMPlexComputeInjectorTree()
3946 DM refTree; in DMPlexTransferVecTree_Interpolate() local
3956 PetscCall(DMPlexGetReferenceTree(fine, &refTree)); in DMPlexTransferVecTree_Interpolate()
3957 PetscCall(DMCopyDisc(fine, refTree)); in DMPlexTransferVecTree_Interpolate()
3958 PetscCall(DMPlexReferenceTreeGetChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)); in DMPlexTransferVecTree_Interpolate()
3959 PetscCall(DMGetDefaultConstraints(refTree, &refConSec, NULL, NULL)); in DMPlexTransferVecTree_Interpolate()
3960 PetscCall(DMPlexGetAnchors(refTree, &refAnSec, NULL)); in DMPlexTransferVecTree_Interpolate()
4048 …PetscCall(DMPlexReferenceTreeRestoreChildrenMatrices(refTree, &refPointFieldMats, &refPointFieldN)… in DMPlexTransferVecTree_Interpolate()
4061 DM refTree; in DMPlexTransferVecTree_Inject() local
4080 PetscCall(DMPlexGetReferenceTree(coarse, &refTree)); in DMPlexTransferVecTree_Inject()
4081 PetscCall(DMCopyDisc(coarse, refTree)); in DMPlexTransferVecTree_Inject()
4082 PetscCall(DMGetDefaultConstraints(refTree, &cSecRef, NULL, NULL)); in DMPlexTransferVecTree_Inject()
4084 PetscCall(DMPlexReferenceTreeGetInjector(refTree, &injRef)); in DMPlexTransferVecTree_Inject()
4111 PetscCall(DMPlexReferenceTreeGetChildrenMatrices_Injection(refTree, injRef, &childrenMats)); in DMPlexTransferVecTree_Inject()
4163 PetscCall(DMPlexGetTreeParent(refTree, childId, &parentId, NULL)); in DMPlexTransferVecTree_Inject()
4202 PetscCall(DMPlexReferenceTreeRestoreChildrenMatrices_Injection(refTree, injRef, &childrenMats)); in DMPlexTransferVecTree_Inject()