| /petsc/src/snes/tests/ |
| H A D | ex20.c | 42 PetscReal beta, bm1, coef; /* nonlinear diffusivity parameterizations */ member 74 user.coef = user.beta / 2.0; in main() 451 PetscScalar tleft, tright, beta, td, ad, dd, tu, au, du, v[7], bm1, coef; in FormJacobian() local 471 coef = user->coef; in FormJacobian() 495 gw = coef * bw * (t0 - tw); in FormJacobian() 502 ge = coef * be * (te - t0); in FormJacobian() 509 gs = coef * bs * (t0 - ts); in FormJacobian() 516 gn = coef * bn * (tn - t0); in FormJacobian() 523 gd = coef * bd * (t0 - td); in FormJacobian() 530 gu = coef * bu * (tu - t0); in FormJacobian() [all …]
|
| /petsc/src/snes/tutorials/ |
| H A D | ex18.c | 42 PetscReal beta, bm1, coef; /* nonlinear diffusivity parameterizations */ member 70 user.coef = user.beta / 2.0; in main() 298 PetscScalar tleft, tright, beta, bm1, coef; in FormJacobian() local 316 coef = user->coef; in FormJacobian() 337 gw = coef * bw * (t0 - tw); in FormJacobian() 344 ge = coef * be * (te - t0); in FormJacobian() 351 gs = coef * bs * (t0 - ts); in FormJacobian() 358 gn = coef * bn * (tn - t0); in FormJacobian() 384 gw = coef * bw * (t0 - tw); in FormJacobian() 391 ge = coef * be * (te - t0); in FormJacobian() [all …]
|
| H A D | ex7.c | 406 PetscReal *coef, nrm; in TestFreeField() local 442 PetscCall(PetscMalloc1(dim, &coef)); in TestFreeField() 444 coef[d] = 2. * PETSC_PI / extent[d]; in TestFreeField() 465 tmp1 += 2. * PetscSqr(PetscSinReal(0.5 * coef[d] * idx)); in TestFreeField() 466 … for (PetscInt i = 0; i < dof; ++i) tmp[i] = PETSC_i * PetscSinReal(coef[d] * idx) * psih[off + i]; in TestFreeField() 513 PetscCall(PetscFree(coef)); in TestFreeField()
|
| /petsc/src/ts/utils/dmplexlandau/ |
| H A D | land_tensors.h | 16 PETSC_DEVICE_FUNC_DECL static PetscReal polevl_10(PetscReal x, const PetscReal coef[]) in polevl_10() argument 20 ans = coef[0]; in polevl_10() 21 for (i = 1; i < 11; i++) ans = ans * x + coef[i]; in polevl_10() 24 PETSC_DEVICE_FUNC_DECL static PetscReal polevl_9(PetscReal x, const PetscReal coef[]) in polevl_9() argument 28 ans = coef[0]; in polevl_9() 29 for (i = 1; i < 10; i++) ans = ans * x + coef[i]; in polevl_9()
|
| H A D | plexland.c | 171 PetscScalar *coef = NULL; in LandauFormJacobian_Internal() local 172 PetscCall(DMPlexVecGetClosure(ctx->plex[grid], section[grid], locX2, ei, NULL, &coef)); in LandauFormJacobian_Internal() 173 …PetscCall(PetscMemcpy(cellClosure_it, coef, Nb * Nf[grid] * sizeof(*cellClosure_it))); /* change i… in LandauFormJacobian_Internal() 174 … PetscCall(DMPlexVecRestoreClosure(ctx->plex[grid], section[grid], locX2, ei, NULL, &coef)); in LandauFormJacobian_Internal() 251 PetscScalar *coef, coef_buff[LANDAU_MAX_SPECIES * LANDAU_MAX_NQND]; in LandauFormJacobian_Internal() local 255 …coef = &cellClosure[b_id * IPf_sz_glb + ipf_offset[grid] + loc_elem * Nb * loc_Nf]; // this is con… in LandauFormJacobian_Internal() 257 coef = coef_buff; in LandauFormJacobian_Internal() 263 coef[f * Nb + b] = xdata[idx + moffset]; in LandauFormJacobian_Internal() 266 coef[f * Nb + b] = 0; in LandauFormJacobian_Internal() 270 coef[f * Nb + b] += scale * xdata[id + moffset]; in LandauFormJacobian_Internal() [all …]
|
| /petsc/src/ts/utils/dmplexlandau/kokkos/ |
| H A D | landau.kokkos.cxx | 524 PetscScalar *coef; in LandauKokkosJacobian() 528 …coef = &d_vertex_f[b_id * IPf_sz_glb + d_ipf_offset[grid] + loc_elem * Nb * loc_Nf]; // closure an… in LandauKokkosJacobian() 530 coef = s_coef_k.data(); in LandauKokkosJacobian() 537 …coef[f * Nb + b] = d_vertex_f[idx + moffset]; // xarray data, not IP, need raw array to deal with … in LandauKokkosJacobian() 540 coef[f * Nb + b] = 0; in LandauKokkosJacobian() 544 if (id >= 0) coef[f * Nb + b] += scale * d_vertex_f[id + moffset]; in LandauKokkosJacobian() 561 d_fdf_k(b_id, 0, idx) += Bq[b] * PetscRealPart(coef[f * Nb + b]); in LandauKokkosJacobian() 562 … for (d = 0; d < dim; ++d) refSpaceDer[d] += Dq[b * dim + d] * PetscRealPart(coef[f * Nb + b]); in LandauKokkosJacobian()
|
| /petsc/src/ksp/ksp/interface/ |
| H A D | iterativ.c | 1104 scale->coef = 1.0; in KSPMonitorDynamicToleranceCreate() 1133 scale->coef = coeff; in KSPMonitorDynamicToleranceSetCoefficient() 1189 inner_rtol = PetscMin(scale->coef * scale->bnrm * outer_rtol / fnorm, 0.999); in KSPMonitorDynamicTolerance()
|
| /petsc/include/petsc/private/ |
| H A D | kspimpl.h | 199 PetscReal coef; member
|
| /petsc/src/ts/tutorials/ |
| H A D | ex76.c | 809 const PetscReal coef = mu / Re; in f1_conduct_v() local 818 …for (d = 0; d < dim; ++d) f1[c * dim + d] += coef * (u_x[uOff_x[VEL] + c * dim + d] + u_x[uOff_x[V… in f1_conduct_v() 820 f1[c * dim + c] -= 2.0 * coef / 3.0 * u_div; in f1_conduct_v()
|
| /petsc/share/petsc/datafiles/meshes/ |
| H A D | testcase3D.cas | 5780 (mp/pcor-coef-sym? #t) 7885 (trans-one-eqn-tke-term-coef 1.) 8045 (turb-wf-ustar-limiter-coef 0.1) 8712 (cpld/hsn/adaptive-laplace-dissipation-coef-max 0.5) 8713 (cpld/hsn/adaptive-laplace-dissipation-coef-min 0.) 8728 (cpld/hsn/laplace-dissipation-coef 0.) 9610 (skjaeveland-nw-pc-coef . 900000.) 9612 (skjaeveland-wet-pc-coef . 900000.) 9956 (mom-accom-coef . 1) 9957 (therm-accom-coef . 1) [all …]
|