Skip to content

Commit 1c17ed5

Browse files
wilfonbaokBrian
authored andcommitted
fix GPU test suite
1 parent 85c94fc commit 1c17ed5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/simulation/m_global_parameters.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,7 @@ contains
13051305
$:GPU_UPDATE(device='[wenojs,mapped_weno,wenoz,teno]')
13061306
$:GPU_UPDATE(device='[wenoz_q]')
13071307
$:GPU_UPDATE(device='[mhd, relativity]')
1308+
$:GPU_UPDATE(device='[muscl_order, muscl_lim]')
13081309
#:endif
13091310
13101311
$:GPU_ENTER_DATA(copyin='[nb,R0ref,Ca,Web,Re_inv,weight,R0, &

src/simulation/m_muscl.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ contains
169169
slopeR = v_rs_ws_${XYZ}$ (j, k, l, i) - &
170170
v_rs_ws_${XYZ}$ (j - 1, k, l, i)
171171
slope = 0._wp
172+
172173
if (muscl_lim == 1) then ! minmod
173174
if (slopeL*slopeR > 1e-9_wp) then
174175
slope = min(abs(slopeL), abs(slopeR))
@@ -194,6 +195,7 @@ contains
194195
slope = -1._wp*min(-min(2._wp*abs(slopeL), abs(slopeR)), -min(abs(slopeL), 2._wp*abs(slopeR)))
195196
end if
196197
end if
198+
197199
! reconstruct from left side
198200
vL_rs_vf_${XYZ}$ (j, k, l, i) = &
199201
v_rs_ws_${XYZ}$ (j, k, l, i) - (5.e-1_wp*slope)

0 commit comments

Comments
 (0)