Skip to content

Commit a077bd6

Browse files
committed
clean up fypp statements
1 parent ea293f6 commit a077bd6

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

src/simulation/inline_riemann.fpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#:def arithmetic_avg(rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
1+
#:def arithmetic_avg()
22
rho_avg = 5d-1*(rho_L + rho_R)
33
vel_avg_rms = 0d0
44
!$acc loop seq
@@ -10,7 +10,7 @@
1010
gamma_avg = 5d-1*(gamma_L + gamma_R)
1111
#:enddef arithmetic_avg
1212

13-
#:def roe_avg(rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
13+
#:def roe_avg()
1414
rho_avg = sqrt(rho_L*rho_R)
1515
vel_avg_rms = 0d0
1616
!$acc loop seq
@@ -26,14 +26,20 @@
2626
(sqrt(rho_L) + sqrt(rho_R))
2727
#:enddef roe_avg
2828

29-
#:def compute_average_state(avg_state,rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
29+
#:def compute_average_state()
3030

3131
if (avg_state == 1) then
32-
@:roe_avg(rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
32+
@:roe_avg()
3333
end if
3434

3535
if (avg_state == 2) then
36-
@:arithmetic_avg(rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
36+
@:arithmetic_avg()
3737
end if
3838

3939
#:enddef compute_average_state
40+
41+
! #:def compute_wave_speeds()
42+
43+
! #:enddef compute_wave_speeds
44+
45+

src/simulation/m_riemann_solvers.fpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -584,8 +584,7 @@ contains
584584
end do
585585
end if
586586

587-
! compute avg state goes here
588-
@:compute_average_state(avg_state,rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
587+
@:compute_average_state()
589588

590589
if (mixture_err) then
591590
if ((H_avg - 5d-1*vel_avg_rms) < 0d0) then
@@ -1163,7 +1162,7 @@ contains
11631162
H_L = (E_L + pres_L)/rho_L
11641163
H_R = (E_R + pres_R)/rho_R
11651164
1166-
@:compute_average_state(avg_state,rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
1165+
@:compute_average_state()
11671166
11681167
if (mixture_err) then
11691168
if ((H_avg - 5d-1*vel_avg_rms) < 0d0) then
@@ -1471,7 +1470,7 @@ contains
14711470
H_L = (E_L + pres_L)/rho_L
14721471
H_R = (E_R + pres_R)/rho_R
14731472
1474-
@:compute_average_state(avg_state,rho_avg,rho_L,rho_R,vel_L,vel_R,vel_avg_rms,H_L,H_R,H_avg,gamma_L,gamma_R,gamma_avg)
1473+
@:compute_average_state()
14751474
14761475
if (mixture_err) then
14771476
if ((H_avg - 5d-1*vel_avg_rms) < 0d0) then
@@ -2346,6 +2345,7 @@ contains
23462345
(s_R - vel_R(idx1))) &
23472346
/(rho_L*(s_L - vel_L(idx1)) - &
23482347
rho_R*(s_R - vel_R(idx1)))
2348+
23492349
elseif (wave_speeds == 2) then
23502350
pres_SL = 5d-1*(pres_L + pres_R + rho_avg*c_avg* &
23512351
(vel_L(idx1) - &

0 commit comments

Comments
 (0)