| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex57.c | 111 static PetscErrorCode CompareMeshes(DM dmA, DM dmB, DM dm) in CompareMeshes() argument 119 PetscCall(DMGetDimension(dmB, &dimB)); in CompareMeshes() 122 PetscCall(DMPlexGetChart(dmB, &pStartB, &pEndB)); in CompareMeshes() 129 PetscCall(DMPlexGetConeSize(dmB, p, &coneSizeB)); in CompareMeshes() 132 PetscCall(DMPlexGetOrientedCone(dmB, p, &coneB, &orntB)); in CompareMeshes() 137 PetscCall(DMPlexRestoreOrientedCone(dmB, p, &coneB, &orntB)); in CompareMeshes()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 2125 static PetscErrorCode DMShareDiscretization(DM dmA, DM dmB) in DMShareDiscretization() argument 2133 PetscCall(DMSetApplicationContext(dmB, ctx)); in DMShareDiscretization() 2134 PetscCall(DMCopyDisc(dmA, dmB)); in DMShareDiscretization() 2136 PetscCall(DMSetOutputSequenceNumber(dmB, num, val)); in DMShareDiscretization() 2137 if (dmB->localSection != dmA->localSection || dmB->globalSection != dmA->globalSection) { in DMShareDiscretization() 2138 PetscCall(DMClearLocalVectors(dmB)); in DMShareDiscretization() 2140 PetscCall(PetscSectionDestroy(&dmB->localSection)); in DMShareDiscretization() 2141 dmB->localSection = dmA->localSection; in DMShareDiscretization() 2142 PetscCall(DMClearGlobalVectors(dmB)); in DMShareDiscretization() 2144 PetscCall(PetscSectionDestroy(&dmB->globalSection)); in DMShareDiscretization() [all …]
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexinterpolate.c | 1675 PetscErrorCode DMPlexCopyCoordinates(DM dmA, DM dmB) in DMPlexCopyCoordinates() argument 1686 PetscValidHeaderSpecific(dmB, DM_CLASSID, 2); in DMPlexCopyCoordinates() 1687 if (dmA == dmB) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexCopyCoordinates() 1689 PetscCall(DMSetCoordinateDim(dmB, cdim)); in DMPlexCopyCoordinates() 1691 PetscCall(DMPlexGetDepthStratum(dmB, 0, &vStartB, &vEndB)); in DMPlexCopyCoordinates() 1703 PetscCall(DMGetCoordinateDM(dmB, &cdmB)); in DMPlexCopyCoordinates() 1720 PetscCall(DMPlexGetHeightStratum(dmB, 0, &cStartB, &cEndB)); in DMPlexCopyCoordinates() 1722 PetscCall(DMGetCoordinateSection(dmB, &coordSectionB)); in DMPlexCopyCoordinates() 1732 PetscCall(DMSetCoordinateSection(dmB, dim, coordSectionB)); in DMPlexCopyCoordinates() 1767 PetscCall(DMSetCoordinatesLocal(dmB, coordinatesB)); in DMPlexCopyCoordinates()
|
| H A D | plexcreate.c | 39 static PetscErrorCode DMPlexSwapContext_Private(DM dmA, const char name[], DM dmB) in DMPlexSwapContext_Private() argument 45 PetscCall(PetscObjectQuery((PetscObject)dmB, name, &objB)); in DMPlexSwapContext_Private() 49 PetscCall(PetscObjectCompose((PetscObject)dmB, name, objA)); in DMPlexSwapContext_Private() 65 static PetscErrorCode DMPlexSwapEGADSInfo_Private(DM dmA, DM dmB) in DMPlexSwapEGADSInfo_Private() argument 68 PetscCall(DMPlexSwapContext_Private(dmA, "EGADS Model", dmB)); in DMPlexSwapEGADSInfo_Private() 69 PetscCall(DMPlexSwapContext_Private(dmA, "EGADS Context", dmB)); in DMPlexSwapEGADSInfo_Private() 70 PetscCall(DMPlexSwapContext_Private(dmA, "EGADSlite Model", dmB)); in DMPlexSwapEGADSInfo_Private() 71 PetscCall(DMPlexSwapContext_Private(dmA, "EGADSlite Context", dmB)); in DMPlexSwapEGADSInfo_Private() 200 static PetscErrorCode DMPlexSwap_Static(DM dmA, DM dmB) in DMPlexSwap_Static() argument 212 if (dmA == dmB) PetscFunctionReturn(PETSC_SUCCESS); in DMPlexSwap_Static() [all …]
|
| H A D | plexsubmesh.c | 4492 PetscErrorCode DMGetEnclosureRelation(DM dmA, DM dmB, DMEnclosureType *rel) in DMGetEnclosureRelation() argument 4501 if (!dmA || !dmB) PetscFunctionReturn(PETSC_SUCCESS); in DMGetEnclosureRelation() 4503 PetscValidHeaderSpecific(dmB, DM_CLASSID, 2); in DMGetEnclosureRelation() 4504 if (dmA == dmB) { in DMGetEnclosureRelation() 4509 PetscCall(DMConvert(dmB, DMPLEX, &plexB)); in DMGetEnclosureRelation() 4552 PetscErrorCode DMGetEnclosurePoint(DM dmA, DM dmB, DMEnclosureType etype, PetscInt pB, PetscInt *pA) in DMGetEnclosurePoint() argument 4563 sdm = dmB; in DMGetEnclosurePoint() 4577 PetscCall(DMViewFromOptions(dmB, NULL, "-dm_enc_B_view")); in DMGetEnclosurePoint() 4589 PetscCall(DMGetEnclosureRelation(dmA, dmB, &enc)); in DMGetEnclosurePoint() 4590 PetscCall(DMGetEnclosurePoint(dmA, dmB, enc, pB, pA)); in DMGetEnclosurePoint()
|
| H A D | plex.c | 5246 PetscErrorCode DMPlexEqual(DM dmA, DM dmB, PetscBool *equal) in DMPlexEqual() argument 5252 PetscValidHeaderSpecific(dmB, DM_CLASSID, 2); in DMPlexEqual() 5257 PetscCall(DMPlexGetDepth(dmB, &depthB)); in DMPlexEqual() 5260 PetscCall(DMPlexGetChart(dmB, &pStartB, &pEndB)); in DMPlexEqual() 5269 PetscCall(DMPlexGetConeSize(dmB, p, &coneSizeB)); in DMPlexEqual() 5270 PetscCall(DMPlexGetCone(dmB, p, &coneB)); in DMPlexEqual() 5271 PetscCall(DMPlexGetConeOrientation(dmB, p, &orntB)); in DMPlexEqual() 5279 PetscCall(DMPlexGetSupportSize(dmB, p, &supportSizeB)); in DMPlexEqual() 5280 PetscCall(DMPlexGetSupport(dmB, p, &supportB)); in DMPlexEqual()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 7587 PetscErrorCode DMCopyLabels(DM dmA, DM dmB, PetscCopyMode mode, PetscBool all, DMCopyLabelsMode emo… in DMCopyLabels() argument 7596 PetscValidHeaderSpecific(dmB, DM_CLASSID, 2); in DMCopyLabels() 7600 if (dmA == dmB) PetscFunctionReturn(PETSC_SUCCESS); in DMCopyLabels() 7612 PetscCall(DMGetLabel(dmB, name, &labelOld)); in DMCopyLabels() 7618 PetscCall(DMRemoveLabelBySelf(dmB, &labelOld, PETSC_TRUE)); in DMCopyLabels() 7631 PetscCall(DMAddLabel(dmB, labelNew)); in DMCopyLabels()
|