Skip to content

Commit

Permalink
removed unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRuonanWang committed Jun 30, 2020
1 parent 830a608 commit 217114f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions source/adios2/helper/adiosMpiHandshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ int MpiHandshake::m_LocalMasterRank;
std::map<std::string, std::map<int, std::set<int>>> MpiHandshake::m_WritersMap;
std::map<std::string, std::map<int, std::set<int>>> MpiHandshake::m_ReadersMap;
std::map<int, int> MpiHandshake::m_AppsSize;
std::set<int> MpiHandshake::m_RanksToReceive;

size_t MpiHandshake::PlaceInBuffer(size_t stream, int rank)
{
Expand All @@ -48,8 +47,6 @@ void MpiHandshake::Test()
int success = 0;
MPI_Status status;

std::vector<int> ranksToErase;

for (int rank = 0; rank < m_WorldSize; ++rank)
{
for (size_t stream = 0; stream < m_MaxStreamsPerApp; ++stream)
Expand Down Expand Up @@ -80,13 +77,8 @@ void MpiHandshake::Test()
auto &ranks = m_ReadersMap[filename][appMasterRank];
ranks.insert(rank);
}
ranksToErase.push_back(rank);
}
}
for (auto rankToErase : ranksToErase)
{
m_RanksToReceive.erase(rankToErase);
}
}
}

Expand Down Expand Up @@ -187,7 +179,6 @@ void MpiHandshake::Handshake(const std::string &filename, const char mode,
{
m_SendRequests[rank].resize(maxStreamsPerApp);
m_RecvRequests[rank].resize(maxStreamsPerApp);
m_RanksToReceive.insert(rank);
}

m_ItemSize = maxFilenameLength + sizeof(char) + sizeof(int) * 2;
Expand Down
1 change: 0 additions & 1 deletion source/adios2/helper/adiosMpiHandshake.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ class MpiHandshake
static int m_LocalSize;
static int m_LocalRank;
static int m_LocalMasterRank;
static std::set<int> m_RanksToReceive;

// <StreamName, <AppMasterRank, AppAllRankSet>>
static std::map<std::string, std::map<int, std::set<int>>> m_WritersMap;
Expand Down

0 comments on commit 217114f

Please sign in to comment.