Skip to content

Commit

Permalink
Merge pull request CESM-Development#26 from Katetc/master
Browse files Browse the repository at this point in the history
Added ifdefs around the MPIAlltoall call in the case of OPENMPI which…
  • Loading branch information
Katetc committed Nov 6, 2015
2 parents 15a2f4e + 3dd101a commit 6f363e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clib/pio_spmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ int pio_swapm(void *sndbuf, int sndlths[], int sdispls[], MPI_Datatype stypes
CheckMPIReturn(MPI_Comm_size(comm, &nprocs),__FILE__,__LINE__);
CheckMPIReturn(MPI_Comm_rank(comm, &mytask),__FILE__,__LINE__);

#ifndef OPEN_MPI
if(max_requests == 0) {
#ifdef DEBUG
int totalrecv=0;
Expand All @@ -263,6 +264,7 @@ int pio_swapm(void *sndbuf, int sndlths[], int sdispls[], MPI_Datatype stypes
CheckMPIReturn(MPI_Alltoallw( sndbuf, sndlths, sdispls, stypes, rcvbuf, rcvlths, rdispls, rtypes, comm),__FILE__,__LINE__);
return PIO_NOERR;
}
#endif

int tag;
int offset_t;
Expand Down
1 change: 1 addition & 0 deletions tests/unit/driver.F90
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Program pio_unit_test_driver
call MPI_Init(ierr)
call MPI_Comm_rank(MPI_COMM_WORLD, my_rank, ierr)
call MPI_Comm_size(MPI_COMM_WORLD, ntasks , ierr)
!! call MPI_Errhandler_set(MPI_COMM_WORLD, MPI_ERRORS_RETURN, ierr)
master_task = my_rank.eq.0

if (master_task) then
Expand Down

0 comments on commit 6f363e4

Please sign in to comment.