Home
last modified time | relevance | path

Searched refs:h0 (Results 1 – 5 of 5) sorted by relevance

/petsc/src/snes/tutorials/network/water/
H A Dwater.h82 PetscScalar h0; member
H A Dwaterfunctions.c17 …flow_pump = PetscSign(hf - ht + pump->h0) * PetscPowScalar(PetscAbsScalar(hf - ht + pump->h0) / pu… in Flow_Pump()
H A Dwaterreaddata.c71 pump->h0 = x[0]; in SetPumpHeadCurveParams()
/petsc/src/ts/tutorials/
H A Dex9.c1029 PetscScalar tmp, res, res0 = 0, h0, h = 0.5 * (L.h + R.h); /* initial guess */ in PhysicsRiemann_Shallow_Exact() local
1030 h0 = h; in PhysicsRiemann_Shallow_Exact()
1039 if (PetscAbsScalar(res) < 1e-8 || (i > 0 && PetscAbsScalar(h - h0) < 1e-8)) { in PhysicsRiemann_Shallow_Exact()
1044 h = 0.8 * h0 + 0.2 * h; in PhysicsRiemann_Shallow_Exact()
1049 h0 = h; in PhysicsRiemann_Shallow_Exact()
/petsc/src/ts/tutorials/multirate/
H A Dex4.c176 PetscScalar tmp, res, res0 = 0, h0, h = 0.5 * (L.h + R.h); /* initial guess */ in PhysicsRiemann_Shallow_Exact() local
177 h0 = h; in PhysicsRiemann_Shallow_Exact()
186 …if (PetscAbsScalar(res) < PETSC_SQRT_MACHINE_EPSILON || (i > 0 && PetscAbsScalar(h - h0) < PETSC_S… in PhysicsRiemann_Shallow_Exact()
191 h = 0.8 * h0 + 0.2 * h; in PhysicsRiemann_Shallow_Exact()
196 h0 = h; in PhysicsRiemann_Shallow_Exact()