Skip to content

Commit 1d5e33c

Browse files
Fixed issue with s_get_char_vol being elemental, which means that it was never called, breaking the IO
1 parent 1980851 commit 1d5e33c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/simulation/m_bubbles_EL.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@ contains
15111511
lag_void_max = 0._wp
15121512
lag_void_avg = 0._wp
15131513
lag_vol = 0._wp
1514-
$:GPU_PARALLEL_LOOP(collapse=3, reduction='[[lag_vol, lag_void_avg], [lag_void_max]]', reductionOp='[+, MAX]', copy='[lag_vol, lag_void_avg, lag_void_max]')
1514+
$:GPU_PARALLEL_LOOP(private='[i,j,k,volcell]', collapse=3, reduction='[[lag_vol, lag_void_avg], [lag_void_max]]', reductionOp='[+, MAX]', copy='[lag_vol, lag_void_avg, lag_void_max]')
15151515
do k = 0, p
15161516
do j = 0, n
15171517
do i = 0, m

src/simulation/m_bubbles_EL_kernels.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ contains
381381
!> The purpose of this procedure is to calculate the characteristic cell volume
382382
!! @param cell Computational coordinates (x, y, z)
383383
!! @param Charvol Characteristic volume
384-
elemental subroutine s_get_char_vol(cellx, celly, cellz, Charvol)
384+
subroutine s_get_char_vol(cellx, celly, cellz, Charvol)
385385
$:GPU_ROUTINE(function_name='s_get_char_vol',parallelism='[seq]', &
386386
& cray_inline=True)
387387

0 commit comments

Comments
 (0)