Skip to content

Commit 9607e33

Browse files
authored
Update m_variables_conversion.fpp
1 parent c00ba3d commit 9607e33

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/common/m_variables_conversion.fpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,9 +1634,15 @@ contains
16341634
pi_infs(2))/gammas(2)
16351635
c = (1._wp/(rho*(adv(1)/blkmod1 + adv(2)/blkmod2)))
16361636
elseif (model_eqns == 3) then
1637-
c = sum(adv*gs_min*(pres + ps_inf))/rho
1637+
c = 0._wp
1638+
$:GPU_LOOP(parallelism='[seq]')
1639+
do q = 1, num_fluids
1640+
c = c + adv(q)*(1._wp/gammas(q) + 1._wp)* &
1641+
(pres + pi_infs(q)/(gammas(q) + 1._wp))
1642+
end do
1643+
c = c/rho
16381644
elseif (((model_eqns == 4) .or. (model_eqns == 2 .and. bubbles_euler))) then
1639-
! Sound speed for bubble mmixture to order O(\alpha)
1645+
! Sound speed for bubble mixture to order O(\alpha)
16401646

16411647
if (mpp_lim .and. (num_fluids > 1)) then
16421648
c = (1._wp/gamma + 1._wp)* &

0 commit comments

Comments
 (0)