Home
last modified time | relevance | path

Searched refs:PetscPowRealInt (Results 1 – 25 of 29) sorted by relevance

12

/petsc/src/dm/impls/plex/tests/
H A Dex73.c27 u[0] = PetscPowRealInt(x[0], n) * PetscPowRealInt(x[1], n - 1); in solenoidal_2d()
28 u[1] = -PetscPowRealInt(x[0], n - 1) * PetscPowRealInt(x[1], n); in solenoidal_2d()
33 u[0] = PetscPowRealInt(x[0], n) * PetscPowRealInt(x[1], n - 1) * PetscPowRealInt(x[2], n - 1); in solenoidal_3d()
34 …u[1] = -2. * PetscPowRealInt(x[0], n - 1) * PetscPowRealInt(x[1], n) * PetscPowRealInt(x[2], n - 1… in solenoidal_3d()
35 u[2] = PetscPowRealInt(x[0], n - 1) * PetscPowRealInt(x[1], n - 1) * PetscPowRealInt(x[2], n); in solenoidal_3d()
61 for (PetscInt d = 0; d < dim; ++d) u[d] = PetscPowRealInt(x[d], n + 1); in source_totaldeg()
/petsc/src/dm/dt/tests/
H A Dex3.c134 …if (PetscAbsReal(integral - analytic[f]) > PetscMax(epsilon, PetscPowRealInt(10.0, -digits)) || Pe… in main()
143 …if (PetscAbsReal(integral - analytic[f]) > PetscPowRealInt(10.0, -digits)) PetscCall(PetscPrintf(P… in main()
/petsc/src/ts/impls/implicit/glle/
H A Dglle.c29 return PetscPowRealInt(PetscRealPart(c), p) / Factorial(p); in CPowF()
410PetscPowRealInt(ratio, i) * sc->b[i * s + j] + (PetscPowRealInt(ratio, i) - PetscPowRealInt(ratio,… in TSGLLECompleteStep_RescaleAndModify()
414PetscPowRealInt(ratio, i) * sc->v[i * r + j] + (PetscPowRealInt(ratio, i) - PetscPowRealInt(ratio,… in TSGLLECompleteStep_RescaleAndModify()
421 for (j = 0; j < s; j++) brow[j] = h * PetscPowRealInt(ratio, p + 1) * sc->phi[0 * s + j]; in TSGLLECompleteStep_RescaleAndModify()
423 for (j = 0; j < r; j++) vrow[j] = PetscPowRealInt(ratio, p + 1) * sc->psi[0 * r + j]; in TSGLLECompleteStep_RescaleAndModify()
965 for (i = 1; i < scheme->r; i++) PetscCall(VecScale(X[i], PetscPowRealInt(0.5, i))); in TSSolve_GLLE()
/petsc/src/ksp/ksp/tutorials/
H A Dex42.c1170 v[0] = PetscPowRealInt(z, 3) * PetscExpReal(y) * PetscSinReal(PETSC_PI * x); in evaluate_MS_FrankKamentski()
1172PetscPowRealInt(z, 2) * (PetscCosReal(2.0 * PETSC_PI * x) * PetscExpReal(-y) * PetscSinReal(PETSC_… in evaluate_MS_FrankKamentski()
1174 if (p) *p = PetscPowRealInt(x, 2) + PetscPowRealInt(y, 2) + PetscPowRealInt(z, 2); in evaluate_MS_FrankKamentski()
1195PetscPowRealInt(PETSC_PI, 2) * PetscCosReal(PETSC_PI * y) * PetscExpReal(-y) * PetscSinReal(2.0 * … in evaluate_MS_FrankKamentski()
1196PetscPowRealInt(PETSC_PI, 2) * PetscCosReal(2.0 * PETSC_PI * x) * PetscExpReal(-y) * PetscSinReal(… in evaluate_MS_FrankKamentski()
1197PetscPowRealInt(z, 2) * (-2.0 * PetscPowRealInt(PETSC_PI, 2) * PetscCosReal(2.0 * PETSC_PI * x) * … in evaluate_MS_FrankKamentski()
H A Dex74.c296 G0[i * nstages + j] = PetscPowRealInt(c[i], j); in RKCreate_Gauss()
297 G1[i * nstages + j] = PetscPowRealInt(c[i], j + 1) / (j + 1); in RKCreate_Gauss()
H A Dex59.c379 i = PetscPowRealInt(3.0 * (dd.p + 1.0), dd.dim); in ComputeSubdomainMatrix()
547 …glldata->A[j][0] = 4.0 * PetscPowRealInt(-1.0, p) / (p * (p + 1.0) * Lpj * (1.0 + glldata->zGL[j])… in GLLStuffs()
/petsc/src/ksp/pc/impls/mg/
H A Dmgadapt.c8 for (c = 0; c < Nc; ++c) u[c] = PetscPowRealInt(coords[0], k); in xfunc()
15 for (c = 0; c < Nc; ++c) u[c] = PetscPowRealInt(coords[1], k); in yfunc()
22 for (c = 0; c < Nc; ++c) u[c] = PetscPowRealInt(coords[2], k); in zfunc()
/petsc/src/dm/tutorials/
H A Dex26.c51 …for (s = 0; s < n; s++) g += weights[s] * PetscPowRealInt(sqrt(2) * sigma * zeros[s] + mu, moment); in main()
/petsc/src/ts/tests/
H A Dex25.c126 dt *= PetscPowRealInt(0.2, cycle); /* Shrink the time step in convergence study. */ in Brusselator()
128 …PetscCall(TSSetTolerances(ts, 1e-3 * PetscPowRealInt(0.5, cycle), NULL, 1e-3 * PetscPowRealInt(0.5… in Brusselator()
H A Dex4.c191 f = PetscExpReal(-20.0 * (PetscPowRealInt(x - 0.5, 2) + PetscPowRealInt(y - 0.5, 2))); in f_ini()
/petsc/src/sys/classes/random/tests/
H A Dex3.c58 lambda = PetscPowRealInt(2., 3 * log2n - (2 + log2d * t)); in main()
/petsc/src/ts/tutorials/
H A Dex10.c1030 rd->Eapplied = 4 * rd->unit.Joule / PetscPowRealInt(rd->unit.meter, 3); in RDCreate()
1046 rd->Eapplied = 7.503e6 * rd->unit.Joule / PetscPowRealInt(rd->unit.meter, 3); in RDCreate()
1081 …rd->K_R = 7.44e18 * PetscPowRealInt(meter, 5) * PetscPowReal(Kelvin, 3.5) * PetscPowRea… in RDCreate()
1082 …rd->K_p = 2.33e20 * PetscPowRealInt(meter, 5) * PetscPowReal(Kelvin, 3.5) * PetscPowRea… in RDCreate()
1089 …rd->sigma_b = 5.67e-8 * Watt * PetscPowRealInt(meter, -2) * PetscPowRealInt(Kelvin, -4); /*… in RDCreate()
H A Dex22.c207 u0t[0] = 1.0 - PetscPowRealInt(PetscSinReal(12 * t), 4); in FormRHSFunction()
H A Dex53.c1136 …Real(R_star * PetscSqrtReal(x_n))) + (1.0 - nu) * (1.0 - 2.0 * nu) * PetscPowRealInt(R_star, 3) * … in cryer_3d_u()
1184 …_star * PetscSqrtReal(x_n))) + 5.0 * (1.0 - nu) * (1.0 - 2.0 * nu) * PetscPowRealInt(R_star, 2) * … in cryer_3d_eps()
1191 …_star * PetscSqrtReal(x_n))) + 5.0 * (1.0 - nu) * (1.0 - 2.0 * nu) * PetscPowRealInt(R_star, 2) * … in cryer_3d_eps()
/petsc/src/dm/impls/plex/tutorials/
H A Dex10.c67 ratio = PetscPowRealInt(0.5, dim); in AdaptMesh()
/petsc/src/ts/impls/implicit/irk/
H A Dirk.c108 G0[i * nstages + j] = PetscPowRealInt(gauss_c[i], j); in TSIRKCreate_Gauss()
109 G1[i * nstages + j] = PetscPowRealInt(gauss_c[i], j + 1) / (j + 1); in TSIRKCreate_Gauss()
/petsc/src/snes/tutorials/
H A Dex62.c224 …f0[d] = -2.0 * PETSC_PI * PetscCosReal(2.0 * PETSC_PI * x[d]) + mu * PetscPowRealInt(PETSC_PI, 3) … in f0_trig_u()
H A Dex30.c1397 …mag_u = 1.0 - PetscPowRealInt(1.0 - PetscMax(PetscMin(PetscRealPart(x[j][i - 1].u) / param->cb… in FormFunctionLocal()
1402 …mag_w = 1.0 - PetscPowRealInt(1.0 - PetscMax(PetscMin(PetscRealPart(x[j - 1][i].w) / param->sb… in FormFunctionLocal()
H A Dex12.c259 u[0] = mask ? 1.0 : PetscPowRealInt(10.0, -k); in checkerboardCoeff()
/petsc/include/
H A Dpetscmath.h1073 static inline PetscReal PetscPowRealInt(PetscReal base, PetscInt power) in PetscPowRealInt() function
/petsc/src/dm/impls/plex/transform/impls/refine/bl/
H A Dplexrefbl.c90 PetscReal d = (bl->r - 1.) / (PetscPowRealInt(bl->r, n + 1) - 1.); in DMPlexTransformSetUp_BL()
/petsc/src/dm/impls/swarm/tests/
H A Dex2.c38 for (d = 0; d < dim; ++d) u[0] *= PetscSqr(x[d]) * PetscSqr(ctx->L[d]) - PetscPowRealInt(x[d], 4); in x2_x4()
H A Dex6.c256 for (d = 0; d < dim; ++d) pE[d] += rpq[d] / PetscPowRealInt(r, 3); in ComputeFieldAtParticles_Coulomb()
/petsc/src/mat/impls/aij/seq/mkl_pardiso/
H A Dmkl_pardiso.c597 …if (mat_mkl_pardiso->iparm[18] > 0) PetscCall(PetscLogFlops(PetscPowRealInt(10., 6) * mat_mkl_pard… in MatFactorNumeric_MKL_PARDISO()
/petsc/src/snes/utils/dm/
H A Ddmadapt.c1496 …N = adaptor->Nadapt >= 0 ? adaptor->Nadapt : PetscPowRealInt(adaptor->refinementFactor, dim) * ((P… in DMAdaptorAdapt_Sequence_Private()

12