Home
last modified time | relevance | path

Searched refs:c0 (Results 1 – 11 of 11) sorted by relevance

/petsc/src/sys/classes/draw/tests/ !
H A Dex7.c15 int c0 = PETSC_DRAW_BASIC_COLORS; in main() local
17 int c1 = (c0 + c2) / 2; in main()
83 PetscCall(PetscDrawTriangle(draw, 0 + 1, 0 + 1, w - 1, 0 + 1, w - 1, h - 1, c0, c1, c2)); in main()
84 PetscCall(PetscDrawTriangle(draw, 0 + 1, 0 + 1, 0 + 1, h - 1, w - 1, h - 1, c0, c1, c2)); in main()
86 PetscCall(PetscDrawTriangle(draw, w / 4, h / 4, w / 2, 3 * h / 4, 3 * w / 4, h / 2, c2, c1, c0)); in main()
/petsc/src/snes/impls/ntrdc/ !
H A Dntrdc.c305 …PetscReal auk, gfnorm, ycnorm, c0, c1, c2, tau, tau_pos, tau_neg, gTBg; /*… in SNESSolve_NEWTONTRDC() local
430 PetscCall(VecNorm(YNtmp, NORM_2, &c0)); /* this could be improved */ in SNESSolve_NEWTONTRDC()
431 c0 = PetscSqr(c0); in SNESSolve_NEWTONTRDC()
436 … tau_pos = (c1 + PetscSqrtReal(PetscSqr(c1) - 4. * c0 * c2)) / (2. * c0); /* quadratic formula */ in SNESSolve_NEWTONTRDC()
437 tau_neg = (c1 - PetscSqrtReal(PetscSqr(c1) - 4. * c0 * c2)) / (2. * c0); in SNESSolve_NEWTONTRDC()
/petsc/src/dm/impls/da/ !
H A Ddageometry.c44 PetscInt dim, M, N, P, c0, c1; in DMGetLocalBoundingBox_DA() local
79 c0 = (xs - Xs); in DMGetLocalBoundingBox_DA()
83 c0 = (xs - Xs) + (ys - Ys) * (Xe - Xs); in DMGetLocalBoundingBox_DA()
87 c0 = (xs - Xs) + (ys - Ys) * (Xe - Xs) + (zs - Zs) * (Xe - Xs) * (Ye - Ys); in DMGetLocalBoundingBox_DA()
94 lmin[d] = PetscRealPart(coor[c0 * dim + d]); in DMGetLocalBoundingBox_DA()
/petsc/src/ts/utils/dmplexlandau/ !
H A Dland_tensors.h129 …tscReal xp, const PetscReal yp, const PetscReal zp, PetscReal U[][3], PetscReal mask, PetscReal c0) in LandauTensor3DRelativistic() argument
131 …const PetscReal x2[3] = {xp, yp, zp}, x1[3] = {a_x1[0], a_x1[1], a_x1[2]}, c02 = c0 * c0, g1 = GAM… in LandauTensor3DRelativistic()
H A Dplexland.c1755 …X_NQND], Jdummy[LANDAU_MAX_NQND * LANDAU_DIM * LANDAU_DIM], c0 = C_0(ctx->v_0), c02 = PetscSqr(c0); in CreateStaticData() local
/petsc/src/snes/tutorials/network/power/ !
H A Dcase9.m60 % 2 startup shutdown n c(n-1) ... c0
/petsc/src/snes/impls/al/ !
H A Dal.c408 PetscReal a0, b0, b1, c0, c1, c2; in SNESSolve_NEWTONAL() local
423c0 = PetscRealPart(coefs1[2]) + psisqLambdaUpdate * data->lambda_update - stepSize * stepSize; in SNESSolve_NEWTONAL()
429 cs = b0 * b0 - 4 * a0 * c0; in SNESSolve_NEWTONAL()
445 PetscQuadraticRoots(a0, b0 + b1, c0 + c1 + c2, &dlambda1, &dlambda2); in SNESSolve_NEWTONAL()
/petsc/src/dm/impls/plex/tests/ !
H A Dex11.c61 PetscInt c0[6] = {2, 3, 6, 7, 9, 11}; in TestEmptyStrata() local
101 PetscCall(DMPlexSetCone(dm, 0, c0)); in TestEmptyStrata()
/petsc/src/snes/impls/tr/ !
H A Dtr.c694 PetscReal c0, c1, c2, tau = 0.0, tpos, tneg; in SNESSolve_NEWTONTR() local
702 PetscCall(VecNorm(Y, NORM_2, &c0)); in SNESSolve_NEWTONTR()
704 c0 = PetscSqr(c0); in SNESSolve_NEWTONTR()
706 PetscQuadraticRoots(c0, 2 * c1, c2, &tneg, &tpos); in SNESSolve_NEWTONTR()
/petsc/src/ts/tutorials/ !
H A Dex11.h588 static PetscScalar s, c0, p0, r0, u0, w0, x0, x2, ri, cx, sgn0, wsp0, gasc1, gasc2, gasc3, gasc4; in riemannsolver() local
625 c0 = PetscSqrtScalar(*gam * p0 / r0); in riemannsolver()
635 wsp0 = u0 + sgn0 * c0; in riemannsolver()
644 ri = u0 - sgn0 * 2. * gasc4 * c0; in riemannsolver()
/petsc/share/petsc/datafiles/meshes/ !
H A Dtestcase3D.cas2332 (dpm/spray-suite/madabhushi-c0 3.44)
9074 d ab c0 28 29 31
9180 28 27 bf c0 31 0
9182 29 28 c0 c1 29 0
9216 ab c0 bf ac 31 0
9217 aa c1 c0 ab 29 0
9587 (c0 . 0)