Lines Matching refs:PetscSqrtScalar
170 cL = PetscSqrtScalar(g * L.h); in PhysicsRiemann_Shallow_Exact()
171 cR = PetscSqrtScalar(g * R.h); in PhysicsRiemann_Shallow_Exact()
180 … fl = (L.h < h) ? PetscSqrtScalar(0.5 * g * (h * h - L.h * L.h) * (1 / L.h - 1 / h)) /* shock */ in PhysicsRiemann_Shallow_Exact()
181 … : 2 * PetscSqrtScalar(g * h) - 2 * PetscSqrtScalar(g * L.h); /* rarefaction */ in PhysicsRiemann_Shallow_Exact()
182 … fr = (R.h < h) ? PetscSqrtScalar(0.5 * g * (h * h - R.h * R.h) * (1 / R.h - 1 / h)) /* shock */ in PhysicsRiemann_Shallow_Exact()
183 … : 2 * PetscSqrtScalar(g * h) - 2 * PetscSqrtScalar(g * R.h); /* rarefaction */ in PhysicsRiemann_Shallow_Exact()
197 …(L.h < h) ? 0.5 / fl * 0.5 * g * (-L.h * L.h / (h * h) - 1 + 2 * h / L.h) : PetscSqrtScalar(g / h); in PhysicsRiemann_Shallow_Exact()
198 …(R.h < h) ? 0.5 / fr * 0.5 * g * (-R.h * R.h / (h * h) - 1 + 2 * h / R.h) : PetscSqrtScalar(g / h); in PhysicsRiemann_Shallow_Exact()
207 cstar = PetscSqrtScalar(g * star.h); in PhysicsRiemann_Shallow_Exact()
211 ufan[1] = PetscSqrtScalar(g * ufan[0]) * ufan[0]; in PhysicsRiemann_Shallow_Exact()
216 ufan[1] = -PetscSqrtScalar(g * ufan[0]) * ufan[0]; in PhysicsRiemann_Shallow_Exact()
254 …s = PetscMax(PetscAbs(L.u) + PetscSqrtScalar(g * L.h), PetscAbs(R.u) + PetscSqrtScalar(g *… in PhysicsRiemann_Shallow_Rusanov()
280 c = PetscSqrtScalar(u[0] * phys->gravity); in PhysicsCharacteristic_Shallow()