Skip to content

Commit 8a66941

Browse files
author
Anand Radhakrishnan
committed
Fix for benchmarking on frontier
1 parent 56097f8 commit 8a66941

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/simulation/m_bubbles_EE.fpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,23 @@ contains
3737

3838
@:ALLOCATE(rs(1:nb))
3939
@:ALLOCATE(vs(1:nb))
40-
if (.not. polytropic) then
41-
@:ALLOCATE(ps(1:nb))
42-
@:ALLOCATE(ms(1:nb))
43-
end if
40+
@:ALLOCATE(ps(1:nb))
41+
@:ALLOCATE(ms(1:nb))
4442

4543
do l = 1, nb
4644
rs(l) = bub_idx%rs(l)
4745
vs(l) = bub_idx%vs(l)
4846
if (.not. polytropic) then
4947
ps(l) = bub_idx%ps(l)
5048
ms(l) = bub_idx%ms(l)
49+
else
50+
ps(l) = rs(l)
51+
ms(l) = rs(l)
5152
end if
5253
end do
5354

5455
$:GPU_UPDATE(device='[rs, vs]')
55-
if (.not. polytropic) then
56-
$:GPU_UPDATE(device='[ps, ms]')
57-
end if
56+
$:GPU_UPDATE(device='[ps, ms]')
5857

5958
@:ALLOCATE(divu%sf(idwbuff(1)%beg:idwbuff(1)%end, idwbuff(2)%beg:idwbuff(2)%end, idwbuff(3)%beg:idwbuff(3)%end))
6059
@:ACC_SETUP_SFs(divu)

src/simulation/m_riemann_solvers.fpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,13 +2790,8 @@ contains
27902790
$:GPU_LOOP(parallelism='[seq]')
27912791
do i = 1, nb
27922792
if (.not. qbmm) then
2793-
if (polytropic) then
2794-
pbw_L(i) = f_cpbw_KM(R0(i), R0_L(i), V0_L(i), 0._wp)
2795-
pbw_R(i) = f_cpbw_KM(R0(i), R0_R(i), V0_R(i), 0._wp)
2796-
else
2797-
pbw_L(i) = f_cpbw_KM(R0(i), R0_L(i), V0_L(i), P0_L(i))
2798-
pbw_R(i) = f_cpbw_KM(R0(i), R0_R(i), V0_R(i), P0_R(i))
2799-
end if
2793+
pbw_L(i) = f_cpbw_KM(R0(i), R0_L(i), V0_L(i), P0_L(i))
2794+
pbw_R(i) = f_cpbw_KM(R0(i), R0_R(i), V0_R(i), P0_R(i))
28002795
end if
28012796
end do
28022797

0 commit comments

Comments
 (0)