Lines Matching refs:dmAux

2403   DM           dmAux = NULL, plexA = NULL;  in DMPlexComputeIntegral_Internal()  local
2448 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeIntegral_Internal()
2449 PetscCall(DMConvert(dmAux, DMPLEX, &plexA)); in DMPlexComputeIntegral_Internal()
2450 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeIntegral_Internal()
2452 PetscCall(DMGetLocalSection(dmAux, &sectionAux)); in DMPlexComputeIntegral_Internal()
2458 if (dmAux) PetscCall(PetscMalloc1(numCells * totDimAux, &a)); in DMPlexComputeIntegral_Internal()
2510 if (dmAux) { in DMPlexComputeIntegral_Internal()
2575 if (dmAux) PetscCall(PetscFree(a)); in DMPlexComputeIntegral_Internal()
2750 DM dmAux; in DMPlexComputeBdIntegral_Internal() local
2752 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeBdIntegral_Internal()
2753 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexComputeBdIntegral_Internal()
2754 PetscCall(DMConvert(dmAux, DMPLEX, &plexA)); in DMPlexComputeBdIntegral_Internal()
2755 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeBdIntegral_Internal()
2757 PetscCall(DMGetLocalSection(dmAux, &sectionAux)); in DMPlexComputeBdIntegral_Internal()
3774 DM dmAux; in DMPlexGetCellFields() local
3777 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexGetCellFields()
3778 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexGetCellFields()
3779 PetscCall(DMPlexConvertPlex(dmAux, &plexA, PETSC_FALSE)); in DMPlexGetCellFields()
3780 PetscCall(DMGetLocalSection(dmAux, &sectionAux)); in DMPlexGetCellFields()
3781 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexGetCellFields()
3872 DM dmAux; in DMPlexGetHybridCellFields() local
3875 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexGetHybridCellFields()
3876 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexGetHybridCellFields()
3877 PetscCall(DMPlexConvertPlex(dmAux, &plexA, PETSC_FALSE)); in DMPlexGetHybridCellFields()
3878 PetscCall(DMGetLocalSection(dmAux, &sectionAux)); in DMPlexGetHybridCellFields()
3879 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexGetHybridCellFields()
4393 DM dmAux = NULL; in DMPlexComputeResidual_Patch_Internal() local
4421 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeResidual_Patch_Internal()
4422 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeResidual_Patch_Internal()
4622 DM dmAux = NULL; in DMPlexComputeJacobian_Patch_Internal() local
4643 PetscCall(VecGetDM(A, &dmAux)); in DMPlexComputeJacobian_Patch_Internal()
4644 PetscCall(DMGetLocalSection(dmAux, &sectionAux)); in DMPlexComputeJacobian_Patch_Internal()
4645 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeJacobian_Patch_Internal()
4691 …wsz = (((X ? 1 : 0) + (X_t ? 1 : 0)) * totDim + (dmAux ? 1 : 0) * totDimAux + ((hasJac ? 1 : 0) + … in DMPlexComputeJacobian_Patch_Internal()
4697 a = dmAux ? (sz = chunkSize * totDimAux, off += sz, work + off - sz) : NULL; in DMPlexComputeJacobian_Patch_Internal()
4740 if (dmAux) { in DMPlexComputeJacobian_Patch_Internal()
4741 PetscCall(DMPlexVecGetClosure(dmAux, sectionAux, A, cell, NULL, &x)); in DMPlexComputeJacobian_Patch_Internal()
4743 PetscCall(DMPlexVecRestoreClosure(dmAux, sectionAux, A, cell, NULL, &x)); in DMPlexComputeJacobian_Patch_Internal()
4792 …PetscCall(DMRestoreWorkArray(dm, ((1 + (X_t ? 1 : 0) + (dmAux ? 1 : 0)) * totDim + ((hasJac ? 1 : … in DMPlexComputeJacobian_Patch_Internal()
4937 DM dmAux; in DMPlexComputeBdResidualSingleByKey() local
4939 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeBdResidualSingleByKey()
4940 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexComputeBdResidualSingleByKey()
4941 PetscCall(DMConvert(dmAux, DMPLEX, &plexA)); in DMPlexComputeBdResidualSingleByKey()
5179 DM dmAux = NULL; in DMPlexComputeResidualByKey() local
5218 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeResidualByKey()
5219 …PetscCall(DMGetEnclosurePoint(dmAux, dm, DM_ENC_UNKNOWN, cells ? cells[cStart] : cStart, &subcell)… in DMPlexComputeResidualByKey()
5220 PetscCall(DMGetCellDS(dmAux, subcell, &dsAux, NULL)); in DMPlexComputeResidualByKey()
5559 DM dmAux[3] = {NULL, NULL, NULL}; in DMPlexComputeResidualHybridByKey() local
5609 PetscCall(VecGetDM(locA[2], &dmAux[2])); in DMPlexComputeResidualHybridByKey()
5610 PetscCall(DMGetCellDS(dmAux[2], cellStart, &dsAux[2], NULL)); in DMPlexComputeResidualHybridByKey()
5629 if (locA[c]) PetscCall(VecGetDM(locA[c], &dmAux[c])); in DMPlexComputeResidualHybridByKey()
5630 else dmAux[c] = dmAux[2]; in DMPlexComputeResidualHybridByKey()
5631 PetscCall(DMGetCellDS(dmAux[c], support[s], &dsAux[c], NULL)); in DMPlexComputeResidualHybridByKey()
5711 PetscCall(DMPlexGetHybridFields(dm, dmAux, dsAux, cellIS, locA, PETSC_TRUE, a)); in DMPlexComputeResidualHybridByKey()
5836 PetscCall(DMPlexRestoreHybridFields(dm, dmAux, dsAux, cellIS, locA, PETSC_TRUE, a)); in DMPlexComputeResidualHybridByKey()
5934 DM dmAux; in DMPlexComputeBdJacobianSingleByLabel() local
5936 PetscCall(VecGetDM(locA, &dmAux)); in DMPlexComputeBdJacobianSingleByLabel()
5937 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexComputeBdJacobianSingleByLabel()
5938 PetscCall(DMConvert(dmAux, DMPLEX, &plexA)); in DMPlexComputeBdJacobianSingleByLabel()
6176 DM dmAux = NULL, plex, tdm; in DMPlexComputeJacobianByKey() local
6194 PetscCall(VecGetDM(A, &dmAux)); in DMPlexComputeJacobianByKey()
6195 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexComputeJacobianByKey()
6196 PetscCall(DMConvert(dmAux, DMPLEX, &plex)); in DMPlexComputeJacobianByKey()
6198 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeJacobianByKey()
6220 if (dmAux) PetscCall(PetscMalloc1(numCells * totDimAux, &a)); in DMPlexComputeJacobianByKey()
6235 if (dmAux) { in DMPlexComputeJacobianByKey()
6237 PetscCall(DMGetEnclosurePoint(dmAux, dm, encAux, cell, &subcell)); in DMPlexComputeJacobianByKey()
6365 if (dmAux) PetscCall(PetscFree(a)); in DMPlexComputeJacobianByKey()
6372 if (dmAux) PetscCall(DMDestroy(&plex)); in DMPlexComputeJacobianByKey()
6389 DM dmAux = NULL, plex, tdm; in DMPlexComputeJacobianByKeyGeneral() local
6413 PetscCall(VecGetDM(A, &dmAux)); in DMPlexComputeJacobianByKeyGeneral()
6414 PetscCall(DMGetEnclosureRelation(dmAux, dmr, &encAux)); in DMPlexComputeJacobianByKeyGeneral()
6415 PetscCall(DMConvert(dmAux, DMPLEX, &plex)); in DMPlexComputeJacobianByKeyGeneral()
6417 PetscCall(DMGetDS(dmAux, &dsAux)); in DMPlexComputeJacobianByKeyGeneral()
6443 if (dmAux) PetscCall(PetscMalloc1(numCells * totDimAux, &a)); in DMPlexComputeJacobianByKeyGeneral()
6458 if (dmAux) { in DMPlexComputeJacobianByKeyGeneral()
6460 PetscCall(DMGetEnclosurePoint(dmAux, dmr, encAux, cell, &subcell)); in DMPlexComputeJacobianByKeyGeneral()
6588 if (dmAux) PetscCall(PetscFree(a)); in DMPlexComputeJacobianByKeyGeneral()
6595 if (dmAux) PetscCall(DMDestroy(&plex)); in DMPlexComputeJacobianByKeyGeneral()
6635 DM dmAux[3] = {NULL, NULL, NULL}; in DMPlexComputeJacobianHybridByKey() local
6692 PetscCall(VecGetDM(locA[2], &dmAux[2])); in DMPlexComputeJacobianHybridByKey()
6693 PetscCall(DMConvert(dmAux[2], DMPLEX, &plexA)); in DMPlexComputeJacobianHybridByKey()
6694 PetscCall(DMGetLocalSection(dmAux[2], &sectionAux[2])); in DMPlexComputeJacobianHybridByKey()
6695 PetscCall(DMGetCellDS(dmAux[2], cellStart, &dsAux[2], NULL)); in DMPlexComputeJacobianHybridByKey()
6713 if (locA[c]) PetscCall(VecGetDM(locA[c], &dmAux[c])); in DMPlexComputeJacobianHybridByKey()
6714 else dmAux[c] = dmAux[2]; in DMPlexComputeJacobianHybridByKey()
6715 PetscCall(DMGetCellDS(dmAux[c], support[s], &dsAux[c], NULL)); in DMPlexComputeJacobianHybridByKey()
6782 PetscCall(DMPlexGetHybridFields(dm, dmAux, dsAux, cellIS, locA, PETSC_TRUE, a)); in DMPlexComputeJacobianHybridByKey()
6948 PetscCall(DMPlexRestoreHybridFields(dm, dmAux, dsAux, cellIS, locA, PETSC_TRUE, a)); in DMPlexComputeJacobianHybridByKey()
6972 if (dmAux[2]) PetscCall(DMDestroy(&plexA)); in DMPlexComputeJacobianHybridByKey()
7006 DM dmAux = NULL, plex, plexAux = NULL; in DMPlexComputeJacobianActionByKey() local
7033 PetscCall(VecGetDM(A, &dmAux)); in DMPlexComputeJacobianActionByKey()
7034 PetscCall(DMGetEnclosureRelation(dmAux, dm, &encAux)); in DMPlexComputeJacobianActionByKey()
7035 PetscCall(DMConvert(dmAux, DMPLEX, &plexAux)); in DMPlexComputeJacobianActionByKey()
7037 PetscCall(DMGetDS(dmAux, &probAux)); in DMPlexComputeJacobianActionByKey()
7042 if (dmAux) PetscCall(PetscMalloc1(numCells * totDimAux, &a)); in DMPlexComputeJacobianActionByKey()
7058 if (dmAux) { in DMPlexComputeJacobianActionByKey()
7060 PetscCall(DMGetEnclosurePoint(dmAux, dm, encAux, cell, &subcell)); in DMPlexComputeJacobianActionByKey()