Home
last modified time | relevance | path

Searched refs:pr (Results 1 – 13 of 13) sorted by relevance

/petsc/src/ksp/ksp/impls/cg/pipecg2/
H A Dpipecg2.c84 PetscScalar *PETSC_RESTRICT px, *PETSC_RESTRICT pr, *PETSC_RESTRICT pz, *PETSC_RESTRICT pw; in VecMergedOpsShort_Private() local
91 PetscCall(VecGetArray(vr, (PetscScalar **)&pr)); in VecMergedOpsShort_Private()
127 pr[j] = pr[j] - alpha0 * ps[j]; in VecMergedOpsShort_Private()
146 pr[j] = pr[j] - alpha1 * ps[j]; in VecMergedOpsShort_Private()
159 lambda[10] += pr[j] * PetscConj(pu[j]); in VecMergedOpsShort_Private()
182 pr[j] = pr[j] - alpha0 * ps[j]; in VecMergedOpsShort_Private()
201 pr[j] = pr[j] - alpha1 * ps[j]; in VecMergedOpsShort_Private()
214 lambda[10] += pr[j] * PetscConj(pu[j]); in VecMergedOpsShort_Private()
216 lambda[12] += pr[j] * PetscConj(pr[j]); in VecMergedOpsShort_Private()
237 pr[j] = pr[j] - alpha0 * ps[j]; in VecMergedOpsShort_Private()
[all …]
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscopt.pxi179 cdef getpair(prefix, name, const char **pr, const char **nm): argument
192 pr[0] = p
197 cdef const char *pr = NULL
199 cdef object unused = getpair(prefix, name, &pr, &nm)
200 if otype == OPT_BOOL : return getopt_Bool (opt, pr, nm, deft)
201 if otype == OPT_BOOLARRAY : return getopt_BoolArray (opt, pr, nm, deft)
202 if otype == OPT_INT : return getopt_Int (opt, pr, nm, deft)
203 if otype == OPT_INTARRAY : return getopt_IntArray (opt, pr, nm, deft)
204 if otype == OPT_REAL : return getopt_Real (opt, pr, nm, deft)
205 if otype == OPT_REALARRAY : return getopt_RealArray (opt, pr, nm, deft)
[all …]
H A DOptions.pyx146 cdef const char *pr = NULL
148 cdef object unused = getpair(self.prefix, name, &pr, &nm)
150 CHKERR(PetscOptionsHasName(self.opt, pr, nm, &flag))
179 cdef const char *pr = NULL
181 cdef object unused = getpair(self.prefix, name, &pr, &nm)
182 if pr == NULL:
185 option = '-%s%s' % (bytes2str(pr), bytes2str(&nm[1]))
213 cdef const char *pr = NULL
215 cdef object unused = getpair(self.prefix, name, &pr, &nm)
216 if pr == NULL:
[all …]
H A DDM.pyx1330 cdef PetscBool pr = project
1331 CHKERR(DMSetCoordinateDisc(self.dm, disc.fe, clocalized, pr))
/petsc/src/ts/tutorials/
H A Dex11.h404 …alar *rl, PetscScalar *pl, PetscScalar *uxl, PetscScalar *rr, PetscScalar *pr, PetscScalar *uxr, P… in riem1mdt() argument
435 cr = PetscSqrtScalar(*gamr * *pr / *rr); in riem1mdt()
440 *pstar = (wl * *pr + wr * *pl) / (wl + wr); in riem1mdt()
442 pst = *pl / *pr; in riem1mdt()
446 pst = *pr / *pl; in riem1mdt()
451 if (PetscRealPart(*pr) < PetscRealPart(*pl)) { in riem1mdt()
479 d__1 = *pstar / *pr; in riem1mdt()
502 d__1 = *pstar / *pr; in riem1mdt()
525 pst = *pstar / *pr; in riem1mdt()
527 …zr = *pr / cr * PetscSqrtScalar(*gamr * 2. * (*gamr - 1. + (*gamr + 1.) * pst)) * (*gamr - 1. … in riem1mdt()
[all …]
/petsc/src/dm/impls/da/
H A Ddadd.c38 PetscInt mr = 0, nr = 0, pr = 0; in DMDACreatePatchIS() local
102 pr = 0; in DMDACreatePatchIS()
166 if (pr == p - 1) { in DMDACreatePatchIS()
169 pr = 0; in DMDACreatePatchIS()
171 pr++; in DMDACreatePatchIS()
173 pe += lz[pr]; in DMDACreatePatchIS()
/petsc/src/dm/impls/plex/tutorials/
H A Dex11.c285 PetscInt pNew, opNew, oo, pr, fo; in CheckSubcells() local
339 PetscCall(DMPlexTransformGetSubcellOrientation(tr, ct, p, oi, ctNew, r, 0, &pr, &fo)); in CheckSubcells()
341 …PetscCheck(pr == ro, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Choose wrong replica %" PetscInt_FMT " != %… in CheckSubcells()
/petsc/src/dm/impls/plex/transform/interface/
H A Dplextransform.c1464 …PetscInt pr = -1; /* Replica number of pp that produces … in DMPlexTransformGetCone_Internal() local
1489 pr = rcone[coff++]; in DMPlexTransformGetCone_Internal()
1491 PetscCall(DMPlexTransformGetSubcellOrientation(tr, pct, pp, fn ? po : o, ft, pr, fo, &pr, &fo)); in DMPlexTransformGetCone_Internal()
1492 PetscCall(DMPlexTransformGetTargetPoint(tr, pct, ft, pp, pr, &coneNew[c])); in DMPlexTransformGetCone_Internal()
/petsc/src/ts/tutorials/hamiltonian/
H A Dex3.c1273 PetscBool pr = user->checkVRes > 1 ? PETSC_TRUE : PETSC_FALSE; in RHSFunctionV() local
1277 if (pr) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "step: %" PetscInt_FMT "\n", step)); in RHSFunctionV()
1279 …if (pr) PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "Residual: %.12g %.12g\n", (double)Pet… in RHSFunctionV()
1282 if (pr) PetscCall(PetscSynchronizedFlush(PETSC_COMM_WORLD, PETSC_STDOUT)); in RHSFunctionV()
H A Dex4.c1634 const PetscScalar pr = u[uOff[2]]; in f0_energy() local
1640 … f0[0] -= 4. * u[uOff[1] + d] * u_x[uOff_x[0] + d] * pr / PetscSqr(n); // -4 (p . grad n) pr / n^2 in f0_energy()
1643 f0[0] += 4. * divp * pr / n; // 4 div p pr / n in f0_energy()
2602 PetscBool pr = ctx->checkVRes > 1 ? PETSC_TRUE : PETSC_FALSE; in RHSFunctionV() local
2606 if (pr) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "step: %" PetscInt_FMT "\n", step)); in RHSFunctionV()
2608 …if (pr) PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "Residual: %.12g %.12g\n", (double)Pet… in RHSFunctionV()
2611 if (pr) PetscCall(PetscSynchronizedFlush(PETSC_COMM_WORLD, PETSC_STDOUT)); in RHSFunctionV()
H A Dex2.c1997 PetscBool pr = ctx->checkVRes > 1 ? PETSC_TRUE : PETSC_FALSE; in RHSFunctionV() local
2001 if (pr) PetscCall(PetscPrintf(PETSC_COMM_WORLD, "step: %" PetscInt_FMT "\n", step)); in RHSFunctionV()
2003 …if (pr) PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "Residual: %.12g %.12g\n", (double)Pet… in RHSFunctionV()
2006 if (pr) PetscCall(PetscSynchronizedFlush(PETSC_COMM_WORLD, PETSC_STDOUT)); in RHSFunctionV()
/petsc/doc/manual/
H A Dtao.md1599 using the command line argument `-tao_cg_type <fr,pr,prp,hs,dy>`,
1867 `-tao_bncg_type <gd,fr,pr,prp,hs,dy,hz,dk,kd,ssml_bfgs,ssml_dfp,ssml_brdn>`,
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2056 (dpm/variable-pr-number-in-boiling? #t)
6215 (udf/pr-rate-fcn "none")
7705 (allow-all-pr-dis-schemes? #f)
8215 (les-dynamic-pr-num-smooths 1)
8216 (les-dynamic-pr-min 0.01)
8217 (les-dynamic-pr-max 10.)