Skip to content

Commit 7134cc0

Browse files
committed
wp in variables_conversion
1 parent 624c36d commit 7134cc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/common/m_variables_conversion.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ contains
942942
if (model_eqns /= 4) then
943943
qK_prim_vf(i)%sf(j, k, l) = qK_cons_vf(i)%sf(j, k, l) &
944944
/rho_K
945-
dyn_pres_K = dyn_pres_K + 5e-1_wp*qK_cons_vf(i)%sf(j, k, l) &
945+
dyn_pres_K = dyn_pres_K + 0.5_wp*qK_cons_vf(i)%sf(j, k, l) &
946946
*qK_prim_vf(i)%sf(j, k, l)
947947
else
948948
qK_prim_vf(i)%sf(j, k, l) = qK_cons_vf(i)%sf(j, k, l) &
@@ -1341,7 +1341,7 @@ contains
13411341

13421342
! Computing the energy from the pressure
13431343
E_K = gamma_K*pres_K + pi_inf_K &
1344-
+ 5e-1_wp*rho_K*vel_K_sum + qv_K
1344+
+ 0.5_wp*rho_K*vel_K_sum + qv_K
13451345

13461346
! mass flux, this should be \alpha_i \rho_i u_i
13471347
!$acc loop seq
@@ -1466,7 +1466,7 @@ contains
14661466
(rho*(1._wp - adv(num_fluids)))
14671467
end if
14681468
else
1469-
c = ((H - 5e-1*vel_sum)/gamma)
1469+
c = ((H - 0.5_wp*vel_sum)/gamma)
14701470
end if
14711471

14721472
if (mixture_err .and. c < 0._wp) then

0 commit comments

Comments
 (0)