Skip to content

Commit 82ea810

Browse files
committed
Remove magic numbers and fix acc loop.
1 parent 3f6ebf5 commit 82ea810

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/simulation/m_acoustic_src.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ contains
181181
call s_mpi_send_random_number(phi_rn)
182182
sum_BB = 0d0
183183

184-
!$acc loop seq
184+
!$acc loop reduction(+:sum_BB)
185185
do k = 1, num_broadband_freq
186186
! Acoustic period of the wave at each discrete frequency
187187
period_BB(k) = 1d0/(broadband_freq_lowest + k*broadband_bandwidth)

src/simulation/m_mpi_proxy.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2320,7 +2320,7 @@ contains
23202320
end subroutine s_mpi_sendrecv_capilary_variables_buffers
23212321
23222322
subroutine s_mpi_send_random_number(phi_rn)
2323-
real(kind(0d0)), dimension(1:100) :: phi_rn
2323+
real(kind(0d0)), intent(inout), dimension(1:num_broadband_freq) :: phi_rn
23242324
#ifdef MFC_MPI
23252325
call MPI_BCAST(phi_rn, size(phi_rn), MPI_DOUBLE_PRECISION, 0, MPI_COMM_WORLD, ierr)
23262326
#endif

0 commit comments

Comments
 (0)