@@ -264,7 +264,8 @@ def riemann_cgf(idir, qx, qy, ng,
264264 nspec : int
265265 The number of species
266266 idens, ixmom, iymom, iener, irhoX : int
267- The indices of the density, x-momentum, y-momentum, internal energy density and species partial densities in the conserved state vector.
267+ The indices of the density, x-momentum, y-momentum, internal energy density
268+ and species partial densities in the conserved state vector.
268269 lower_solid, upper_solid : int
269270 Are we at lower or upper solid boundaries?
270271 gamma : float
@@ -835,7 +836,8 @@ def riemann_hllc(idir, qx, qy, ng,
835836 nspec : int
836837 The number of species
837838 idens, ixmom, iymom, iener, irhoX : int
838- The indices of the density, x-momentum, y-momentum, internal energy density and species partial densities in the conserved state vector.
839+ The indices of the density, x-momentum, y-momentum, internal energy density
840+ and species partial densities in the conserved state vector.
839841 lower_solid, upper_solid : int
840842 Are we at lower or upper solid boundaries?
841843 gamma : float
@@ -1078,7 +1080,7 @@ def riemann_hllc(idir, qx, qy, ng,
10781080
10791081@njit (cache = True )
10801082def consFlux (idir , gamma , idens , ixmom , iymom , iener , irhoX , nvar , nspec , U_state ):
1081- """
1083+ r """
10821084 Calculate the conservative flux.
10831085
10841086 Parameters
@@ -1088,7 +1090,8 @@ def consFlux(idir, gamma, idens, ixmom, iymom, iener, irhoX, nvar, nspec, U_stat
10881090 gamma : float
10891091 Adiabatic index
10901092 idens, ixmom, iymom, iener, irhoX : int
1091- The indices of the density, x-momentum, y-momentum, internal energy density and species partial densities in the conserved state vector.
1093+ The indices of the density, x-momentum, y-momentum, internal energy density
1094+ and species partial densities in the conserved state vector.
10921095 nvar : int
10931096 The number of variables in the state vector
10941097 nspec : int
@@ -1107,8 +1110,7 @@ def consFlux(idir, gamma, idens, ixmom, iymom, iener, irhoX, nvar, nspec, U_stat
11071110 u = U_state [ixmom ] / U_state [idens ]
11081111 v = U_state [iymom ] / U_state [idens ]
11091112
1110- p = (U_state [iener ] - 0.5 * U_state [idens ]
1111- * (u * u + v * v )) * (gamma - 1.0 )
1113+ p = (U_state [iener ] - 0.5 * U_state [idens ]* (u * u + v * v )) * (gamma - 1.0 )
11121114
11131115 if (idir == 1 ):
11141116 F [idens ] = U_state [idens ] * u
0 commit comments