| /petsc/src/ts/tests/ |
| H A D | ex15.c | 72 f[0] = PetscExpScalar(u[0]) * udot[0] + PetscExpScalar(u[0]); in IFunction_Nonconservative() 73 f[1] = PetscExpScalar(u[1]) * udot[1] - PetscExpScalar(u[0]); in IFunction_Nonconservative() 91 f[0] = cdot[0] + PetscExpScalar(u[0]); in IFunction_TransientVar() 92 f[1] = cdot[1] - PetscExpScalar(u[0]); in IFunction_TransientVar()
|
| H A D | ex21.c | 64 f[j][i] = ut - uxx - uyy - lambda * PetscExpScalar(u); in FormIFunctionLocal() 108 v[k] = shift + 2.0 / (hx * hx) + 2.0 / (hy * hy) - lambda * PetscExpScalar(x[j][i]); in FormIJacobianLocal()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex99.c | 149 ff[0] = 8. * PetscExpScalar(-4. * (xx[0] - 2.) * (xx[0] - 2.)) * (xx[0] - 2.) + 2. * xx[0]; in FormFunction() 174 …A[0] = 8. * ((xx[0] - 2.) * (PetscExpScalar(-4. * (xx[0] - 2.) * (xx[0] - 2.)) * -8. * (xx[0] - 2.… in FormJacobian()
|
| H A D | ex30.c | 436 …result = PetscRealPart(difn.A * PetscExpScalar((difn.Estar + P * difn.Vstar) / R / (T + 273.0)) / … in Viscosity() 441 …result = PetscRealPart(disl.A * PetscExpScalar((disl.Estar + P * disl.Vstar) / disl.n / R / (T + 2… in Viscosity() 446 v1 = difn.A * PetscExpScalar((difn.Estar + P * difn.Vstar) / R / (T + 273.0)) / param->eta0; in Viscosity() 447 …v2 = disl.A * PetscExpScalar((disl.Estar + P * disl.Vstar) / disl.n / R / (T + 273.0)) * strain_po… in Viscosity() 475 TS = param->potentialT * TInterp(x, i, j - 1) * PetscExpScalar((j - 1.0) * dz * z_scale); in XMomentumResidual() 477 else TN = param->potentialT * TInterp(x, i, j) * PetscExpScalar(j * dz * z_scale); in XMomentumResidual() 478 TW = param->potentialT * x[j][i].T * PetscExpScalar((j - 0.5) * dz * z_scale); in XMomentumResidual() 479 TE = param->potentialT * x[j][i + 1].T * PetscExpScalar((j - 0.5) * dz * z_scale); in XMomentumResidual() 528 TN = param->potentialT * x[j + 1][i].T * PetscExpScalar((j + 0.5) * dz * z_scale); in ZMomentumResidual() 529 TS = param->potentialT * x[j][i].T * PetscExpScalar((j - 0.5) * dz * z_scale); in ZMomentumResidual() [all …]
|
| H A D | ex47cu.cu | 142 else ff[i] = (2.0 * xx[i] - xx[i - 1] - xx[i + 1]) / hx - hx * PetscExpScalar(xx[i]); in ComputeFunction() 171 PetscCall(MatSetValue(J, i, i, 2.0 / hx - hx * PetscExpScalar(xx[i]), INSERT_VALUES)); in ComputeJacobian()
|
| H A D | ex55k.kokkos.cxx | 105 fv(j, i) = uxx + uyy - hx * hy * (lambda * PetscExpScalar(u) + mms_forcing); in FormFunctionLocalVec() 162 update += PetscRealPart(0.5 * (uxux + uyuy) - sc * PetscExpScalar(u)); in FormObjectiveLocalVec() 274 coo_v(p + 2) = 2.0 * (hydhx + hxdhy) - sc * PetscExpScalar(xv(j, i)); in FormJacobianLocalVec()
|
| H A D | ex15.c | 431 if (sc) eu = PetscExpScalar(u); in FormFunctionLocal() 466 f[j][i] = sc * PetscExpScalar(u); in FormFunctionPicardLocal() 527 v[2] = 2.0 * (hydhx + hxdhy) - sc * PetscExpScalar(u); in FormJacobianLocal() 571 v[2] = hxdhy * (newt_N + newt_S) + hydhx * (newt_E + newt_W) - sc * PetscExpScalar(u); in FormJacobianLocal() 604 v[4] = hxdhy * (newt_N + newt_S) + hydhx * (newt_E + newt_W) - sc * PetscExpScalar(u); in FormJacobianLocal() 786 if (sc) eu = PetscExpScalar(u); in NonlinearGS()
|
| H A D | ex5.c | 308 f[j][i] = uxx + uyy - hx * hy * (lambda * PetscExpScalar(u) + mms_forcing); in FormFunctionLocal() 357 lobj += PetscRealPart(0.5 * (uxux + uyuy) - sc * PetscExpScalar(u)); in FormObjectiveLocal() 426 v[k] = 2.0 * (hydhx + hxdhy) - sc * PetscExpScalar(x[j][i]); in FormJacobianLocal() 582 eu = PetscExpScalar(u); in NonlinearGS()
|
| H A D | ex55.c | 251 f[j][i] = uxx + uyy - hx * hy * (lambda * PetscExpScalar(u) + mms_forcing); in FormFunctionLocal() 300 lobj += PetscRealPart(0.5 * (uxux + uyuy) - sc * PetscExpScalar(u)); in FormObjectiveLocal() 369 v[k] = 2.0 * (hydhx + hxdhy) - sc * PetscExpScalar(x[j][i]); in FormJacobianLocal() 526 eu = PetscExpScalar(u); in NonlinearGS()
|
| H A D | ex14.c | 321 f[k][j][i] = u_xx + u_yy + u_zz - sc * PetscExpScalar(u); in FormFunctionLocal() 461 v[3] = 2.0 * (hyhzdhx + hxhzdhy + hxhydhz) - sc * PetscExpScalar(x[k][j][i]); in FormJacobian()
|
| /petsc/src/ksp/ksp/tutorials/ |
| H A D | ex29.c | 120 …array[j][i] = PetscExpScalar(-((PetscReal)i * Hx) * ((PetscReal)i * Hx) / user->nu) * PetscExpScal… in ComputeRHS() 122 …array[j][i] = PetscExpScalar(-((PetscReal)i * Hx) * ((PetscReal)i * Hx) / user->nu) * PetscExpScal… in ComputeRHS()
|
| H A D | ex32.c | 99 …+ xm; i++) array[j][i] = PetscExpScalar(-(((PetscReal)i + 0.5) * Hx) * (((PetscReal)i + 0.5) * Hx)… in ComputeRHS()
|
| /petsc/src/ts/tutorials/multirate/ |
| H A D | ex1.c | 70 u[0] = PetscExpScalar(t / ctx->a); in sol_true() 71 …x->b * t) + ctx->a * ctx->a * ctx->b * PetscSinScalar(ctx->b * t)) * PetscExpScalar(t / ctx->a) / … in sol_true()
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex63.c | 16 for (PetscInt i = 0; i < n; ++i) arr[i] = PetscExpScalar(value); in CheckExp()
|
| H A D | ex64.c | 53 PetscCall(CheckLog(v, n, arr, PetscExpScalar(1.0))); in main()
|
| /petsc/src/ts/tutorials/advection-diffusion-reaction/ |
| H A D | ex3.c | 224 ex1 = PetscExpScalar(-36. * PETSC_PI * PETSC_PI * appctx->d * t); in Solution() 225 ex2 = PetscExpScalar(-4. * PETSC_PI * PETSC_PI * appctx->d * t); in Solution()
|
| /petsc/src/dm/tutorials/ |
| H A D | ex10.c | 59 …for (i = ixs; i < ixs + ixm; i++) gauss_ptr[j][i] = PetscExpScalar(-(xm + i * dx) * (xm + i * dx) … in main()
|
| /petsc/src/ts/tutorials/ |
| H A D | ex1.c | 248 f[row] = -uxx + -uyy + sc * lambda * PetscExpScalar(u); in FormFunction() 296 v[2] = -two * (hydhx + hxdhy) + sc * lambda * PetscExpScalar(x[row]); in FormJacobian()
|
| H A D | ex5.c | 314 ex1 = PetscExpScalar(-36. * PETSC_PI * PETSC_PI * tc); in ExactSolution() 315 ex2 = PetscExpScalar(-4. * PETSC_PI * PETSC_PI * tc); in ExactSolution()
|
| H A D | ex3.c | 351 ex1 = PetscExpScalar(-36. * PETSC_PI * PETSC_PI * tc); in ExactSolution() 352 ex2 = PetscExpScalar(-4. * PETSC_PI * PETSC_PI * tc); in ExactSolution()
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-swig/ |
| H A D | Bratu3D.c | 143 f[k][j][i] = u_xx + u_yy + u_zz - sc*PetscExpScalar(u); in FormFunction() 227 …v[3] = 2.0*(hyhzdhx+hxhzdhy+hxhydhz)-sc*PetscExpScalar(x[k][j][i]);col[3].k=row.k;col[3].j=row.j;c… in FormJacobian()
|
| /petsc/src/binding/petsc4py/demo/legacy/wrap-cython/ |
| H A D | Bratu3Dimpl.c | 147 f[k][j][i] = u_xx + u_yy + u_zz - sc*PetscExpScalar(u); in FormFunction() 234 …v[3] = 2.0*(hyhzdhx+hxhzdhy+hxhydhz)-sc*PetscExpScalar(x[k][j][i]);col[3].k=row.k;col[3].j=row.j;c… in FormJacobian()
|
| /petsc/src/ksp/ksp/tests/ |
| H A D | ex14.c | 392 f[row] = uxx + uyy - sc * PetscExpScalar(u); in ComputeFunction() 493 v[2] = two * (hydhx + hxdhy) - sc * lambda * PetscExpScalar(x[row]); in ComputeJacobian()
|
| /petsc/src/snes/tests/ |
| H A D | ex1.c | 408 f[row] = uxx + uyy - sc * lambda * PetscExpScalar(u); in FormFunction() 470 v[2] = two * (hydhx + hxdhy) - sc * lambda * PetscExpScalar(x[row]); in FormJacobian()
|
| /petsc/src/ts/tutorials/power_grid/ |
| H A D | ex7.c | 187 …/ (PETSC_PI * sigmax * sigmay * PetscSqrtScalar(1.0 - rho * rho))) * PetscExpScalar(-0.5 / (1 - rh… in ini_bou() 281 …lar((user->lambda * user->ws) / (2 * user->H), 2) * user->q * (1.0 - PetscExpScalar(-t / user->lam… in IFunction() 331 …lar((user->lambda * user->ws) / (2 * user->H), 2) * user->q * (1.0 - PetscExpScalar(-t / user->lam… in IJacobian()
|