Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44f8f5d

Browse filesBrowse files
committed
fixed minor error
1 parent 14270da commit 44f8f5d
Copy full SHA for 44f8f5d

File tree

Expand file treeCollapse file tree

1 file changed

+4
-35
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-35
lines changed

‎src/common/m_variables_conversion.fpp

Copy file name to clipboardExpand all lines: src/common/m_variables_conversion.fpp
+4-35Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,39 +1751,12 @@ contains
17511751
real(wp), intent(out) :: s_L, s_R, s_S, s_M, s_P
17521752

17531753
if (wave_speeds == 1) then
1754-
<<<<<<< HEAD
1755-
if (mhd) then
1756-
s_L = min(vel_L(idx) - c_fast_L, vel_R(idx) - c_fast_R)
1757-
s_R = max(vel_R(idx) + c_fast_R, vel_L(idx) + c_fast_L)
1758-
elseif (hypoelasticity .or. elasticity) then
1759-
s_L = min(vel_L(idx) - sqrt(c_L*c_L + (((4._wp*G_L)/3._wp) + &
1760-
tau_e_L(idx_tau))/rho_L) &
1761-
, vel_R(idx) - sqrt(c_R*c_R + (((4._wp*G_R)/3._wp) + &
1762-
tau_e_R(idx_tau))/rho_R))
1763-
s_R = max(vel_R(idx) + sqrt(c_R*c_R + (((4._wp*G_R)/3._wp) + &
1764-
tau_e_R(idx_tau))/rho_R) &
1765-
, vel_L(idx) + sqrt(c_L*c_L + (((4._wp*G_L)/3._wp) + &
1766-
tau_e_L(idx_tau))/rho_L))
1767-
else if (hyperelasticity) then
1768-
s_L = min(vel_L(idx) - sqrt(c_L*c_L + (4._wp*G_L/3._wp)/rho_L) &
1769-
, vel_R(idx) - sqrt(c_R*c_R + (4._wp*G_R/3._wp)/rho_R))
1770-
s_R = max(vel_R(idx) + sqrt(c_R*c_R + (4._wp*G_R/3._wp)/rho_R) &
1771-
, vel_L(idx) + sqrt(c_L*c_L + (4._wp*G_L/3._wp)/rho_L))
1772-
else
1773-
s_L = min(vel_L(idx) - c_L, vel_R(idx) - c_R)
1774-
s_R = max(vel_R(idx) + c_R, vel_L(idx) + c_L)
1775-
end if
1776-
s_S = (pres_R - pres_L + rho_L*vel_L(idx)* &
1777-
(s_L - vel_L(idx)) - rho_R*vel_R(idx)*(s_R - vel_R(idx))) &
1778-
/(rho_L*(s_L - vel_L(idx)) - rho_R*(s_R - vel_R(idx)))
1779-
elseif (wave_speeds == 2) then
1780-
=======
17811754
if (elasticity) then
1782-
s_L = min(vel_L(dir_idx(1)) - sqrt(c_L*c_L + &
1783-
(((4_wp*G_L)/3_wp) + tau_e_L(idx_tau))/rho_L), vel_R(dir_idx(1)) - sqrt(c_R*c_R + &
1755+
s_L = min(vel_L(idx) - sqrt(c_L*c_L + &
1756+
(((4_wp*G_L)/3_wp) + tau_e_L(idx_tau))/rho_L), vel_R(idx) - sqrt(c_R*c_R + &
17841757
(((4_wp*G_R)/3_wp) + tau_e_R(idx_tau))/rho_R))
1785-
s_R = max(vel_R(dir_idx(1)) + sqrt(c_R*c_R + &
1786-
(((4_wp*G_R)/3_wp) + tau_e_R(idx_tau))/rho_R), vel_L(dir_idx(1)) + sqrt(c_L*c_L + &
1758+
s_R = max(vel_R(idx) + sqrt(c_R*c_R + &
1759+
(((4_wp*G_R)/3_wp) + tau_e_R(idx_tau))/rho_R), vel_L(idx) + sqrt(c_L*c_L + &
17871760
(((4_wp*G_L)/3_wp) + tau_e_L(idx_tau))/rho_L))
17881761
s_S = (pres_R - tau_e_R(idx_tau) - pres_L + &
17891762
tau_e_L(idx_tau) + rho_L*vel_L(idx)*(s_L - vel_L(idx)) - &
@@ -1823,7 +1796,6 @@ contains
18231796
/(rho_L*(s_L - vel_L(idx)) - rho_R*(s_R - vel_R(idx)))
18241797
end if
18251798
else if (wave_speeds == 2) then
1826-
>>>>>>> refactor-dev
18271799
pres_SL = 5e-1_wp*(pres_L + pres_R + rho_avg*c_avg*(vel_L(idx) - vel_R(idx)))
18281800
pres_SR = pres_SL
18291801
Ms_L = max(1._wp, sqrt(1._wp + ((5e-1_wp + gamma_L)/(1._wp + gamma_L))* &
@@ -1858,10 +1830,7 @@ contains
18581830
call s_mpi_abort('Error: Invalid wave speeds in s_compute_wave_speed')
18591831
end if
18601832
#endif
1861-
<<<<<<< HEAD
18621833

1863-
=======
1864-
>>>>>>> refactor-dev
18651834
end subroutine s_compute_wave_speed
18661835
#endif
18671836

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.