Home
last modified time | relevance | path

Searched refs:coarsen (Results 1 – 25 of 31) sorted by relevance

12

/petsc/src/mat/graphops/coarsen/interface/
H A Dcoarsen.c53 PetscErrorCode MatCoarsenGetType(MatCoarsen coarsen, MatCoarsenType *type) in MatCoarsenGetType() argument
56 PetscValidHeaderSpecific(coarsen, MAT_COARSEN_CLASSID, 1); in MatCoarsenGetType()
58 *type = ((PetscObject)coarsen)->type_name; in MatCoarsenGetType()
/petsc/src/snes/impls/vi/rs/
H A Dvirs.c39 PetscErrorCode (*coarsen)(DM, MPI_Comm, DM *); member
108 PetscCall((*dmsnesvi1->coarsen)(dm1, comm, dm2)); in DMCoarsen_SNESVI()
172 dmsnesvi->dm->ops->coarsen = dmsnesvi->coarsen; in DMDestroy_SNESVI()
216 dmsnesvi->coarsen = dm->ops->coarsen; in DMSetVI()
217 dm->ops->coarsen = DMCoarsen_SNESVI; in DMSetVI()
/petsc/src/dm/impls/forest/
H A Dforest.c1602 DMLabel coarsen; in DMCoarsen_Forest() local
1621 PetscCall(DMGetLabel(dm, "coarsen", &coarsen)); in DMCoarsen_Forest()
1622 if (!coarsen) { in DMCoarsen_Forest()
1623 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "coarsen", &coarsen)); in DMCoarsen_Forest()
1624 PetscCall(DMLabelSetDefaultValue(coarsen, DM_ADAPT_COARSEN)); in DMCoarsen_Forest()
1625 } else PetscCall(PetscObjectReference((PetscObject)coarsen)); in DMCoarsen_Forest()
1626 PetscCall(DMForestSetAdaptivityLabel(*dmCoarsened, coarsen)); in DMCoarsen_Forest()
1627 PetscCall(DMLabelDestroy(&coarsen)); in DMCoarsen_Forest()
1657 dm->ops->coarsen = DMCoarsen_Forest; in DMInitialize_Forest()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DDMShell.pyx370 coarsen: Callable[[DM, Comm], DM] | None,
373 """Set the routine used to coarsen the `DMShell`.
379 coarsen
382 Additional positional arguments for ``coarsen``.
384 Additional keyword arguments for ``coarsen``.
391 if coarsen is not None:
394 context = (coarsen, args, kargs)
H A Dpetscdmshell.pxi238 (coarsen, args, kargs) = context
239 Dmc = coarsen(Dm, Comm, *args, **kargs)
H A DDM.pyx1624 def coarsen(self, comm: Comm | None = None) -> DM: member in DM
2450 The coarsen hook function.
/petsc/src/dm/impls/shell/
H A Ddmshell.c710 PetscErrorCode DMShellSetCoarsen(DM dm, PetscErrorCode (*coarsen)(DM, MPI_Comm, DM *)) in DMShellSetCoarsen()
718 dm->ops->coarsen = coarsen; in DMShellSetCoarsen()
737 PetscErrorCode DMShellGetCoarsen(DM dm, PetscErrorCode (**coarsen)(DM, MPI_Comm, DM *)) in DMShellGetCoarsen()
745 *coarsen = dm->ops->coarsen; in DMShellGetCoarsen()
/petsc/src/binding/petsc4py/test/
H A Dtest_dmshell.py219 def coarsen(dm, comm): function
226 self.dm.setCoarsen(coarsen)
227 coarsened = self.dm.coarsen()
H A Dtest_dmda.py235 cda = rda.coarsen()
245 cda = self.da.coarsen()
/petsc/include/petsc/private/
H A Dpcgamgimpl.h10 PetscErrorCode (*coarsen)(PC, Mat *, PetscCoarsenData **); member
H A Ddmimpl.h64 PetscErrorCode (*coarsen)(DM, MPI_Comm, DM *); member
/petsc/src/dm/impls/patch/
H A Dpatchcreate.c39 dm->ops->coarsen = NULL; in DMInitialize_Patch()
/petsc/src/binding/petsc4py/
H A DCHANGES.rst232 - Add support for coarsening in ``DA`` (``DA.coarsen()``).
/petsc/src/dm/impls/redundant/
H A Ddmredundant.c367 dm->ops->coarsen = DMCoarsen_Redundant; in DMCreate_Redundant()
/petsc/src/dm/impls/network/
H A Dnetworkcreate.c335 dm->ops->coarsen = NULL; in DMInitialize_Network()
/petsc/src/dm/impls/da/
H A Ddacreate.c414 da->ops->coarsen = DMCoarsen_DA; in DMCreate_DA()
/petsc/src/dm/impls/plex/
H A Dplexcreate.c5199 PetscInt prerefine = 0, refine = 0, r, coarsen = 0, overlap = 0, extLayers = 0, dim; in DMSetFromOptions_Plex() local
5451 …PetscCall(PetscOptionsBoundedInt("-dm_coarsen", "Coarsen the mesh", "DMCreate", coarsen, &coarsen,… in DMSetFromOptions_Plex()
5452 …t("-dm_coarsen_hierarchy", "The number of coarsenings", "DMCreate", coarsen, &coarsen, &isHierarch… in DMSetFromOptions_Plex()
5453 if (coarsen && isHierarchy) { in DMSetFromOptions_Plex()
5456 PetscCall(PetscMalloc1(coarsen, &dms)); in DMSetFromOptions_Plex()
5457 PetscCall(DMCoarsenHierarchy(dm, coarsen, dms)); in DMSetFromOptions_Plex()
5459 for (r = 0; r < coarsen; ++r) { in DMSetFromOptions_Plex()
5465 for (r = 0; r < coarsen; ++r) { in DMSetFromOptions_Plex()
5732 dm->ops->coarsen = DMCoarsen_Plex; in DMInitialize_Plex()
/petsc/src/ksp/pc/impls/gamg/
H A Dgeo.c739 pc_gamg->ops->coarsen = PCGAMGCoarsen_GEO; in PCCreateGAMG_GEO()
H A Dclassical.c952 pc_gamg->ops->coarsen = PCGAMGCoarsen_Classical; in PCCreateGAMG_Classical()
/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h1084 DMLabel coarsen; in DMSetUp_pforest() local
1089 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "coarsen", &coarsen)); in DMSetUp_pforest()
1090 PetscCall(DMLabelSetDefaultValue(coarsen, DM_ADAPT_COARSEN)); in DMSetUp_pforest()
1091 PetscCall(DMForestSetAdaptivityLabel(coarseDM, coarsen)); in DMSetUp_pforest()
1092 PetscCall(DMLabelDestroy(&coarsen)); in DMSetUp_pforest()
/petsc/doc/manual/
H A Dksp.md1112 …> - `-pc_gamg_mat_coarsen_type` \<mis|hem|misk:misk> Algorithm used to coarsen the matrix graph. S…
1117 …_ordering` \<bool:false> Use a minimum degree ordering in the greedy MIS algorithm used to coarsen.
1316 `PCGAMGSetAggressiveLevels(pc,N)`, to aggressively coarsen the graph on the finest N
1318 default, square graph: use $A^T A$ in the MIS coarsening algorithm and 2) coarsen with MIS-2 (inste…
1322 The square graph approach seems to coarsen slower, which results in
/petsc/src/dm/impls/stag/
H A Dstag.c984 dm->ops->coarsen = DMCoarsen_Stag; in DMCreate_Stag()
/petsc/src/dm/impls/moab/
H A Ddmmoab.cxx1474 dm->ops->coarsen = DMCoarsen_Moab; in DMInitialize_Moab()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas105 (adapt/coarsen/marker/visible? #t)
106 (adapt/coarsen/cell/visible? #f)
107 (adapt/coarsen/cell/filled? #f)
2710 (mg/coarsen-interval 1)
3162 (pdf/auto-refine/coarsen-val 0.05)
6781 (dynamesh/remesh/refine-coarsen-order? #f)
7099 (overset/adapt/buffer-layers-coarsen 2)
7724 (adapt/optim/limiting/mesh/coarsen-factor 10.)
7737 (adapt/optim/coarsen/max-iterations 1)
7738 (adapt/optim/coarsen/min-length 0.707106781)
[all …]
/petsc/doc/community/meetings/2025/
H A Dindex.md170 …ns, we are often driven to modify an input mesh. For example, to refine, coarsen, extrude, change …

12