40 USE spmd_comm_world_mod,
ONLY : spmd_comm_world
41#include "implicit_f.inc"
60 INTEGER P, I, MSGTYP, LOC_PROC, IERROR,
61 . STATUS(MPI_STATUS_SIZE),
62 INTEGER :: type_reduc,myop,I_LEN
64 my_real,
DIMENSION(2) :: sbuf,rbuf
77! allreduce with
min and
max operation
79 & spmd_comm_world, ierror)
82 ireduce = nint(rbuf(1))
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)