Skip to content

Commit

Permalink
fixing windows warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Aug 4, 2020
1 parent 1eed67d commit 905358a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/adios2/helper/adiosMpiHandshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ void HandshakeComm(const std::string &filename, const char mode,
auto appRankMaps = HandshakeRank(filename, mode, timeoutSeconds, localComm);
MPI_Group worldGroup;
MPI_Comm_group(MPI_COMM_WORLD, &worldGroup);
MPI_Group_incl(worldGroup, appRankMaps[0].size(), appRankMaps[0].data(),
&streamGroup);
MPI_Group_incl(worldGroup, appRankMaps[1].size(), appRankMaps[1].data(),
&writerGroup);
MPI_Group_incl(worldGroup, appRankMaps[2].size(), appRankMaps[2].data(),
&readerGroup);
MPI_Group_incl(worldGroup, static_cast<int>(appRankMaps[0].size()),
appRankMaps[0].data(), &streamGroup);
MPI_Group_incl(worldGroup, static_cast<int>(appRankMaps[1].size()),
appRankMaps[1].data(), &writerGroup);
MPI_Group_incl(worldGroup, static_cast<int>(appRankMaps[2].size()),
appRankMaps[2].data(), &readerGroup);
MPI_Comm_create_group(MPI_COMM_WORLD, streamGroup, 0, &streamComm);
MPI_Comm_create_group(MPI_COMM_WORLD, writerGroup, 0, &writerComm);
MPI_Comm_create_group(MPI_COMM_WORLD, readerGroup, 0, &readerComm);
Expand Down

0 comments on commit 905358a

Please sign in to comment.