| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex13.c | 8 PetscInt extent[3] = {1, 1, 1}, refine = 0, layers = 0, three; in main() local 18 PetscCall(PetscOptionsInt("-refine", "Number of refinements", NULL, refine, &refine, NULL)); in main() 25 …PetscCall(DMPlexCreateTPSMesh(PETSC_COMM_WORLD, tps_type, extent, periodic, distribute, refine, la… in main()
|
| /petsc/src/ksp/ksp/impls/gmres/ |
| H A D | borthog2.c | 41 PetscBool refine = (PetscBool)(gmres->cgstype == KSP_GMRES_CGS_REFINE_ALWAYS); in KSPGMRESClassicalGramSchmidtOrthogonalization() local 93 refine = PETSC_TRUE; in KSPGMRESClassicalGramSchmidtOrthogonalization() 98 if (refine) { in KSPGMRESClassicalGramSchmidtOrthogonalization()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexadapt.c | 167 PetscErrorCode (*refine)(DM, PetscReal *, DM *); in DMPlexRefine_Internal() local 195 refine = fl->refine; in DMPlexRefine_Internal() 205 refine = fl->refine; in DMPlexRefine_Internal() 235 PetscCall((*refine)(dm, maxVolumes, dmRefined)); in DMPlexRefine_Internal()
|
| H A D | plexcreate.c | 4304 for (PetscInt refine = 0; refine < refinements; refine++) { in DMPlexCreateTPSMesh_Internal() local 4938 PetscInt extent[3] = {1, 1, 1}, refine = 0, layers = 0, three; in DMPlexCreateFromOptions_Internal() local 4944 …Call(PetscOptionsInt("-dm_plex_tps_refine", "Number of refinements", NULL, refine, &refine, NULL)); in DMPlexCreateFromOptions_Internal() 4950 …PetscCall(DMPlexCreateTPSMesh_Internal(dm, tps_type, extent, periodic, tps_distribute, refine, lay… in DMPlexCreateFromOptions_Internal() 5199 PetscInt prerefine = 0, refine = 0, r, coarsen = 0, overlap = 0, extLayers = 0, dim; in DMSetFromOptions_Plex() local 5403 …undedInt("-dm_refine", "The number of uniform refinements", "DMCreate", refine, &refine, NULL, 0)); in DMSetFromOptions_Plex() 5405 …_refine_hierarchy", "The number of uniform refinements", "DMCreate", refine, &refine, &isHierarchy… in DMSetFromOptions_Plex() 5406 if (refine) PetscCall(DMPlexSetRefinementUniform(dm, PETSC_TRUE)); in DMSetFromOptions_Plex() 5407 if (refine && isHierarchy) { in DMSetFromOptions_Plex() 5412 PetscCall(PetscMalloc1(refine, &dms)); in DMSetFromOptions_Plex() [all …]
|
| /petsc/src/dm/impls/moab/ |
| H A D | dmmbmg.cxx | 416 static PetscErrorCode DMMoab_UMR_Private(DM dm, MPI_Comm comm, PetscBool refine, DM *dmref) in DMMoab_UMR_Private() argument 427 if ((dmb->hlevel == dmb->nhlevels && refine) || (dmb->hlevel == 0 && !refine)) { in DMMoab_UMR_Private() 428 if (dmb->hlevel + 1 > dmb->nhlevels && refine) { in DMMoab_UMR_Private() 431 …if (dmb->hlevel - 1 < 0 && !refine) PetscCall(PetscInfo(NULL, "Invalid multigrid coarsen hierarchy… in DMMoab_UMR_Private() 447 if (refine) { in DMMoab_UMR_Private()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | DMDA.pyx | 972 cdef PetscInt refine[3] 973 refine[0] = asInt(refine_x) 974 refine[1] = asInt(refine_y) 975 refine[2] = asInt(refine_z) 977 refine[0], 978 refine[1], 979 refine[2])) 991 cdef PetscInt dim = 0, refine[3] 994 &refine[0], 995 &refine[1], [all …]
|
| H A D | DMShell.pyx | 402 refine: Callable[[DM, Comm], DM] | None, 405 """Set the routine used to refine the `DMShell`. 411 refine 414 Additional positional arguments for ``refine``. 416 Additional keyword arguments for ``refine``. 423 if refine is not None: 426 context = (refine, args, kargs)
|
| H A D | petscdmshell.pxi | 255 (refine, args, kargs) = context 256 Dmf = refine(Dm, Comm, *args, **kargs)
|
| /petsc/src/dm/impls/forest/ |
| H A D | forest.c | 1579 DMLabel refine; in DMRefine_Forest() local 1590 PetscCall(DMGetLabel(dm, "refine", &refine)); in DMRefine_Forest() 1591 if (!refine) { in DMRefine_Forest() 1592 PetscCall(DMLabelCreate(PETSC_COMM_SELF, "refine", &refine)); in DMRefine_Forest() 1593 PetscCall(DMLabelSetDefaultValue(refine, DM_ADAPT_REFINE)); in DMRefine_Forest() 1594 } else PetscCall(PetscObjectReference((PetscObject)refine)); in DMRefine_Forest() 1595 PetscCall(DMForestSetAdaptivityLabel(*dmRefined, refine)); in DMRefine_Forest() 1596 PetscCall(DMLabelDestroy(&refine)); in DMRefine_Forest() 1656 dm->ops->refine = DMRefine_Forest; in DMInitialize_Forest()
|
| /petsc/src/dm/impls/shell/ |
| H A D | dmshell.c | 762 PetscErrorCode DMShellSetRefine(DM dm, PetscErrorCode (*refine)(DM, MPI_Comm, DM *)) in DMShellSetRefine() 770 dm->ops->refine = refine; in DMShellSetRefine() 789 PetscErrorCode DMShellGetRefine(DM dm, PetscErrorCode (**refine)(DM, MPI_Comm, DM *)) in DMShellGetRefine() 797 *refine = dm->ops->refine; in DMShellGetRefine()
|
| /petsc/src/dm/impls/da/ |
| H A D | dacreate.c | 6 PetscInt refine = 0, dim = da->dim, maxnlevels = 100, refx[100], refy[100], refz[100], n, i; in DMSetFromOptions_DA() local 84 …undedInt("-da_refine", "Uniformly refine DA one or more times", "None", refine, &refine, NULL, 0)); in DMSetFromOptions_DA() 87 while (refine--) { in DMSetFromOptions_DA() 413 da->ops->refine = DMRefine_DA; in DMCreate_DA()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmshell.py | 222 def refine(dm, comm): function 225 cdm.setRefine(refine) 229 refined = coarsened.refine()
|
| H A D | test_dmda.py | 229 rda = da.refine() 251 rda = cda.refine() 275 rda = da.refine() 284 rda = da.refine()
|
| H A D | test_dmplex.py | 139 plex = self.plex.refine() 242 plex = self.plex.refine()
|
| /petsc/src/ksp/ksp/tutorials/amrex/ |
| H A D | MyTest.cxx | 145 domain.refine(ref_ratio); in initGrids() 153 domain.refine(ref_ratio); in initGrids()
|
| /petsc/src/dm/impls/patch/ |
| H A D | patchcreate.c | 38 dm->ops->refine = NULL; in DMInitialize_Patch()
|
| /petsc/src/benchmarks/ |
| H A D | benchmarkExample.py | 457 newopts = processOptions(opts, name, args.refine) 459 …ex.run(log=log, dim=args.dim, snes_convergence_estimate=None, convest_num_refine=args.refine, inte… 460 for r in range(args.refine+1):
|
| /petsc/src/dm/interface/ |
| H A D | dmgenerate.c | 110 entry->refine = rfnc; in DMGenerateRegister()
|
| /petsc/include/petsc/private/ |
| H A D | dmimpl.h | 28 PetscErrorCode (*refine)(DM, PetscReal *, DM *); member 63 PetscErrorCode (*refine)(DM, MPI_Comm, DM *); member
|
| /petsc/src/ts/tutorials/ |
| H A D | ex30.c | 1610 PetscInt refine = 0; in CreateMesh() local 1620 …undedInt("-dm_refine", "The number of uniform refinements", "DMCreate", refine, &refine, NULL, 0)); in CreateMesh() 1621 …_refine_hierarchy", "The number of uniform refinements", "DMCreate", refine, &refine, &isHierarchy… in CreateMesh() 1623 if (refine) { in CreateMesh() 1627 PetscCall(PetscCalloc1(refine, &dms)); in CreateMesh() 1628 if (isHierarchy) PetscCall(DMRefineHierarchy(*dm, refine, dms)); in CreateMesh() 1629 for (PetscInt r = 0; r < refine; r++) { in CreateMesh() 1649 if (refine && !isHierarchy) PetscCall(DMSetRefineLevel(*dm, 0)); in CreateMesh()
|
| /petsc/doc/tutorials/meshing/ |
| H A D | guide_to_subsurface.md | 22 We can regularly refine the surface before extrusion using `-dm_refine <k>`, where `k` is the numbe…
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 108 (adapt/refine/marker/visible? #t) 109 (adapt/refine/cell/visible? #f) 110 (adapt/refine/cell/filled? #f) 3160 (pdf/auto-refine/fmin (0.001 0.001 0.001)) 3161 (pdf/auto-refine/min-pts (15 15 15)) 3162 (pdf/auto-refine/coarsen-val 0.05) 3163 (pdf/auto-refine/coarsening? #f) 3164 (pdf/auto-refine/fmean-init-uniform-grid? #f) 3165 (pdf/auto-refine/min-range 0.05) 3166 (pdf/auto-refine/ratio 10) [all …]
|
| /petsc/src/dm/impls/redundant/ |
| H A D | dmredundant.c | 366 dm->ops->refine = DMRefine_Redundant; in DMCreate_Redundant()
|
| /petsc/doc/changes/ |
| H A D | 38.md | 181 - Added DMPlexRefineSimplexToTensor to refine simplicial into tensor
|
| /petsc/src/dm/impls/network/ |
| H A D | networkcreate.c | 334 dm->ops->refine = NULL; in DMInitialize_Network()
|