We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9fa5c1 commit 7aafa53Copy full SHA for 7aafa53
src/simulation/m_acoustic_src.fpp
@@ -192,9 +192,11 @@ contains
192
! Allocate buffers for random phase shift
193
allocate (phi_rn(1:bb_num_freq(ai)))
194
195
- call random_number(phi_rn(1:bb_num_freq(ai)))
196
- ! Ensure all the ranks have the same random phase shift
197
- call s_mpi_send_random_number(phi_rn, bb_num_freq(ai))
+ if (pulse(ai) == 4) then
+ call random_number(phi_rn(1:bb_num_freq(ai)))
+ ! Ensure all the ranks have the same random phase shift
198
+ call s_mpi_send_random_number(phi_rn, bb_num_freq(ai))
199
+ end if
200
201
!$acc loop reduction(+:sum_BB)
202
do k = 1, bb_num_freq(ai)
0 commit comments