Home
last modified time | relevance | path

Searched refs:pow (Results 1 – 16 of 16) sorted by relevance

/petsc/src/sys/tests/output/
H A Dex25_1.out6 pow(0.500000,2.000000) = 0.250000
31 pow(0.500000,2.000000) = 0.250000
/petsc/src/ksp/pc/impls/deflation/
H A Ddeflationspace.c65 len = pow(2, size); in PCDeflationGetSpaceHaar()
67 val = 1. / pow(2, size / 2.); in PCDeflationGetSpaceHaar()
89 val = 1. / pow(pow(2, len), 0.5); in PCDeflationGetSpaceHaar()
/petsc/src/dm/dt/interface/
H A Ddtaltv.c786 PetscErrorCode PetscDTAltVStar(PetscInt N, PetscInt k, PetscInt pow, const PetscReal *w, PetscReal … in PetscDTAltVStar() argument
793 pow = pow % 4; in PetscDTAltVStar()
794 pow = (pow + 4) % 4; /* make non-negative */ in PetscDTAltVStar()
797 if (pow & 1) { in PetscDTAltVStar()
804 if (pow > 1 && ((k * (N - k)) & 1)) { in PetscDTAltVStar()
811 if (pow % 2) { in PetscDTAltVStar()
812 PetscInt l = (pow == 1) ? k : N - k; in PetscDTAltVStar()
826 if (pow > 1 && (k * (N - k)) % 2) { in PetscDTAltVStar()
/petsc/src/dm/impls/moab/
H A Ddmmbmg.cxx301 …factor = std::pow(2.0 /*degree_P_for_refinement*/, (dmbc->hlevel - dmbp->hlevel) * dmbp->dim * 1.0… in DMCreateInterpolation_Moab()
366 …for (unsigned k = 0; k < 3; k++) values_phi[tp] += std::pow(pcoords[tp * 3 + k] - ccoords[k + tc *… in DMCreateInterpolation_Moab()
371 values_phi[tp] = std::pow(values_phi[tp], -1.0); in DMCreateInterpolation_Moab()
H A Ddmmbutil.cxx528 n = pow(npts, dim); in DMMoabCreateBoxMesh()
/petsc/src/ts/tutorials/power_grid/stability_9bus/
H A Dex9busopt.c104 PetscInt pow; /* power coefficient used in the cost function */ member
954 … 3] / (2. * PETSC_PI) - user->freq_u, user->freq_l - xgen[idx + 3] / (2. * PETSC_PI))), user->pow); in CostIntegrand()
987 …user->freq_u) dgen[idx + 3] = user->pow * PetscPowScalarInt(xgen[idx + 3] / (2. * PETSC_PI) - user… in DRDUJacobianTranspose()
988 …user->freq_l) dgen[idx + 3] = user->pow * PetscPowScalarInt(user->freq_l - xgen[idx + 3] / (2. * P… in DRDUJacobianTranspose()
1083 user.pow = 2; in main()
1086 PetscCall(PetscOptionsInt("-pow", "", "", user.pow, &user.pow, NULL)); in main()
H A Dex9busoptfd.c94 PetscInt pow; /* power coefficient used in the cost function */ member
789 … 3] / (2. * PETSC_PI) - user->freq_u, user->freq_l - xgen[idx + 3] / (2. * PETSC_PI))), user->pow); in CostIntegrand()
877 user.pow = 2; in main()
880 PetscCall(PetscOptionsInt("-pow", "", "", user.pow, &user.pow, NULL)); in main()
/petsc/src/mat/impls/aij/seq/lusol/
H A Dlusol.c161 #define Factorization_Pivot_Tolerance pow(2.2204460492503131E-16, 2.0 / 3.0)
/petsc/src/snes/tutorials/
H A Dex3k.kokkos.cxx305 FF(i) = 6.0 * xp + pow(xp + 1.e-12, 6.0); /* +1.e-12 is to prevent 0^6 */ in main()
H A Dex69.c255 t8 = pow(km + kn, 0.2e1); in SolKxSolution()
257 t16 = pow(km - kn, 0.2e1); in SolKxSolution()
262 t5 = pow(t2 + t3, 0.2e1); in SolKxSolution()
/petsc/include/
H A Dpetscmath.h65 #define PetscPowReal(a, b) pow(a, b)
220 …#define PetscPowComplex(a, b) petsccomplexlib::pow(static_cast<PetscComplex>(a), static_cas…
/petsc/src/ts/tests/
H A Dex27.c178 if (user->epsilon < 0.) user->epsilon = 0.64 * pow(user->h, 1.98); in CreateParticles()
/petsc/src/binding/petsc4py/test/
H A Dtest_dmplex.py227 metric2.scale(pow(target, 2.0 / self.DIM))
/petsc/src/ts/tutorials/
H A Dex11.h35 #define PetscPowScalar(a, b) pow(a, b)
/petsc/src/ts/utils/dmplexlandau/
H A Dplexland.c1509 maps[grid].num_face = (PetscInt)(pow(Nq, 1. / ((double)dim)) + .001); // Q in CreateStaticData()
1510 … maps[grid].num_face = (PetscInt)(pow(maps[grid].num_face, (double)(dim - 1)) + .001); // Q^2 in CreateStaticData()
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas2957 (melt/pow-index 2.)
4425 (mp/visc-disp/pow-rho 0.5)
4426 (mp/visc-disp/pow-sm 2.)