@@ -1733,57 +1733,57 @@ contains
17331733 !$acc routine seq
17341734#endif
17351735
1736- ! Input parameters
1737- integer , intent (in ) :: wave_speeds
1738- integer , intent (in ) :: idx, idx_tau
1739- real (wp), intent (in ) :: rho_L, rho_R
1740- real (wp), dimension (:), intent (in ) :: vel_L, vel_R, tau_e_L, tau_e_R
1741- real (wp), intent (in ) :: pres_L, pres_R, c_L, c_R
1742- real (wp), intent (in ) :: gamma_L, gamma_R, pi_inf_L, pi_inf_R
1743- real (wp), intent (in ) :: rho_avg, c_avg
1744- real (wp), intent (in ) :: c_fast_L, c_fast_R
1745- real (wp), intent (in ) :: G_L, G_R
1746-
1747- ! Local variables
1748- real (wp) :: pres_SL, pres_SR, Ms_L, Ms_R
1749-
1750- ! Output parameters
1751- real (wp), intent (out ) :: s_L, s_R, s_S, s_M, s_P
1736+ ! Input parameters
1737+ integer , intent (in ) :: wave_speeds
1738+ integer , intent (in ) :: idx, idx_tau
1739+ real (wp), intent (in ) :: rho_L, rho_R
1740+ real (wp), dimension (:), intent (in ) :: vel_L, vel_R, tau_e_L, tau_e_R
1741+ real (wp), intent (in ) :: pres_L, pres_R, c_L, c_R
1742+ real (wp), intent (in ) :: gamma_L, gamma_R, pi_inf_L, pi_inf_R
1743+ real (wp), intent (in ) :: rho_avg, c_avg
1744+ real (wp), intent (in ) :: c_fast_L, c_fast_R
1745+ real (wp), intent (in ) :: G_L, G_R
1746+
1747+ ! Local variables
1748+ real (wp) :: pres_SL, pres_SR, Ms_L, Ms_R
1749+
1750+ ! Output parameters
1751+ real (wp), intent (out ) :: s_L, s_R, s_S, s_M, s_P
17521752
17531753 if (wave_speeds == 1 ) then
17541754 if (mhd) then
17551755 s_L = min (vel_L(idx) - c_fast_L, vel_R(idx) - c_fast_R)
17561756 s_R = max (vel_R(idx) + c_fast_R, vel_L(idx) + c_fast_L)
17571757 elseif (hypoelasticity .or. elasticity) then
17581758 s_L = min (vel_L(idx) - sqrt (c_L* c_L + (((4._wp * G_L)/ 3._wp ) + &
1759- tau_e_L(idx_tau))/ rho_L) &
1760- , vel_R(idx) - sqrt (c_R* c_R + (((4._wp * G_R)/ 3._wp ) + &
1761- tau_e_R(idx_tau))/ rho_R))
1759+ tau_e_L(idx_tau))/ rho_L) &
1760+ , vel_R(idx) - sqrt (c_R* c_R + (((4._wp * G_R)/ 3._wp ) + &
1761+ tau_e_R(idx_tau))/ rho_R))
17621762 s_R = max (vel_R(idx) + sqrt (c_R* c_R + (((4._wp * G_R)/ 3._wp ) + &
1763- tau_e_R(idx_tau))/ rho_R) &
1764- , vel_L(idx) + sqrt (c_L* c_L + (((4._wp * G_L)/ 3._wp ) + &
1765- tau_e_L(idx_tau))/ rho_L))
1763+ tau_e_R(idx_tau))/ rho_R) &
1764+ , vel_L(idx) + sqrt (c_L* c_L + (((4._wp * G_L)/ 3._wp ) + &
1765+ tau_e_L(idx_tau))/ rho_L))
17661766 else if (hyperelasticity) then
17671767 s_L = min (vel_L(idx) - sqrt (c_L* c_L + (4._wp * G_L/ 3._wp )/ rho_L) &
1768- , vel_R(idx) - sqrt (c_R* c_R + (4._wp * G_R/ 3._wp )/ rho_R))
1768+ , vel_R(idx) - sqrt (c_R* c_R + (4._wp * G_R/ 3._wp )/ rho_R))
17691769 s_R = max (vel_R(idx) + sqrt (c_R* c_R + (4._wp * G_R/ 3._wp )/ rho_R) &
1770- , vel_L(idx) + sqrt (c_L* c_L + (4._wp * G_L/ 3._wp )/ rho_L))
1770+ , vel_L(idx) + sqrt (c_L* c_L + (4._wp * G_L/ 3._wp )/ rho_L))
17711771 else
17721772 s_L = min (vel_L(idx) - c_L, vel_R(idx) - c_R)
17731773 s_R = max (vel_R(idx) + c_R, vel_L(idx) + c_L)
17741774 end if
17751775 s_S = (pres_R - pres_L + rho_L* vel_L(idx)* &
1776- (s_L - vel_L(idx)) - rho_R* vel_R(idx)* (s_R - vel_R(idx))) &
1777- / (rho_L* (s_L - vel_L(idx)) - rho_R* (s_R - vel_R(idx)))
1776+ (s_L - vel_L(idx)) - rho_R* vel_R(idx)* (s_R - vel_R(idx))) &
1777+ / (rho_L* (s_L - vel_L(idx)) - rho_R* (s_R - vel_R(idx)))
17781778 elseif (wave_speeds == 2 ) then
1779- pres_SL = 5e-1_wp * (pres_L + pres_R + rho_avg* c_avg* (vel_L(idx) - vel_R(idx)))
1779+ pres_SL = 5e-1_wp * (pres_L + pres_R + rho_avg* c_avg* (vel_L(idx) - vel_R(idx)))
17801780 pres_SR = pres_SL
17811781 Ms_L = max (1._wp , sqrt (1._wp + ((5e-1_wp + gamma_L)/ (1._wp + gamma_L))* &
1782- (pres_SL/ pres_L - 1._wp )* pres_L/ &
1783- ((pres_L + pi_inf_L/ (1._wp + gamma_L)))))
1782+ (pres_SL/ pres_L - 1._wp )* pres_L/ &
1783+ ((pres_L + pi_inf_L/ (1._wp + gamma_L)))))
17841784 Ms_R = max (1._wp , sqrt (1._wp + ((5e-1_wp + gamma_R)/ (1._wp + gamma_R))* &
1785- (pres_SR/ pres_R - 1._wp )* pres_R/ &
1786- ((pres_R + pi_inf_R/ (1._wp + gamma_R)))))
1785+ (pres_SR/ pres_R - 1._wp )* pres_R/ &
1786+ ((pres_R + pi_inf_R/ (1._wp + gamma_R)))))
17871787 s_L = vel_L(idx) - c_L* Ms_L
17881788 s_R = vel_R(idx) + c_R* Ms_R
17891789 s_S = 5e-1_wp * ((vel_L(idx) + vel_R(idx)) + (pres_L - pres_R)/ (rho_avg* c_avg))
0 commit comments