| /petsc/src/dm/impls/plex/ |
| H A D | plexdd.c | 6 static PetscErrorCode DMTransferMaterialParameters(DM dm, PetscSF sf, DM odm) in DMTransferMaterialParameters() argument 19 PetscCall(DMClone(odm, &odmAux)); in DMTransferMaterialParameters() 20 PetscCall(DMGetCoordinateDM(odm, &ocdm)); in DMTransferMaterialParameters() 41 PetscCall(DMSetAuxiliaryVec(odm, NULL, 0, 0, oA)); in DMTransferMaterialParameters() 49 DM odm; in DMCreateDomainDecomposition_Plex() local 74 …cCall(DMPlexDistributeOverlap_Internal(dm, ddovl + 1, PETSC_COMM_SELF, oname, &migrationSF, &odm)); in DMCreateDomainDecomposition_Plex() 75 if (!odm) PetscCall(DMClone(dm, &odm)); in DMCreateDomainDecomposition_Plex() 79 PetscCall(DMPlexSetMaxProjectionHeight(odm, mh)); in DMCreateDomainDecomposition_Plex() 86 PetscCall(DMGetDS(odm, &ds)); in DMCreateDomainDecomposition_Plex() 89 PetscCall(PetscSectionCreate(PetscObjectComm((PetscObject)odm), &tsec)); in DMCreateDomainDecomposition_Plex() [all …]
|
| H A D | plexvtk.c | 93 PetscErrorCode DMPlexVTKWriteAll(PetscObject odm, PetscViewer viewer) in DMPlexVTKWriteAll() argument 95 DM dm = (DM)odm; in DMPlexVTKWriteAll()
|
| H A D | plexinterpolate.c | 1538 DM idm, odm = dm; in DMPlexInterpolate() local 1566 PetscCall(DMPlexGetChart(odm, &pStart, &pEnd)); in DMPlexInterpolate() 1572 PetscCall(DMPlexGetPointDepth(odm, p, &pdepth)); in DMPlexInterpolate() 1573 PetscCall(DMPlexGetCellType(odm, p, &ct)); in DMPlexInterpolate() 1580 PetscCall(DMPlexGetCone(odm, p, &cone)); in DMPlexInterpolate() 1581 PetscCall(DMPlexGetConeSize(odm, p, &coneSize)); in DMPlexInterpolate() 1583 PetscCall(DMPlexGetPointDepth(odm, cone[c], &cdepth)); in DMPlexInterpolate() 1599 PetscCall(DMPlexInterpolateFaces_Internal(odm, pdepth, idm)); in DMPlexInterpolate() 1600 PetscCall(DMGetPointSF(odm, &sfPoint)); in DMPlexInterpolate() 1601 if (PetscDefined(USE_DEBUG)) PetscCall(DMPlexCheckPointSF(odm, sfPoint, PETSC_FALSE)); in DMPlexInterpolate() [all …]
|
| H A D | plexproject.c | 620 PetscErrorCode DMGetFirstLabeledPoint(DM dm, DM odm, DMLabel label, PetscInt numIds, const PetscInt… in DMGetFirstLabeledPoint() argument 629 PetscCall(DMGetEnclosureRelation(dm, odm, &enc)); in DMGetFirstLabeledPoint() 643 PetscCall(DMGetEnclosurePoint(dm, odm, enc, points[i], &point)); in DMGetFirstLabeledPoint()
|
| H A D | plexglvis.c | 40 PetscErrorCode DMSetUpGLVisViewer_Plex(PetscObject odm, PetscViewer viewer) in DMSetUpGLVisViewer_Plex() argument 42 DM dm = (DM)odm; in DMSetUpGLVisViewer_Plex()
|
| H A D | plex.c | 1997 DM odm = dm, rdm = dm, cdm; in DMPlexCreateHighOrderSurrogate_Internal() local 2022 PetscCall(DMRefine(odm, PetscObjectComm((PetscObject)odm), &rdm)); in DMPlexCreateHighOrderSurrogate_Internal() 2025 PetscCall(DMGetCoordinateDM(odm, &cdm)); in DMPlexCreateHighOrderSurrogate_Internal() 2027 PetscCall(DMGetCoordinatesLocal(odm, &cl)); in DMPlexCreateHighOrderSurrogate_Internal() 2034 PetscCall(DMDestroy(&odm)); in DMPlexCreateHighOrderSurrogate_Internal() 2035 odm = rdm; in DMPlexCreateHighOrderSurrogate_Internal() 10210 static PetscErrorCode DMGetFullDM(DM dm, DM *odm) in DMGetFullDM() argument 10218 PetscAssertPointer(odm, 2); in DMGetFullDM() 10224 *odm = dm; in DMGetFullDM() 10227 PetscCall(DMClone(dm, odm)); in DMGetFullDM() [all …]
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex11.c | 135 DM odm; in GenerateArrangements() local 147 PetscCall(CreateMesh(PetscObjectComm((PetscObject)dm), user, &odm)); in GenerateArrangements() 148 PetscCall(ReorientCell(odm, 0, o, PETSC_TRUE)); in GenerateArrangements() 150 PetscCall(DMViewFromOptions(odm, NULL, "-gen_dm_view")); in GenerateArrangements() 151 PetscCall(CheckCellVertices(odm, 0, o)); in GenerateArrangements() 152 PetscCall(DMDestroy(&odm)); in GenerateArrangements() 249 static PetscErrorCode CheckSubcells(DM dm, DM odm, PetscInt p, PetscInt o, AppCtx *user) in CheckSubcells() argument 264 PetscCall(DMPlexTransformCreate(PetscObjectComm((PetscObject)odm), &otr)); in CheckSubcells() 265 PetscCall(DMPlexTransformSetDM(otr, odm)); in CheckSubcells() 272 PetscCall(DMPlexGetCone(odm, p, &ocone)); in CheckSubcells() [all …]
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex29.c | 70 DM odm = NULL; in CreateMesh() local 73 PetscCall(DMPlexDistributeOverlap(*dm, 1, NULL, &odm)); in CreateMesh() 74 if (odm) { in CreateMesh() 75 PetscCall(DMView(odm, PETSC_VIEWER_STDOUT_WORLD)); in CreateMesh() 77 *dm = odm; in CreateMesh()
|
| H A D | ex41.c | 54 DM odm; in ConstructRefineTree() local 60 PetscCall(DMPlexTransformGetDM(tr, &odm)); in ConstructRefineTree() 61 PetscCall(DMPlexGetHeightStratum(odm, 0, &cStart, &cEnd)); in ConstructRefineTree() 69 PetscCall(DMPlexGetCellType(odm, c, &ct)); in ConstructRefineTree()
|
| H A D | ex19.c | 264 DM dma, odm; in main() local 274 odm = dm; in main() 275 PetscCall(DMPlexDistributeOverlap(odm, 1, NULL, &dm)); in main() 277 dm = odm; in main() 278 } else PetscCall(DMDestroy(&odm)); in main()
|
| H A D | ex3.c | 879 DM odm = dm, rdm = NULL, cdm = NULL; in CheckConvergence() local 892 PetscCall(PetscObjectReference((PetscObject)odm)); in CheckConvergence() 895 PetscCall(DMRefine(odm, PetscObjectComm((PetscObject)dm), &rdm)); in CheckConvergence() 896 PetscCall(DMDestroy(&odm)); in CheckConvergence() 897 odm = rdm; in CheckConvergence() 899 PetscCall(SetupSection(odm, user)); in CheckConvergence() 901 PetscCall(ComputeError(odm, exactFuncs, exactFuncDers, exactCtxs, &errorOld, &errorDerOld, user)); in CheckConvergence() 904 PetscCall(DMRefine(odm, PetscObjectComm((PetscObject)dm), &rdm)); in CheckConvergence() 912 PetscCall(DMDestroy(&odm)); in CheckConvergence() 913 odm = rdm; in CheckConvergence() [all …]
|
| /petsc/src/snes/utils/dm/ |
| H A D | dmadapt.c | 351 …ptor adaptor, PetscErrorCode (*monitor)(DMAdaptor adaptor, PetscInt it, DM odm, DM adm, PetscInt N… in DMAdaptorMonitorSet() argument 1020 PetscErrorCode DMAdaptorMonitor(DMAdaptor adaptor, PetscInt it, DM odm, DM adm, PetscInt Nf, PetscR… in DMAdaptorMonitor() argument 1023 …daptor->numbermonitors; ++i) PetscCall((*adaptor->monitor[i])(adaptor, it, odm, adm, Nf, enorms, e… in DMAdaptorMonitor() 1053 PetscErrorCode DMAdaptorMonitorSize(DMAdaptor adaptor, PetscInt n, DM odm, DM adm, PetscInt Nf, Pet… in DMAdaptorMonitorSize() argument 1066 PetscCall(DMPlexGetHeightStratum(odm, 0, &cStart, &cEnd)); in DMAdaptorMonitorSize() 1104 PetscErrorCode DMAdaptorMonitorError(DMAdaptor adaptor, PetscInt n, DM odm, DM adm, PetscInt Nf, Pe… in DMAdaptorMonitorError() argument 1125 PetscCall(DMPlexGetHeightStratum(odm, 0, &cStart, &cEnd)); in DMAdaptorMonitorError() 1160 PetscErrorCode DMAdaptorMonitorErrorDraw(DMAdaptor adaptor, PetscInt n, DM odm, DM adm, PetscInt Nf… in DMAdaptorMonitorErrorDraw() argument 1250 PetscErrorCode DMAdaptorMonitorErrorDrawLG(DMAdaptor adaptor, PetscInt n, DM odm, DM adm, PetscInt … in DMAdaptorMonitorErrorDrawLG() argument 1336 DM dm = adaptIter ? *adm : adaptor->idm, odm; in DMAdaptorAdapt_Sequence_Private() local [all …]
|
| /petsc/src/dm/tests/ |
| H A D | ex8.c | 33 PetscErrorCode DMSetUpGLVisViewer_Shell(PetscObject odm, PetscViewer viewer) in DMSetUpGLVisViewer_Shell() argument 35 DM dm = (DM)odm; in DMSetUpGLVisViewer_Shell()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmshell.pxi | 87 cdef PetscDM odm = NULL 88 CHKERR(VecGetDM(v[0], &odm)) 89 if odm == NULL: 106 cdef PetscDM odm = NULL 107 CHKERR(VecGetDM(v[0], &odm)) 108 if odm == NULL: 221 cdef PetscDM odm = NULL 222 CHKERR(MatGetDM(cmat[0], &odm)) 223 if odm == NULL:
|
| /petsc/src/dm/impls/plex/adaptors/pragmatic/ |
| H A D | pragmaticadapt.c | 9 DM odm = dm; in DMAdaptMetric_Pragmatic_Plex() 47 PetscCall(DMPlexDistributeOverlap(odm, 1, NULL, &dm)); in DMAdaptMetric_Pragmatic_Plex() 48 if (!dm) {dm = odm; PetscCall(PetscObjectReference((PetscObject) dm));} in DMAdaptMetric_Pragmatic_Plex()
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 540 …tscPartitionerMultistageSetStage_Multistage(PetscPartitioner part, PetscInt stage, PetscObject odm) in PetscPartitionerMultistageSetStage_Multistage() argument 542 DM dm = (DM)odm; in PetscPartitionerMultistageSetStage_Multistage() 557 …cPartitionerMultistageGetStage_Multistage(PetscPartitioner part, PetscInt *stage, PetscObject *odm) in PetscPartitionerMultistageGetStage_Multistage() argument 564 if (odm) *odm = (PetscObject)p->stagedm; in PetscPartitionerMultistageGetStage_Multistage()
|
| /petsc/src/dm/impls/da/ |
| H A D | grvtk.c | 522 PetscErrorCode DMDAVTKWriteAll(PetscObject odm, PetscViewer viewer) in DMDAVTKWriteAll() argument 524 DM dm = (DM)odm; in DMDAVTKWriteAll()
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 330 static PetscErrorCode DMSetUpGLVisViewer_Redundant(PetscObject odm, PetscViewer viewer) in DMSetUpGLVisViewer_Redundant() argument
|
| /petsc/src/dm/impls/composite/ |
| H A D | pack.c | 1331 static PetscErrorCode DMSetUpGLVisViewer_Composite(PetscObject odm, PetscViewer viewer) in DMSetUpGLVisViewer_Composite() argument 1333 DM dm = (DM)odm, *dms; in DMSetUpGLVisViewer_Composite() 1350 PetscCall(PetscViewerCreate(PetscObjectComm(odm), &ctx->subv[i])); in DMSetUpGLVisViewer_Composite()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex30.c | 1137 static PetscErrorCode LoadFromFile(MPI_Comm comm, const char *filename, DM *odm) in LoadFromFile() argument 1230 PetscCall(DMPlexDistribute(dm, 0, &sfBC, odm)); in LoadFromFile() 1231 if (*odm) { in LoadFromFile() 1233 dm = *odm; in LoadFromFile() 1234 *odm = NULL; in LoadFromFile() 1264 *odm = dm; in LoadFromFile()
|
| /petsc/src/dm/impls/forest/p4est/ |
| H A D | pforest.h | 1333 static PetscErrorCode DMView_ASCII_pforest(PetscObject odm, PetscViewer viewer) in DMView_ASCII_pforest() argument 1335 DM dm = (DM)odm; in DMView_ASCII_pforest() 1366 static PetscErrorCode DMView_VTK_pforest(PetscObject odm, PetscViewer viewer) in DMView_VTK_pforest() argument 1368 DM dm = (DM)odm; in DMView_VTK_pforest() 1389 …PetscCheck(pforest->forest, PetscObjectComm(odm), PETSC_ERR_ARG_WRONG, "DM has not been setup with… in DMView_VTK_pforest() 1407 …PetscCheck(pvtk, PetscObjectComm((PetscObject)odm), PETSC_ERR_LIB, P4EST_STRING "_vtk_write_header… in DMView_VTK_pforest() 1416 …PetscCheck(pvtk, PetscObjectComm((PetscObject)odm), PETSC_ERR_LIB, P4EST_STRING "_vtk_write_cell_d… in DMView_VTK_pforest() 1418 …PetscCheck(!footerr, PetscObjectComm((PetscObject)odm), PETSC_ERR_LIB, P4EST_STRING "_vtk_write_fo… in DMView_VTK_pforest()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 6526 PetscErrorCode DMGetOutputDM(DM dm, DM *odm) in DMGetOutputDM() argument 6535 PetscAssertPointer(odm, 2); in DMGetOutputDM() 6543 *odm = dm; in DMGetOutputDM() 6563 *odm = dm->dmBC; in DMGetOutputDM()
|
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex4.c | 1659 static PetscErrorCode CreateMomentFields(DM odm, AppCtx *ctx) in CreateMomentFields() argument 1667 PetscCall(DMClone(odm, &dm)); in CreateMomentFields()
|