Lines Matching refs:phys
153 static inline void ShallowFlux(ShallowCtx *phys, const PetscScalar *u, PetscScalar *f) in ShallowFlux() argument
156 f[1] = PetscSqr(u[1]) / u[0] + 0.5 * phys->gravity * PetscSqr(u[0]); in ShallowFlux()
161 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Exact() local
162 PetscScalar g = phys->gravity, ustar[2], cL, cR, c, cstar; in PhysicsRiemann_Shallow_Exact()
212 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
217 ShallowFlux(phys, ufan, flux); in PhysicsRiemann_Shallow_Exact()
220 ShallowFlux(phys, uL, flux); in PhysicsRiemann_Shallow_Exact()
223 ShallowFlux(phys, uR, flux); in PhysicsRiemann_Shallow_Exact()
227 ShallowFlux(phys, ustar, flux); in PhysicsRiemann_Shallow_Exact()
235 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsRiemann_Shallow_Rusanov() local
236 PetscScalar g = phys->gravity, fL[2], fR[2], s; in PhysicsRiemann_Shallow_Rusanov()
251 ShallowFlux(phys, uL, fL); in PhysicsRiemann_Shallow_Rusanov()
252 ShallowFlux(phys, uR, fR); in PhysicsRiemann_Shallow_Rusanov()
275 ShallowCtx *phys = (ShallowCtx *)vctx; in PhysicsCharacteristic_Shallow() local
280 c = PetscSqrtScalar(u[0] * phys->gravity); in PhysicsCharacteristic_Shallow()