Home
last modified time | relevance | path

Searched refs:lmax (Results 1 – 6 of 6) sorted by relevance

/petsc/src/dm/impls/da/ !
H A Ddageometry.c39 PetscErrorCode DMGetLocalBoundingBox_DA(DM da, PetscReal lmin[], PetscReal lmax[], PetscInt cs[], P… in DMGetLocalBoundingBox_DA() argument
69 PetscCall(DMGetLocalBoundingIndices_DMDA(da, lmin, lmax)); in DMGetLocalBoundingBox_DA()
72 if (ce) ce[d] = lmax[d]; in DMGetLocalBoundingBox_DA()
95 lmax[d] = PetscRealPart(coor[c1 * dim + d]); in DMGetLocalBoundingBox_DA()
106 lmax[0] = gmax[0]; in DMGetLocalBoundingBox_DA()
110 lmax[1] = gmax[1]; in DMGetLocalBoundingBox_DA()
114 lmax[2] = gmax[2]; in DMGetLocalBoundingBox_DA()
H A Ddacorn.c259 PetscErrorCode DMGetLocalBoundingIndices_DMDA(DM dm, PetscReal lmin[], PetscReal lmax[]) in DMGetLocalBoundingIndices_DMDA() argument
268 lmax[0] = info.xs + info.xm - 1; in DMGetLocalBoundingIndices_DMDA()
269 lmax[1] = info.ys + info.ym - 1; in DMGetLocalBoundingIndices_DMDA()
270 lmax[2] = info.zs + info.zm - 1; in DMGetLocalBoundingIndices_DMDA()
/petsc/src/ksp/ksp/impls/cg/pipelcg/ !
H A Dpipelcg.c24 PetscReal lmin, lmax; /* min and max eigen values estimates to compute base shifts */ member
94 …sReal("-ksp_pipelcg_lmax", "Estimate for largest eigenvalue", "", plcg->lmax, &plcg->lmax, &flag)); in KSPSetFromOptions_PIPELCG()
95 if (!flag) plcg->lmax = 0.0; in KSPSetFromOptions_PIPELCG()
125 …etscCall(PetscViewerASCIIPrintf(viewer, " Maximal eigenvalue estimate %g\n", (double)plcg->lmax)); in KSPView_PIPELCG()
129 …scCall(PetscViewerStringSPrintf(viewer, " Maximal eigenvalue estimate %g\n", (double)plcg->lmax)); in KSPView_PIPELCG()
372 PetscReal lmin = plcg->lmin, lmax = plcg->lmax; in KSPSolve_PIPELCG() local
392 …for (i = 0; i < l; ++i) sigma(i) = (0.5 * (lmin + lmax) + (0.5 * (lmax - lmin) * PetscCosReal(PETS… in KSPSolve_PIPELCG()
/petsc/src/dm/interface/ !
H A Ddmcoordinates.c881 PetscErrorCode DMGetLocalBoundingBox_Coordinates(DM dm, PetscReal lmin[], PetscReal lmax[], PetscIn… in DMGetLocalBoundingBox_Coordinates() argument
937 if (lmax) PetscCall(PetscArraycpy(lmax, max, cdim)); in DMGetLocalBoundingBox_Coordinates()
961 PetscErrorCode DMGetLocalBoundingBox(DM dm, PetscReal lmin[], PetscReal lmax[]) in DMGetLocalBoundingBox() argument
965 PetscUseTypeMethod(dm, getlocalboundingbox, lmin, lmax, NULL, NULL); in DMGetLocalBoundingBox()
987 PetscReal lmin[3], lmax[3]; in DMGetBoundingBox() local
994 PetscCall(DMGetLocalBoundingBox(dm, lmin, lmax)); in DMGetBoundingBox()
996 …if (gmax) PetscCallMPI(MPIU_Allreduce(lmax, gmax, cdim, MPIU_REAL, MPIU_MAX, PetscObjectComm((Pets… in DMGetBoundingBox()
/petsc/src/dm/impls/swarm/ !
H A Dswarmpic.c347 PetscReal lmax[] = {PETSC_MIN_REAL, PETSC_MIN_REAL, PETSC_MIN_REAL}; in DMSwarmSetPointsUniformCoordinates() local
369 PetscCall(DMGetLocalBoundingBox(dm, lmin, lmax)); in DMSwarmSetPointsUniformCoordinates()
396 if (xp[b] > lmax[b]) point_inside = PETSC_FALSE; in DMSwarmSetPointsUniformCoordinates()
424 if (xp[b] > lmax[b]) point_inside = PETSC_FALSE; in DMSwarmSetPointsUniformCoordinates()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/ !
H A DDM.pyx1377 cdef PetscReal lmin[3], lmax[3]
1378 CHKERR(DMGetLocalBoundingBox(self.dm, lmin, lmax))
1379 return tuple([(toReal(lmin[i]), toReal(lmax[i]))