Changing name of macro to switch btw isend and irsends
Changing the name of the macro used to switch between mpi_irsends
and mpi_isends when rearranging data. This change should make it
easier to read the code. As before, the default is still mpi_irsend
@@ -287,18 +287,18 @@ int pio_swapm(void *sendbuf, int *sendcounts, int *sdispls, MPI_Datatype *sendty
* a major issue anymore, or is buggy. With PIO1 we have found that
* although the code correctly posts receives before the irsends,
* on some systems (software stacks) the code hangs. However the
- * code works fine with isends. The NO_MPI_RSEND macro should be
+ * code works fine with isends. The USE_MPI_ISEND_FOR_FC macro should be
* used to choose between mpi_irsends and mpi_isends - the default
* is still mpi_irsend
*/
if (isend)
{
-#ifndef NO_MPI_IRSEND
- if ((mpierr = MPI_Irsend(ptr, sendcounts[p], sendtypes[p], p, tag, comm,
+#ifdef USE_MPI_ISEND_FOR_FC
+ if ((mpierr = MPI_Isend(ptr, sendcounts[p], sendtypes[p], p, tag, comm,
sndids + istep)))
return check_mpi(NULL, mpierr, __FILE__, __LINE__);
#else
- if ((mpierr = MPI_Isend(ptr, sendcounts[p], sendtypes[p], p, tag, comm,
+ if ((mpierr = MPI_Irsend(ptr, sendcounts[p], sendtypes[p], p, tag, comm,
sndids + istep)))
return check_mpi(NULL, mpierr, __FILE__, __LINE__);
#endif
