| /petsc/src/dm/impls/stag/tests/ |
| H A D | ex32.c | 7 DM dmf, dmc; in main() local 18 …ll(DMStagCreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_NONE, 4, 2, 3, DMSTAG_STENCIL_BOX, 1, NULL, &dmc)); in main() 21 …OUNDARY_NONE, 4, 8, PETSC_DECIDE, PETSC_DECIDE, 2, 3, 4, DMSTAG_STENCIL_BOX, 1, NULL, NULL, &dmc)); in main() 24 …SC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, 2, 3, 4, 3, DMSTAG_STENCIL_BOX, 1, NULL, NULL, NULL, &dmc)); in main() 29 PetscCall(DMSetFromOptions(dmc)); in main() 30 PetscCall(DMSetUp(dmc)); in main() 31 PetscCall(DMRefine(dmc, MPI_COMM_NULL, &dmf)); in main() 38 PetscCall(DMCreateGlobalVector(dmc, &gc)); in main() 39 PetscCall(DMCreateLocalVector(dmc, &lc)); in main() 41 PetscCall(DMStagRestrictSimple(dmf, lf, dmc, lc)); in main() [all …]
|
| H A D | ex20.c | 8 DM dmc, dmf; in main() local 16 …ll(DMStagCreate1d(PETSC_COMM_WORLD, DM_BOUNDARY_NONE, 3, 1, 1, DMSTAG_STENCIL_BOX, 1, NULL, &dmc)); in main() 17 …OUNDARY_NONE, 3, 3, PETSC_DECIDE, PETSC_DECIDE, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, NULL, NULL, &dmc)); in main() 18 …SC_DECIDE, PETSC_DECIDE, PETSC_DECIDE, 1, 1, 1, 1, DMSTAG_STENCIL_BOX, 1, NULL, NULL, NULL, &dmc)); in main() 20 PetscCall(DMSetFromOptions(dmc)); in main() 21 PetscCall(DMSetUp(dmc)); in main() 24 PetscCall(DMRefine(dmc, MPI_COMM_NULL, &dmf)); in main() 31 PetscCall(DMCreateInterpolation(dmc, dmf, &Ai, NULL)); in main() 37 …tscReal)size <= PETSC_MACHINE_EPSILON * 10.0, PetscObjectComm((PetscObject)dmc), PETSC_ERR_PLIB, "… in main() 48 PetscCall(DMCreateRestriction(dmc, dmf, &Ar)); in main() [all …]
|
| /petsc/src/dm/impls/swarm/ |
| H A D | swarmpic_plex.c | 83 static PetscErrorCode private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide(DM dm, DM dmc, PetscInt… in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() argument 101 PetscCall(DMGetDimension(dmc, &dim)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 103 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 104 PetscCall(DMPlexGetConeSize(dmc, ps, &nfaces)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 107 PetscCall(private_PetscFECreateDefault_scalar_pk1(dmc, dim, is_simplex, 0, &fe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 121 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 124 PetscCall(DMSwarmGetCellDMActive(dmc, &celldm)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 126 …PetscCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single c… in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 133 PetscCall(DMGetCoordinatesLocal(dmc, &coorlocal)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() 134 PetscCall(DMGetCoordinateSection(dmc, &coordSection)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide() [all …]
|
| H A D | swarmpic_da.c | 87 static PetscErrorCode private_DMSwarmInsertPointsUsingCellDM_DA_Q1(DM dm, DM dmc, PetscInt npoints,… in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() argument 129 PetscCall(DMDAGetElements(dmc, &nel, &npe, &element_list)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() 169 PetscCall(DMGetCoordinatesLocal(dmc, &coor)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1() 191 PetscCall(DMDARestoreElements(dmc, &nel, &npe, &element_list)); in private_DMSwarmInsertPointsUsingCellDM_DA_Q1()
|
| H A D | swarm.c | 466 static PetscErrorCode DMSwarmComputeMassMatrix_Private(DM dmc, DM dmf, Mat mass, PetscBool useDelta… in DMSwarmComputeMassMatrix_Private() argument 496 PetscCall(DMSwarmGetCellDMActive(dmc, &celldm)); in DMSwarmComputeMassMatrix_Private() 530 PetscCall(DMSwarmSortGetAccess(dmc)); in DMSwarmComputeMassMatrix_Private() 546 PetscCall(DMSwarmSortGetPointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private() 568 PetscCall(DMSwarmSortRestorePointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private() 589 …for (PetscInt i = 0; i < Nfc; ++i) PetscCall(DMSwarmGetField(dmc, coordFields[i], &bs[i], NULL, (v… in DMSwarmComputeMassMatrix_Private() 597 PetscCall(DMSwarmSortGetPointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private() 626 PetscCall(DMSwarmSortRestorePointsPerCell(dmc, cell, &numCIndices, &cindices)); in DMSwarmComputeMassMatrix_Private() 630 …for (PetscInt i = 0; i < Nfc; ++i) PetscCall(DMSwarmRestoreField(dmc, coordFields[i], &bs[i], NULL… in DMSwarmComputeMassMatrix_Private() 633 PetscCall(DMSwarmSortRestoreAccess(dmc)); in DMSwarmComputeMassMatrix_Private() [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex36.c | 306 static PetscErrorCode CreateCoarseProjection(DM dmc, DM dmf, Mat *Pi) in CreateCoarseProjection() argument 313 PetscCall(DMCreateGlobalVector(dmc, &ctx->tmpcoarse)); in CreateCoarseProjection() 319 PetscCall(DMCreateMassMatrix(dmc, dmc, &ctx->Mcoarse)); in CreateCoarseProjection() 321 PetscCall(DMCreateInterpolation(dmc, dmf, &ctx->Ifine, &ctx->Iscale)); in CreateCoarseProjection() 322 PetscCall(KSPCreate(PetscObjectComm((PetscObject)dmc), &ctx->kspCoarse)); in CreateCoarseProjection() 326 PetscCall(MatCreateShell(PetscObjectComm((PetscObject)dmc), m, n, M, N, ctx, Pi)); in CreateCoarseProjection() 357 DM dmcdg, dmc; in QuasiInterpolate() local 374 PetscCall(VecGetDM(y, &dmc)); in QuasiInterpolate() 375 PetscCall(DMGetLocalVector(dmc, &ly)); in QuasiInterpolate() 377 PetscCall(DMLocalToGlobalBegin(dmc, ly, INSERT_VALUES, y)); in QuasiInterpolate() [all …]
|
| /petsc/src/ts/interface/ |
| H A D | tsrhssplit.c | 112 DM dmc; in TSRHSSplitSetRHSFunction() local 135 PetscCall(DMClone(ts->dm, &dmc)); in TSRHSSplitSetRHSFunction() 136 PetscCall(TSSetDM(isplit->ts, dmc)); in TSRHSSplitSetRHSFunction() 137 PetscCall(DMDestroy(&dmc)); in TSRHSSplitSetRHSFunction() 165 DM dmc; in TSRHSSplitSetIFunction() local 188 PetscCall(DMClone(ts->dm, &dmc)); in TSRHSSplitSetIFunction() 189 PetscCall(TSSetDM(isplit->ts, dmc)); in TSRHSSplitSetIFunction() 190 PetscCall(DMDestroy(&dmc)); in TSRHSSplitSetIFunction() 219 DM dmc; in TSRHSSplitSetIJacobian() local 237 PetscCall(DMClone(ts->dm, &dmc)); in TSRHSSplitSetIJacobian() [all …]
|
| /petsc/src/dm/impls/stag/ |
| H A D | stag.c | 260 static PetscErrorCode DMCoarsen_Stag(DM dm, MPI_Comm comm, DM *dmc) in DMCoarsen_Stag() argument 267 PetscCall(DMStagDuplicateWithoutSetup(dm, comm, dmc)); in DMCoarsen_Stag() 268 PetscCall(DMSetOptionsPrefix(*dmc, ((PetscObject)dm)->prefix)); in DMCoarsen_Stag() 271 …PetscCall(DMStagSetGlobalSizes(*dmc, stag->N[0] / stag->refineFactor[0], stag->N[1] / stag->refine… in DMCoarsen_Stag() 279 PetscCall(DMStagSetOwnershipRanges(*dmc, l[0], l[1], l[2])); in DMCoarsen_Stag() 281 PetscCall(DMSetUp(*dmc)); in DMCoarsen_Stag() 291 …PetscCall(DMStagSetUniformCoordinatesExplicit(*dmc, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); /* Coordinates… in DMCoarsen_Stag() 292 PetscCall(DMGetCoordinateDM(*dmc, &coordinate_dmc)); in DMCoarsen_Stag() 293 …PetscCall(DMStagRestrictSimple(coordinate_dm, dm->coordinates[0].x, coordinate_dmc, (*dmc)->coordi… in DMCoarsen_Stag() 295 …PetscCall(DMStagSetUniformCoordinatesProduct(*dmc, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); /* Coordinates … in DMCoarsen_Stag() [all …]
|
| H A D | stagmulti.c | 24 PetscErrorCode DMStagRestrictSimple(DM dmf, Vec xf, DM dmc, Vec xc) in DMStagRestrictSimple() argument 34 PetscCall(DMStagGetLocalSizes(dmc, &nc[0], &nc[1], &nc[2])); in DMStagRestrictSimple() 37 PetscCall(DMStagGetDOF(dmc, &dofc[0], &dofc[1], &dofc[2], &dofc[3])); in DMStagRestrictSimple() 49 PetscCall(DMStagGetEntriesLocal(dmc, &entries_local)); in DMStagRestrictSimple() 56 PetscCall(DMStagRestrictSimple_1d(dmf, xf, dmc, xc)); in DMStagRestrictSimple() 59 PetscCall(DMStagRestrictSimple_2d(dmf, xf, dmc, xc)); in DMStagRestrictSimple() 62 PetscCall(DMStagRestrictSimple_3d(dmf, xf, dmc, xc)); in DMStagRestrictSimple() 448 PETSC_INTERN PetscErrorCode DMStagPopulateInterpolation1d_Internal(DM dmc, DM dmf, Mat A) in DMStagPopulateInterpolation1d_Internal() argument 458 PetscCall(DMStagGetGlobalSizes(dmc, &Mc, NULL, NULL)); in DMStagPopulateInterpolation1d_Internal() 461 PetscCall(DMStagGetDOF(dmc, &dof[0], &dof[1], NULL, NULL)); in DMStagPopulateInterpolation1d_Internal() [all …]
|
| H A D | stag1d.c | 51 PETSC_INTERN PetscErrorCode DMStagRestrictSimple_1d(DM dmf, Vec xf_local, DM dmc, Vec xc_local) in DMStagRestrictSimple_1d() argument 61 PetscCall(DMStagGetGlobalSizes(dmc, &Mc, NULL, NULL)); in DMStagRestrictSimple_1d() 63 PetscCall(DMStagGetDOF(dmc, &dof[0], &dof[1], NULL, NULL)); in DMStagRestrictSimple_1d() 65 PetscCall(DMStagGetCorners(dmc, &xc, NULL, NULL, &mc, NULL, NULL, &nExtraxc, NULL, NULL)); in DMStagRestrictSimple_1d() 68 PetscCall(DMStagVecGetArray(dmc, xc_local, &arrc)); in DMStagRestrictSimple_1d() 71 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_1d() 72 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_ELEMENT, 0, &ielemc)); in DMStagRestrictSimple_1d() 84 PetscCall(DMStagVecRestoreArray(dmc, xc_local, &arrc)); in DMStagRestrictSimple_1d()
|
| H A D | stag2d.c | 57 PETSC_INTERN PetscErrorCode DMStagRestrictSimple_2d(DM dmf, Vec xf_local, DM dmc, Vec xc_local) in DMStagRestrictSimple_2d() argument 67 PetscCall(DMStagGetGlobalSizes(dmc, &Mc, &Nc, NULL)); in DMStagRestrictSimple_2d() 70 PetscCall(DMStagGetDOF(dmc, &dof[0], &dof[1], &dof[2], NULL)); in DMStagRestrictSimple_2d() 72 PetscCall(DMStagGetCorners(dmc, &xc, &yc, NULL, &mc, &nc, NULL, &nExtraxc, &nExtrayc, NULL)); in DMStagRestrictSimple_2d() 75 PetscCall(DMStagVecGetArray(dmc, xc_local, &arrc)); in DMStagRestrictSimple_2d() 80 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN_LEFT, 0, &idownleftc)); in DMStagRestrictSimple_2d() 81 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_LEFT, 0, &ileftc)); in DMStagRestrictSimple_2d() 82 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_DOWN, 0, &idownc)); in DMStagRestrictSimple_2d() 83 PetscCall(DMStagGetLocationSlot(dmc, DMSTAG_ELEMENT, 0, &ielemc)); in DMStagRestrictSimple_2d() 123 PetscCall(DMStagVecRestoreArray(dmc, xc_local, &arrc)); in DMStagRestrictSimple_2d()
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 199 static PetscErrorCode DMRefine_Redundant(DM dmc, MPI_Comm comm, DM *dmf) in DMRefine_Redundant() argument 202 DM_Redundant *redc = (DM_Redundant *)dmc->data; in DMRefine_Redundant() 205 if (comm == MPI_COMM_NULL) PetscCall(PetscObjectGetComm((PetscObject)dmc, &comm)); in DMRefine_Redundant() 206 PetscCallMPI(MPI_Comm_compare(PetscObjectComm((PetscObject)dmc), comm, &flag)); in DMRefine_Redundant() 207 …PetscCheck(flag == MPI_CONGRUENT || flag == MPI_IDENT, PetscObjectComm((PetscObject)dmc), PETSC_ER… in DMRefine_Redundant() 212 static PetscErrorCode DMCoarsen_Redundant(DM dmf, MPI_Comm comm, DM *dmc) in DMCoarsen_Redundant() argument 221 PetscCall(DMRedundantCreate(comm, redf->rank, redf->N, dmc)); in DMCoarsen_Redundant() 225 static PetscErrorCode DMCreateInterpolation_Redundant(DM dmc, DM dmf, Mat *P, Vec *scale) in DMCreateInterpolation_Redundant() argument 227 DM_Redundant *redc = (DM_Redundant *)dmc->data; in DMCreateInterpolation_Redundant() 233 …PetscCallMPI(MPI_Comm_compare(PetscObjectComm((PetscObject)dmc), PetscObjectComm((PetscObject)dmf)… in DMCreateInterpolation_Redundant() [all …]
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex73.c | 277 static PetscErrorCode PCTelescopeSetUp_dmda_scatters(DM dmf, DM dmc) in PCTelescopeSetUp_dmda_scatters() argument 308 if (dmc) { in PCTelescopeSetUp_dmda_scatters() 309 PetscCall(DMCreateGlobalVector(dmc, &xred)); in PCTelescopeSetUp_dmda_scatters() 392 PetscErrorCode DMCoarsen_ShellDA(DM dm, MPI_Comm comm, DM *dmc) in DMCoarsen_ShellDA() argument 395 *dmc = NULL; in DMCoarsen_ShellDA() 396 PetscCall(DMGetCoarseDM(dm, dmc)); in DMCoarsen_ShellDA() 397 if (!*dmc) { in DMCoarsen_ShellDA() 400 PetscCall(PetscObjectReference((PetscObject)*dmc)); in DMCoarsen_ShellDA() 419 DM dmf = NULL, dmc = NULL; in DMShellDASetUp_TelescopeDMScatter() local 423 if (dmc_shell) PetscCall(DMShellGetContext(dmc_shell, &dmc)); in DMShellDASetUp_TelescopeDMScatter() [all …]
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmbmg.cxx | 133 PETSC_EXTERN PetscErrorCode DMCoarsenHierarchy_Moab(DM dm, PetscInt nlevels, DM dmc[]) in DMCoarsenHierarchy_Moab() argument 138 PetscCall(DMCoarsen(dm, PetscObjectComm((PetscObject)dm), &dmc[0])); in DMCoarsenHierarchy_Moab() 139 …for (i = 1; i < nlevels; i++) PetscCall(DMCoarsen(dmc[i - 1], PetscObjectComm((PetscObject)dm), &d… in DMCoarsenHierarchy_Moab() 163 PETSC_EXTERN PetscErrorCode DMCreateInterpolation_Moab(DM dmp, DM dmc, Mat *interpl, Vec *vec) in DMCreateInterpolation_Moab() argument 175 PetscValidHeaderSpecific(dmc, DM_CLASSID, 2); in DMCreateInterpolation_Moab() 177 dmbc = (DM_Moab *)dmc->data; in DMCreateInterpolation_Moab() 251 PetscCall(MatCreate(PetscObjectComm((PetscObject)dmc), interpl)); in DMCreateInterpolation_Moab() 335 PetscCall(DMMoabGetDofsBlocked(dmc, connc.size(), &connc[0], &dofsc[0])); in DMCreateInterpolation_Moab() 550 PETSC_EXTERN PetscErrorCode DMCoarsen_Moab(DM dm, MPI_Comm comm, DM *dmc) in DMCoarsen_Moab() argument 554 PetscCall(DMMoab_UMR_Private(dm, comm, PETSC_FALSE, dmc)); in DMCoarsen_Moab()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | dmksp.c | 30 static PetscErrorCode DMCoarsenHook_DMKSP(DM dm, DM dmc, PetscCtx ctx) in DMCoarsenHook_DMKSP() argument 33 PetscCall(DMCopyDMKSP(dm, dmc)); in DMCoarsenHook_DMKSP() 40 static PetscErrorCode DMRefineHook_DMKSP(DM dm, DM dmc, PetscCtx ctx) in DMRefineHook_DMKSP() argument 43 PetscCall(DMCopyDMKSP(dm, dmc)); in DMRefineHook_DMKSP()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | petscdmshell.pxi | 230 PetscDM *dmc) except PETSC_ERR_PYTHON with gil: 241 dmc[0] = Dmc.dm 262 PetscDM dmc, argument 266 cdef DM Dmc = subtype_DM(dmc)() 270 Dmc.dm = dmc 290 PetscDM dmc, argument 293 cdef DM Dmc = subtype_DM(dmc)() 296 Dmc.dm = dmc 310 PetscDM dmc, argument 313 cdef DM Dmc = subtype_DM(dmc)() [all …]
|
| /petsc/src/dm/impls/patch/ |
| H A D | patch.c | 190 DM dmc; in DMPatchSolve() local 202 PetscCall(DMPatchGetCoarse(dm, &dmc)); in DMPatchSolve() 206 PetscCall(DMGetGlobalVector(dmc, &XC)); in DMPatchSolve() 207 PetscCall(DMDAGetInfo(dmc, NULL, &M, &N, &P, &l, &m, &n, NULL, NULL, NULL, NULL, NULL, NULL)); in DMPatchSolve() 272 PetscCall(DMPatchZoom(dmc, lower, upper, commp, &dmz, &sfz, &sfzr)); in DMPatchSolve() 314 PetscCall(DMRestoreGlobalVector(dmc, &XC)); in DMPatchSolve()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex29.c | 28 static PetscErrorCode CoefficientCoarsenHook(DM dm, DM dmc, PetscCtx ctx) in CoefficientCoarsenHook() argument 40 PetscCall(DMDACreateCompatibleDMDA(dmc, 2, &cdmc)); in CoefficientCoarsenHook() 41 PetscCall(PetscObjectCompose((PetscObject)dmc, "coefficientdm", (PetscObject)cdmc)); in CoefficientCoarsenHook() 61 PetscCall(DMCoarsenHookAdd(dmc, CoefficientCoarsenHook, NULL, NULL)); in CoefficientCoarsenHook()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 1229 PetscErrorCode DMCreateInterpolation(DM dmc, DM dmf, Mat *mat, Vec *vec) in DMCreateInterpolation() argument 1232 PetscValidHeaderSpecific(dmc, DM_CLASSID, 1); in DMCreateInterpolation() 1235 PetscCall(PetscLogEventBegin(DM_CreateInterpolation, dmc, dmf, 0, 0)); in DMCreateInterpolation() 1236 PetscUseTypeMethod(dmc, createinterpolation, dmf, mat, vec); in DMCreateInterpolation() 1237 PetscCall(PetscLogEventEnd(DM_CreateInterpolation, dmc, dmf, 0, 0)); in DMCreateInterpolation() 1315 PetscErrorCode DMCreateRestriction(DM dmc, DM dmf, Mat *mat) in DMCreateRestriction() argument 1318 PetscValidHeaderSpecific(dmc, DM_CLASSID, 1); in DMCreateRestriction() 1321 PetscCall(PetscLogEventBegin(DM_CreateRestriction, dmc, dmf, 0, 0)); in DMCreateRestriction() 1322 PetscUseTypeMethod(dmc, createrestriction, dmf, mat); in DMCreateRestriction() 1323 PetscCall(PetscLogEventEnd(DM_CreateRestriction, dmc, dmf, 0, 0)); in DMCreateRestriction() [all …]
|
| H A D | dmcoordinates.c | 6 PetscErrorCode DMRestrictHook_Coordinates(DM dm, DM dmc, PetscCtx ctx) in DMRestrictHook_Coordinates() argument 14 PetscCall(DMGetCoordinateDM(dmc, &dmc_coord)); in DMRestrictHook_Coordinates() 16 PetscCall(DMGetCoordinates(dmc, &ccoords)); in DMRestrictHook_Coordinates() 23 PetscCall(DMSetCoordinates(dmc, ccoords)); in DMRestrictHook_Coordinates()
|
| /petsc/src/snes/utils/ |
| H A D | dmsnes.c | 86 static PetscErrorCode DMCoarsenHook_DMSNES(DM dm, DM dmc, PetscCtx ctx) in DMCoarsenHook_DMSNES() argument 89 PetscCall(DMCopyDMSNES(dm, dmc)); in DMCoarsenHook_DMSNES() 95 static PetscErrorCode DMRestrictHook_DMSNES(DM dm, Mat Restrict, Vec rscale, Mat Inject, DM dmc, Pe… in DMRestrictHook_DMSNES() argument
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexfem.c | 2149 DM dmc; in DMPlexComputeClementInterpolant() local 2159 PetscCall(VecGetDM(locC, &dmc)); in DMPlexComputeClementInterpolant() 2253 PetscCall(DMPlexVecSetClosure(dmc, NULL, locC, v, valsum, INSERT_VALUES)); in DMPlexComputeClementInterpolant() 2932 PetscErrorCode DMPlexComputeInterpolatorNested(DM dmc, DM dmf, PetscBool isRefined, Mat In, PetscCt… in DMPlexComputeInterpolatorNested() argument 2934 DM_Plex *mesh = (DM_Plex *)dmc->data; in DMPlexComputeInterpolatorNested() 2945 PetscCall(PetscLogEventBegin(DMPLEX_InterpolatorFEM, dmc, dmf, 0, 0)); in DMPlexComputeInterpolatorNested() 2949 PetscCall(DMGetLocalSection(dmc, &csection)); in DMPlexComputeInterpolatorNested() 2950 PetscCall(DMGetGlobalSection(dmc, &cglobalSection)); in DMPlexComputeInterpolatorNested() 2952 PetscCall(DMPlexGetSimplexOrBoxCells(dmc, 0, &cStart, &cEnd)); in DMPlexComputeInterpolatorNested() 2987 PetscCall(DMGetField(dmc, f, NULL, &objc)); in DMPlexComputeInterpolatorNested() [all …]
|
| H A D | plex.c | 8555 …sureRefined(DM dmf, PetscSection fsection, PetscSection globalFSection, DM dmc, PetscSection csect… in DMPlexMatSetClosureRefined() argument 8569 PetscValidHeaderSpecific(dmc, DM_CLASSID, 4); in DMPlexMatSetClosureRefined() 8572 if (!csection) PetscCall(DMGetLocalSection(dmc, &csection)); in DMPlexMatSetClosureRefined() 8576 if (!globalCSection) PetscCall(DMGetGlobalSection(dmc, &globalCSection)); in DMPlexMatSetClosureRefined() 8584 PetscCall(DMPlexGetTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatSetClosureRefined() 8610 PetscCall(DMPlexGetCellType(dmc, point, &ct)); in DMPlexMatSetClosureRefined() 8657 …PetscCheck(!numFields || coffsets[numFields] == numCIndices, PetscObjectComm((PetscObject)dmc), PE… in DMPlexMatSetClosureRefined() 8659 PetscCall(DMGetWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined() 8712 PetscCall(DMRestoreWorkArray(dmc, numCIndices, MPIU_INT, &cindices)); in DMPlexMatSetClosureRefined() 8715 PetscCall(DMPlexRestoreTransitiveClosure(dmc, point, PETSC_TRUE, &numCPoints, &cpoints)); in DMPlexMatSetClosureRefined() [all …]
|
| /petsc/doc/developers/ |
| H A D | callbacks.md | 174 static PetscErrorCode DMCoarsenHook_DMKSP(DM dm, DM dmc, PetscCtx ctx) 177 PetscCall(DMCopyDMKSP(dm,dmc));
|
| /petsc/src/ksp/ksp/utils/dm/ |
| H A D | dmproject.c | 223 PetscErrorCode DMAdaptInterpolator(DM dmc, DM dmf, Mat In, KSP smoother, Mat MF, Mat MC, Mat *InAda… in DMAdaptInterpolator() argument 235 PetscCall(PetscLogEventBegin(DM_AdaptInterpolator, dmc, dmf, 0, 0)); in DMAdaptInterpolator() 336 PetscCall(DMGetWorkArray(dmc, Nc, MPIU_SCALAR, (void *)&tmp)); in DMAdaptInterpolator() 342 PetscCall(DMRestoreWorkArray(dmc, Nc, MPIU_SCALAR, (void *)&tmp)); in DMAdaptInterpolator() 365 PetscCall(DMGetWorkArray(dmc, Nc, MPIU_SCALAR, (void *)&tmp)); in DMAdaptInterpolator() 368 PetscCall(DMRestoreWorkArray(dmc, Nc, MPIU_SCALAR, (void *)&tmp)); in DMAdaptInterpolator() 385 PetscCall(PetscLogEventEnd(DM_AdaptInterpolator, dmc, dmf, 0, 0)); in DMAdaptInterpolator()
|