We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c00ba3d commit 9607e33Copy full SHA for 9607e33
src/common/m_variables_conversion.fpp
@@ -1634,9 +1634,15 @@ contains
1634
pi_infs(2))/gammas(2)
1635
c = (1._wp/(rho*(adv(1)/blkmod1 + adv(2)/blkmod2)))
1636
elseif (model_eqns == 3) then
1637
- c = sum(adv*gs_min*(pres + ps_inf))/rho
+ 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
1644
elseif (((model_eqns == 4) .or. (model_eqns == 2 .and. bubbles_euler))) then
- ! Sound speed for bubble mmixture to order O(\alpha)
1645
+ ! Sound speed for bubble mixture to order O(\alpha)
1646
1647
if (mpp_lim .and. (num_fluids > 1)) then
1648
c = (1._wp/gamma + 1._wp)* &
0 commit comments