Skip to content

Commit 52f9bd3

Browse files
Back to a working example
1 parent 841574c commit 52f9bd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/common/m_mpi_common.fpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,10 @@ contains
488488
integer :: ierr !< Generic flag used to identify and report MPI errors
489489
490490
! Performing the reduction procedure
491-
call MPI_ALLREDUCE(var_loc, var_glb, 1, mpi_p, &
491+
call MPI_ALLREDUCE(var_loc, var_glb, 1, MPI_INTEGER, &
492492
MPI_SUM, MPI_COMM_WORLD, ierr)
493-
493+
#else
494+
var_glb = var_loc
494495
#endif
495496
496497
end subroutine s_mpi_allreduce_integer_sum

0 commit comments

Comments
 (0)