Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/network/
H A DpipeImpls.c65 PetscScalar qavg, xold_i, ha, hb, qa, qb; in PipeIFunctionLocal_Lax() local
78 hb = xold[i + 1].h; in PipeIFunctionLocal_Lax()
85 xold_i = 0.5 * (ha + hb); in PipeIFunctionLocal_Lax()
/petsc/src/dm/impls/da/hypre/
H A Dmhyp.h17 HYPRE_StructVector hb, hx; member
H A Dmhyp.c186 PetscCallHYPRE(HYPRE_StructVectorCreate(ex->hcomm, ex->hgrid, &ex->hb)); in MatSetUp_HYPREStruct()
188 PetscCallHYPRE(HYPRE_StructVectorInitialize(ex->hb)); in MatSetUp_HYPREStruct()
190 PetscCallHYPRE(HYPRE_StructVectorAssemble(ex->hb)); in MatSetUp_HYPREStruct()
251 PetscCallHYPRE(HYPRE_StructVectorSetConstantValues(mx->hb, 0.0)); in MatMult_HYPREStruct()
253 PetscCallHYPRE(HYPRE_StructVectorSetBoxValues(mx->hb, hlower, hupper, (HYPRE_Complex *)xx)); in MatMult_HYPREStruct()
255 PetscCallHYPRE(HYPRE_StructVectorAssemble(mx->hb)); in MatMult_HYPREStruct()
256 PetscCallHYPRE(HYPRE_StructMatrixMatvec(1.0, mx->hmat, mx->hb, 0.0, mx->hx)); in MatMult_HYPREStruct()
288 PetscCallHYPRE(HYPRE_StructVectorDestroy(ex->hb)); in MatDestroy_HYPREStruct()
/petsc/src/tao/complementarity/tutorials/
H A Dminsurf1.c265 PetscReal hl, hr, ht, hb, hc, htl, hbr; in FormJacobian() local
338hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in FormJacobian()
348 hb /= 2.0; in FormJacobian()
355 v[k] = hb; in FormJacobian()
/petsc/src/snes/tutorials/
H A Dex58.c278 PetscScalar hl, hr, ht, hb, hc, htl, hbr; in FormJacobian() local
363hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in FormJacobian()
373 hb /= 2.0; in FormJacobian()
383 v[k] = hb; in FormJacobian()
H A Dex4.c310 PetscScalar hl, hr, ht, hb, hc, htl, hbr; in FormJacobianLocal() local
374hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in FormJacobianLocal()
384 hb /= 2.0; in FormJacobianLocal()
394 v[k] = hb; in FormJacobianLocal()
/petsc/src/tao/unconstrained/tutorials/
H A Dminsurf1.c311 PetscReal hl, hr, ht, hb, hc, htl, hbr; in QuadraticH() local
384hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in QuadraticH()
394 hb *= 0.5; in QuadraticH()
401 v[k] = hb; in QuadraticH()
H A Dminsurf2.c509 PetscReal hl, hr, ht, hb, hc, htl, hbr; in QuadraticH() local
593hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in QuadraticH()
603 hb /= 2.0; in QuadraticH()
612 v[k] = hb; in QuadraticH()
/petsc/src/tao/bound/tutorials/
H A Dplate2f.F90309 PetscReal hl, hr, ht, hb, hc, htl, hbr
420 hb = (-hxdhy*(1.0 + d6*d6) + d4*d6)/(f6*f6*f6) + (-hxdhy*(1.0 + d1*d1) + d1*d4)/(f2*f2*f2)
432 hb = hb*0.5
440 v(k) = hb
H A Dplate2.c424 PetscReal hl, hr, ht, hb, hc, htl, hbr; in FormHessian() local
513hb = (-hxdhy * (1.0 + d6 * d6) + d4 * d6) / (f6 * f6 * f6) + (-hxdhy * (1.0 + d1 * d1) + d1 * d4) … in FormHessian()
523 hb *= 0.5; in FormHessian()
530 v[k] = hb; in FormHessian()
/petsc/src/ksp/pc/impls/hypre/
H A Dhypre.c598 HYPRE_ParVector hb, hx; in PCMatApply_HYPRE_BoomerAMG() local
610 …arCSRMatrixGlobalNumRows(par_matrix), hypre_ParCSRMatrixRowStarts(par_matrix), (HYPRE_Int)N, &hb)); in PCMatApply_HYPRE_BoomerAMG()
618 x_local = hypre_ParVectorLocalVector(hb); in PCMatApply_HYPRE_BoomerAMG()
625 …PetscCallHYPRE(hypre_ParVectorInitialize_v2(hb, type == PETSC_MEMTYPE_HOST ? HYPRE_MEMORY_HOST : H… in PCMatApply_HYPRE_BoomerAMG()
629 HYPRE_Int hierr = (*jac->solve)(jac->hsolver, par_matrix, hb, hx); in PCMatApply_HYPRE_BoomerAMG()
635 PetscCallHYPRE(HYPRE_ParVectorDestroy(hb)); in PCMatApply_HYPRE_BoomerAMG()
2822 PetscCallHYPRE(HYPRE_StructVectorSetConstantValues(mx->hb, 0.0)); in PCApply_PFMG()
2824 PetscCallHYPRE(HYPRE_StructVectorSetBoxValues(mx->hb, hlower, hupper, (HYPRE_Complex *)xx)); in PCApply_PFMG()
2826 PetscCallHYPRE(HYPRE_StructVectorAssemble(mx->hb)); in PCApply_PFMG()
2827 PetscCallHYPRE(HYPRE_StructPFMGSolve(ex->hsolver, mx->hmat, mx->hb, mx->hx)); in PCApply_PFMG()
[all …]