Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
seheracer committed Jan 14, 2021
1 parent 8098d56 commit 0f1d02f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/zoltan2/core/src/models/Zoltan2_CommGraphModel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ CommGraphModel<Adapter>::CommGraphModel(
eWeights_(),
vtxDist_()
{
int me = comm_->getRank();
int commSize = comm_->getSize();

// Get XpetraCrsGraphAdapter from GraphAdapter
Expand All @@ -327,7 +326,7 @@ CommGraphModel<Adapter>::CommGraphModel(
Z2_FORWARD_EXCEPTIONS;

// Get the graph from the input adapter
auto inGraph = ia->getUserGraph();
auto inGraph = ia->getXpetraGraph();

// Get the importer of the graph
auto imp = inGraph->getImporter();
Expand Down Expand Up @@ -470,7 +469,7 @@ void CommGraphModel<Adapter>::migrateGraph()
Teuchos::waitAll<int>(*comm_, Teuchos::arrayView(requests, myVertexShare));

// Prefix sum over the offsets
for(int i = 1; i <= myVertexShare; i++)
for(size_t i = 1; i <= myVertexShare; i++)
eOffsets_[i] += eOffsets_[i-1];

// Recompute the number of local edges
Expand Down

0 comments on commit 0f1d02f

Please sign in to comment.