Home
last modified time | relevance | path

Searched refs:dmf (Results 1 – 25 of 26) sorted by relevance

12

/petsc/src/dm/impls/stag/tests/ !
H A Dex32.c7 DM dmf, dmc; in main() local
31 PetscCall(DMRefine(dmc, MPI_COMM_NULL, &dmf)); in main()
33 PetscCall(DMCreateGlobalVector(dmf, &gf)); in main()
35 PetscCall(DMCreateLocalVector(dmf, &lf)); in main()
36 PetscCall(DMGlobalToLocal(dmf, gf, INSERT_VALUES, lf)); in main()
41 PetscCall(DMStagRestrictSimple(dmf, lf, dmc, lc)); in main()
53 PetscCall(DMDestroy(&dmf)); in main()
H A Dex20.c8 DM dmc, dmf; in main() local
24 PetscCall(DMRefine(dmc, MPI_COMM_NULL, &dmf)); in main()
31 PetscCall(DMCreateInterpolation(dmc, dmf, &Ai, NULL)); in main()
48 PetscCall(DMCreateRestriction(dmc, dmf, &Ar)); in main()
59 PetscCall(DMDestroy(&dmf)); in main()
/petsc/src/dm/impls/da/ !
H A Dda.c1161 PetscErrorCode DMCoarsen_DA(DM dmf, MPI_Comm comm, DM *dmc) in DMCoarsen_DA() argument
1166 DM_DA *dd = (DM_DA *)dmf->data, *dd2; in DMCoarsen_DA()
1169 PetscValidHeaderSpecificType(dmf, DM_CLASSID, 1, DMDA); in DMCoarsen_DA()
1172 PetscCall(DMGetDimension(dmf, &dim)); in DMCoarsen_DA()
1196 PetscCall(DMDACreate(PetscObjectComm((PetscObject)dmf), &dmc2)); in DMCoarsen_DA()
1197 PetscCall(DMSetOptionsPrefix(dmc2, ((PetscObject)dmf)->prefix)); in DMCoarsen_DA()
1208 …PetscCall(DMDACoarsenOwnershipRanges(dmf, (PetscBool)(dd->bx == DM_BOUNDARY_PERIODIC || dd->interp… in DMCoarsen_DA()
1209 …PetscCall(DMDACoarsenOwnershipRanges(dmf, (PetscBool)(dd->by == DM_BOUNDARY_PERIODIC || dd->interp… in DMCoarsen_DA()
1210 …PetscCall(DMDACoarsenOwnershipRanges(dmf, (PetscBool)(dd->bz == DM_BOUNDARY_PERIODIC || dd->interp… in DMCoarsen_DA()
1216 …PetscCall(DMDACoarsenOwnershipRanges(dmf, (PetscBool)(dd->bx == DM_BOUNDARY_PERIODIC || dd->interp… in DMCoarsen_DA()
[all …]
/petsc/src/dm/impls/redundant/ !
H A Ddmredundant.c199 static PetscErrorCode DMRefine_Redundant(DM dmc, MPI_Comm comm, DM *dmf) in DMRefine_Redundant() argument
208 PetscCall(DMRedundantCreate(comm, redc->rank, redc->N, dmf)); in DMRefine_Redundant()
212 static PetscErrorCode DMCoarsen_Redundant(DM dmf, MPI_Comm comm, DM *dmc) in DMCoarsen_Redundant() argument
215 DM_Redundant *redf = (DM_Redundant *)dmf->data; in DMCoarsen_Redundant()
218 if (comm == MPI_COMM_NULL) PetscCall(PetscObjectGetComm((PetscObject)dmf, &comm)); in DMCoarsen_Redundant()
219 PetscCallMPI(MPI_Comm_compare(PetscObjectComm((PetscObject)dmf), comm, &flag)); in DMCoarsen_Redundant()
220 …PetscCheck(flag == MPI_CONGRUENT || flag == MPI_IDENT, PetscObjectComm((PetscObject)dmf), PETSC_ER… in DMCoarsen_Redundant()
225 static PetscErrorCode DMCreateInterpolation_Redundant(DM dmc, DM dmf, Mat *P, Vec *scale) in DMCreateInterpolation_Redundant() argument
228 DM_Redundant *redf = (DM_Redundant *)dmf->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 Dex73.c168 static PetscErrorCode DMDACreatePermutation_2d(DM dmrepart, DM dmf, Mat *mat) in DMDACreatePermutation_2d() argument
181 PetscCall(PetscInfo(dmf, "setting up the permutation matrix (DMDA-2D)\n")); in DMDACreatePermutation_2d()
182 PetscCall(PetscObjectGetComm((PetscObject)dmf, &comm)); in DMDACreatePermutation_2d()
220 …PetscCall(DMDAGetInfo(dmf, NULL, &nx, &ny, NULL, NULL, NULL, NULL, &ndof, NULL, NULL, NULL, NULL, … in DMDACreatePermutation_2d()
221 PetscCall(DMGetGlobalVector(dmf, &V)); in DMDACreatePermutation_2d()
224 PetscCall(DMRestoreGlobalVector(dmf, &V)); in DMDACreatePermutation_2d()
235 PetscCall(DMDAGetCorners(dmf, NULL, NULL, NULL, &lenI[0], &lenI[1], NULL)); in DMDACreatePermutation_2d()
236 PetscCall(DMDAGetCorners(dmf, &startI[0], &startI[1], NULL, &endI[0], &endI[1], NULL)); in DMDACreatePermutation_2d()
277 static PetscErrorCode PCTelescopeSetUp_dmda_scatters(DM dmf, DM dmc) in PCTelescopeSetUp_dmda_scatters() argument
287 PetscCall(PetscObjectGetComm((PetscObject)dmf, &comm)); in PCTelescopeSetUp_dmda_scatters()
[all …]
/petsc/src/dm/impls/stag/ !
H A Dstagmulti.c24 PetscErrorCode DMStagRestrictSimple(DM dmf, Vec xf, DM dmc, Vec xc) in DMStagRestrictSimple() argument
29 PetscCall(DMGetDimension(dmf, &dim)); in DMStagRestrictSimple()
33 PetscCall(DMStagGetLocalSizes(dmf, &nf[0], &nf[1], &nf[2])); in DMStagRestrictSimple()
35 …for (d = 0; d < dim; ++d) PetscCheck(nf[d] % nc[d] == 0, PetscObjectComm((PetscObject)dmf), PETSC_… in DMStagRestrictSimple()
36 PetscCall(DMStagGetDOF(dmf, &doff[0], &doff[1], &doff[2], &doff[3])); in DMStagRestrictSimple()
38 …for (d = 0; d < dim + 1; ++d) PetscCheck(doff[d] == dofc[d], PetscObjectComm((PetscObject)dmf), PE… in DMStagRestrictSimple()
42 PetscCall(DMStagGetEntriesLocal(dmf, &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()
[all …]
H A Dstag.c311 static PetscErrorCode DMRefine_Stag(DM dm, MPI_Comm comm, DM *dmf) in DMRefine_Stag() argument
318 PetscCall(DMStagDuplicateWithoutSetup(dm, comm, dmf)); in DMRefine_Stag()
319 PetscCall(DMSetOptionsPrefix(*dmf, ((PetscObject)dm)->prefix)); in DMRefine_Stag()
320 …PetscCall(DMStagSetGlobalSizes(*dmf, stag->N[0] * stag->refineFactor[0], stag->N[1] * stag->refine… in DMRefine_Stag()
326 PetscCall(DMStagSetOwnershipRanges(*dmf, l[0], l[1], l[2])); in DMRefine_Stag()
328 PetscCall(DMSetUp(*dmf)); in DMRefine_Stag()
382 static PetscErrorCode CheckTransferOperatorRequirements_Private(DM dmc, DM dmf) in CheckTransferOperatorRequirements_Private() argument
390 PetscCall(DMStagGetStencilWidth(dmf, &stencilWidthf)); in CheckTransferOperatorRequirements_Private()
391 …PetscCheck(stencilWidthf >= 1, PetscObjectComm((PetscObject)dmf), PETSC_ERR_SUP, "DMCreateRestrict… in CheckTransferOperatorRequirements_Private()
392 PetscCall(DMStagGetLocalSizes(dmf, &nf[0], &nf[1], &nf[2])); in CheckTransferOperatorRequirements_Private()
[all …]
H A Dstag1d.c51 PETSC_INTERN PetscErrorCode DMStagRestrictSimple_1d(DM dmf, Vec xf_local, DM dmc, Vec xc_local) in DMStagRestrictSimple_1d() argument
60 PetscCall(DMStagGetGlobalSizes(dmf, &Mf, NULL, NULL)); in DMStagRestrictSimple_1d()
67 PetscCall(DMStagVecGetArray(dmf, xf_local, &arrf)); in DMStagRestrictSimple_1d()
69 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_1d()
70 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_ELEMENT, 0, &ielemf)); in DMStagRestrictSimple_1d()
83 PetscCall(DMStagVecRestoreArray(dmf, xf_local, &arrf)); in DMStagRestrictSimple_1d()
H A Dstag2d.c57 PETSC_INTERN PetscErrorCode DMStagRestrictSimple_2d(DM dmf, Vec xf_local, DM dmc, Vec xc_local) in DMStagRestrictSimple_2d() argument
66 PetscCall(DMStagGetGlobalSizes(dmf, &Mf, &Nf, NULL)); in DMStagRestrictSimple_2d()
74 PetscCall(DMStagVecGetArray(dmf, xf_local, &arrf)); in DMStagRestrictSimple_2d()
76 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN_LEFT, 0, &idownleftf)); in DMStagRestrictSimple_2d()
77 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_2d()
78 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN, 0, &idownf)); in DMStagRestrictSimple_2d()
79 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_ELEMENT, 0, &ielemf)); in DMStagRestrictSimple_2d()
122 PetscCall(DMStagVecRestoreArray(dmf, xf_local, &arrf)); in DMStagRestrictSimple_2d()
H A Dstag3d.c64 PETSC_INTERN PetscErrorCode DMStagRestrictSimple_3d(DM dmf, Vec xf_local, DM dmc, Vec xc_local) in DMStagRestrictSimple_3d() argument
74 PetscCall(DMStagGetGlobalSizes(dmf, &Mf, &Nf, &Pf)); in DMStagRestrictSimple_3d()
83 PetscCall(DMStagVecGetArray(dmf, xf_local, &arrf)); in DMStagRestrictSimple_3d()
85 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_DOWN_LEFT, 0, &ibackdownleftf)); in DMStagRestrictSimple_3d()
86 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_DOWN, 0, &ibackdownf)); in DMStagRestrictSimple_3d()
87 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK_LEFT, 0, &ibackleftf)); in DMStagRestrictSimple_3d()
88 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_BACK, 0, &ibackf)); in DMStagRestrictSimple_3d()
89 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN_LEFT, 0, &idownleftf)); in DMStagRestrictSimple_3d()
90 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_DOWN, 0, &idownf)); in DMStagRestrictSimple_3d()
91 PetscCall(DMStagGetLocationSlot(dmf, DMSTAG_LEFT, 0, &ileftf)); in DMStagRestrictSimple_3d()
[all …]
/petsc/src/snes/tutorials/ !
H A Dex36.c306 static PetscErrorCode CreateCoarseProjection(DM dmc, DM dmf, Mat *Pi) in CreateCoarseProjection() argument
314 PetscCall(DMCreateGlobalVector(dmf, &ctx->tmpfine)); in CreateCoarseProjection()
320 PetscCall(DMCreateMassMatrix(dmf, dmf, &ctx->Mfine)); in CreateCoarseProjection()
321 PetscCall(DMCreateInterpolation(dmc, dmf, &ctx->Ifine, &ctx->Iscale)); in CreateCoarseProjection()
383 static PetscErrorCode CreateQuasiInterpolator(DM dmc, DM dmf, Mat *P) in CreateQuasiInterpolator() argument
395 PetscCall(DMGetGlobalVector(dmf, &y)); in CreateQuasiInterpolator()
401 PetscCall(DMRestoreGlobalVector(dmf, &y)); in CreateQuasiInterpolator()
403 PetscCall(DMClone(dmf, &dmfdg)); in CreateQuasiInterpolator()
411 PetscCall(DMCreateInterpolation(dmf, dmfdg, &ctx->Ifdg, NULL)); in CreateQuasiInterpolator()
424 PetscCall(CreateCoarseProjection(dmcdg, dmf, &ctx->Pi)); in CreateQuasiInterpolator()
H A Dex48.c623 static PetscErrorCode DMCoarsenHook_THI(DM dmf, DM dmc, PetscCtx ctx) in DMCoarsenHook_THI() argument
637 static PetscErrorCode DMRefineHook_THI(DM dmc, DM dmf, PetscCtx ctx) in DMRefineHook_THI() argument
642 PetscCall(THISetUpDM(thi, dmf)); in DMRefineHook_THI()
643 PetscCall(DMSetMatType(dmf, thi->mattype)); in DMRefineHook_THI()
644 PetscCall(DMRefineHookAdd(dmf, DMRefineHook_THI, NULL, thi)); in DMRefineHook_THI()
646 PetscCall(DMCoarsenHookAdd(dmf, DMCoarsenHook_THI, NULL, thi)); in DMRefineHook_THI()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/ !
H A Dpetscdmshell.pxi247 PetscDM *dmf) except PETSC_ERR_PYTHON with gil:
258 dmf[0] = Dmf.dm
263 PetscDM dmf, argument
267 cdef DM Dmf = subtype_DM(dmf)()
272 Dmf.dm = dmf
291 PetscDM dmf, argument
294 cdef DM Dmf = subtype_DM(dmf)()
298 Dmf.dm = dmf
309 PetscDM dmf, argument
312 cdef DM Dmf = subtype_DM(dmf)()
[all …]
H A DDM.pyx1499 def createMassMatrix(self, DM dmf) -> Mat: argument
1506 dmf
1515 CHKERR(DMCreateMassMatrix(self.dm, dmf.dm, &mat.mat))
1667 cdef DM dmf = None
1670 dmf = subtype_DM(newdmf[i])()
1671 dmf.dm = newdmf[i]
1672 hierarchy.append(dmf)
/petsc/src/dm/impls/moab/ !
H A Ddmmbmg.cxx107 PETSC_EXTERN PetscErrorCode DMRefineHierarchy_Moab(DM dm, PetscInt nlevels, DM dmf[]) in DMRefineHierarchy_Moab() argument
112 PetscCall(DMRefine(dm, PetscObjectComm((PetscObject)dm), &dmf[0])); in DMRefineHierarchy_Moab()
113 …for (i = 1; i < nlevels; i++) PetscCall(DMRefine(dmf[i - 1], PetscObjectComm((PetscObject)dm), &dm… in DMRefineHierarchy_Moab()
521 PETSC_EXTERN PetscErrorCode DMRefine_Moab(DM dm, MPI_Comm comm, DM *dmf) in DMRefine_Moab() argument
526 PetscCall(DMMoab_UMR_Private(dm, comm, PETSC_TRUE, dmf)); in DMRefine_Moab()
/petsc/src/dm/impls/swarm/ !
H A Dswarm.c466 static PetscErrorCode DMSwarmComputeMassMatrix_Private(DM dmc, DM dmf, Mat mass, PetscBool useDelta… in DMSwarmComputeMassMatrix_Private() argument
486 PetscCall(DMGetCoordinateDim(dmf, &dim)); in DMSwarmComputeMassMatrix_Private()
487 PetscCall(DMGetDS(dmf, &prob)); in DMSwarmComputeMassMatrix_Private()
491 PetscCall(DMGetLocalSection(dmf, &fsection)); in DMSwarmComputeMassMatrix_Private()
492 PetscCall(DMGetGlobalSection(dmf, &globalFSection)); in DMSwarmComputeMassMatrix_Private()
493 PetscCall(DMPlexGetHeightStratum(dmf, 0, &cStart, &cEnd)); in DMSwarmComputeMassMatrix_Private()
545 …PetscCall(DMPlexGetClosureIndices(dmf, fsection, globalFSection, cell, PETSC_FALSE, &numFIndices, … in DMSwarmComputeMassMatrix_Private()
561 …PetscCheck(missing, PetscObjectComm((PetscObject)dmf), PETSC_ERR_SUP, "Set new value at %" PetscIn… in DMSwarmComputeMassMatrix_Private()
570 …PetscCall(DMPlexRestoreClosureIndices(dmf, fsection, globalFSection, cell, PETSC_FALSE, &numFIndic… in DMSwarmComputeMassMatrix_Private()
595 PetscCall(DMPlexComputeCellGeometryFEM(dmf, cell, NULL, v0, J, invJ, &detJ)); in DMSwarmComputeMassMatrix_Private()
[all …]
/petsc/src/dm/impls/plex/tutorials/ !
H A Dex8.c98 PetscInt Nf, dmf = 0, dsf = -1; in main() local
105 if (dmf == fields[f]) { in main()
/petsc/src/dm/impls/patch/ !
H A Dpatch.c254 DM dmf = NULL; in DMPatchSolve()
290 PetscCall(DMRefine(dmz, MPI_COMM_NULL, &dmf)); in DMPatchSolve()
291 PetscCall(DMCreateInterpolation(dmz, dmf, &interpz, NULL)); in DMPatchSolve()
292 PetscCall(DMInterpolate(dmz, interpz, dmf)); in DMPatchSolve()
/petsc/src/dm/interface/ !
H A Ddm.c1229 PetscErrorCode DMCreateInterpolation(DM dmc, DM dmf, Mat *mat, Vec *vec) in DMCreateInterpolation() argument
1233 PetscValidHeaderSpecific(dmf, DM_CLASSID, 2); 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
1319 PetscValidHeaderSpecific(dmf, DM_CLASSID, 2); 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 …]
/petsc/src/snes/utils/ !
H A Ddmsnes.c117 static PetscErrorCode DMRefineHook_DMSNES(DM dm, DM dmf, PetscCtx ctx) in DMRefineHook_DMSNES() argument
120 PetscCall(DMCopyDMSNES(dm, dmf)); in DMRefineHook_DMSNES()
126 static PetscErrorCode DMInterpolateHook_DMSNES(DM dm, Mat Interp, DM dmf, PetscCtx ctx) in DMInterpolateHook_DMSNES() argument
/petsc/src/ksp/ksp/utils/dm/ !
H A Ddmproject.c223 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()
287 PetscCall(DMGetGlobalVector(dmf, &tmp2)); in DMAdaptInterpolator()
290 PetscCall(DMRestoreGlobalVector(dmf, &tmp2)); in DMAdaptInterpolator()
385 PetscCall(PetscLogEventEnd(DM_AdaptInterpolator, dmc, dmf, 0, 0)); in DMAdaptInterpolator()
389 PetscErrorCode DMCheckInterpolator(DM dmf, Mat In, Mat MC, Mat MF, PetscReal tol) in DMCheckInterpolator() argument
396 PetscCall(DMGetGlobalVector(dmf, &tmp)); in DMCheckInterpolator()
413 …PetscCall(PetscPrintf(PetscObjectComm((PetscObject)dmf), "Coarse vec %" PetscInt_FMT " ||vf - P vc… in DMCheckInterpolator()
417 PetscCall(DMRestoreGlobalVector(dmf, &tmp)); in DMCheckInterpolator()
418 …PetscCheck(maxnorm2 <= tol, PetscObjectComm((PetscObject)dmf), PETSC_ERR_ARG_WRONG, "max_k ||vf_k … in DMCheckInterpolator()
/petsc/src/binding/petsc4py/test/ !
H A Dtest_dmshell.py240 def create_interp(dm, dmf): argument
253 def create_inject(dm, dmf): argument
/petsc/src/dm/impls/plex/ !
H A Dplexfem.c2932 PetscErrorCode DMPlexComputeInterpolatorNested(DM dmc, DM dmf, PetscBool isRefined, Mat In, PetscCt… in DMPlexComputeInterpolatorNested() argument
2945 PetscCall(PetscLogEventBegin(DMPLEX_InterpolatorFEM, dmc, dmf, 0, 0)); in DMPlexComputeInterpolatorNested()
2946 PetscCall(DMGetDimension(dmf, &dim)); in DMPlexComputeInterpolatorNested()
2947 PetscCall(DMGetLocalSection(dmf, &fsection)); in DMPlexComputeInterpolatorNested()
2948 PetscCall(DMGetGlobalSection(dmf, &fglobalSection)); in DMPlexComputeInterpolatorNested()
2959 PetscCall(DMGetField(dmf, f, NULL, &obj)); in DMPlexComputeInterpolatorNested()
3115 …PetscCall(DMPlexMatGetClosureIndicesRefined(dmf, fsection, fglobalSection, dmc, csection, cglobalS… in DMPlexComputeInterpolatorNested()
3118 …PetscCall(DMPlexMatSetClosureGeneral(dmf, fsection, fglobalSection, PETSC_FALSE, dmc, csection, cg… in DMPlexComputeInterpolatorNested()
3132 …PetscCall(DMPlexMatSetClosureRefined(dmf, fsection, fglobalSection, dmc, csection, cglobalSection,… in DMPlexComputeInterpolatorNested()
3134 …PetscCall(DMPlexMatSetClosureGeneral(dmf, fsection, fglobalSection, PETSC_FALSE, dmc, csection, cg… in DMPlexComputeInterpolatorNested()
[all …]
H A Dplex.c8555 PetscErrorCode DMPlexMatSetClosureRefined(DM dmf, PetscSection fsection, PetscSection globalFSectio… in DMPlexMatSetClosureRefined() argument
8557 DM_Plex *mesh = (DM_Plex *)dmf->data; in DMPlexMatSetClosureRefined()
8568 PetscValidHeaderSpecific(dmf, DM_CLASSID, 1); in DMPlexMatSetClosureRefined()
8570 if (!fsection) PetscCall(DMGetLocalSection(dmf, &fsection)); in DMPlexMatSetClosureRefined()
8574 if (!globalFSection) PetscCall(DMGetGlobalSection(dmf, &globalFSection)); in DMPlexMatSetClosureRefined()
8580 …PetscCheck(numFields <= 31, PetscObjectComm((PetscObject)dmf), PETSC_ERR_ARG_OUTOFRANGE, "Number o… in DMPlexMatSetClosureRefined()
8622 PetscCall(DMGetWorkArray(dmf, maxFPoints * 2 * numSubcells, MPIU_INT, &ftotpoints)); in DMPlexMatSetClosureRefined()
8625 …PetscCall(DMPlexGetTransitiveClosure(dmf, point * numSubcells + r, PETSC_TRUE, &numFPoints, &fpoin… in DMPlexMatSetClosureRefined()
8640 PetscCall(DMPlexRestoreTransitiveClosure(dmf, point, PETSC_TRUE, &numFPoints, &fpoints)); in DMPlexMatSetClosureRefined()
8656 …PetscCheck(!numFields || foffsets[numFields] == numFIndices, PetscObjectComm((PetscObject)dmf), PE… in DMPlexMatSetClosureRefined()
[all …]
/petsc/src/snes/impls/fas/ !
H A Dfas.c524 DM dmc, dmf; in SNESFASInterpolatedCoarseSolution() local
527 PetscCall(SNESGetDM(snes, &dmf)); in SNESFASInterpolatedCoarseSolution()
529 PetscCall(DMInterpolateSolution(dmc, dmf, interpolate, X_c, X_new)); in SNESFASInterpolatedCoarseSolution()

12