Skip to content

Commit

Permalink
tpetra: fixed indexing error in describe() #9870 (#9874)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddevin authored Oct 28, 2021
1 parent 0e7c14a commit 44fdc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tpetra/core/src/Tpetra_CrsGraph_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5125,14 +5125,14 @@ namespace Tpetra {
if (isGloballyIndexed()) {
auto rowview = gblInds_wdv.getHostView(Access::ReadOnly);
for (size_t j=0; j < rowinfo.numEntries; ++j){
GlobalOrdinal colgid = rowview[j] + rowinfo.offset1D;
GlobalOrdinal colgid = rowview[j + rowinfo.offset1D];
out << colgid << " ";
}
}
else if (isLocallyIndexed()) {
auto rowview = lclIndsUnpacked_wdv.getHostView(Access::ReadOnly);
for (size_t j=0; j < rowinfo.numEntries; ++j) {
LocalOrdinal collid = rowview[j] + rowinfo.offset1D;
LocalOrdinal collid = rowview[j + rowinfo.offset1D];
out << colMap_->getGlobalElement(collid) << " ";
}
}
Expand Down

0 comments on commit 44fdc45

Please sign in to comment.