MPI_Send/ Recv communicator datatype error
问题 I have the following basic MPI program written in Fortran 90: program sendRecv include 'mpif.h' !MPI Variables integer ierr, numProcs, procID !My variables integer dat, datRec !Init MPI call MPI_INIT ( ierr ) !Get number of processes/ cores requested call MPI_COMM_SIZE (MPI_COMM_WORLD, numProcs, ierr) !Get rank of process call MPI_COMM_RANK (MPI_COMM_WORLD, procID, ierr) if (procID .eq. 0) then dat=4 !Send num to process 1 call MPI_SEND (dat, 1, MPI_INT, 1, 0, MPI_COMM_WORLD, ierr) else if