Skip to content

Commit 6413886

Browse files
committed
fix noMPI bug
1 parent db6c04f commit 6413886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/simulation/m_mpi_proxy.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ contains
167167
168168
subroutine s_mpi_gather_data(my_vector, counts, gathered_vector, root)
169169
170-
#ifdef MFC_MPI
171-
172170
implicit none
173171
integer, intent(in) :: counts ! Array of vector lengths for each process
174172
real(kind(0d0)), intent(in), dimension(counts) :: my_vector ! Input vector on each process
@@ -178,6 +176,8 @@ contains
178176
integer :: i, offset, ierr
179177
integer, allocatable :: recounts(:), displs(:)
180178
179+
#ifdef MFC_MPI
180+
181181
allocate (recounts(num_procs))
182182
183183
call MPI_GATHER(counts, 1, MPI_INTEGER, recounts, 1, MPI_INTEGER, root, &

0 commit comments

Comments
 (0)