Skip to content

Commit

Permalink
Merge Pull Request #9863 from trilinos/Trilinos/tpetra_shadows
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: tpetra:  fixed shadow warnings
PR Author: kddevin
  • Loading branch information
trilinos-autotester authored Oct 27, 2021
2 parents a01a8dd + 0d9ab22 commit 66f7efc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,6 @@ namespace {
// constructor. The returned matrix should also be diagonal and
// should equal tgt_mat.
Teuchos::ParameterList dummy;
typedef CrsMatrix<Scalar, LO, GO> crs_type;
RCP<crs_type> A_tgt2 =
Tpetra::importAndFillCompleteCrsMatrix<crs_type> (src_mat, importer,
Teuchos::null,
Expand Down
12 changes: 6 additions & 6 deletions packages/tpetra/core/test/RowMatrixTransposer/sorted.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ testTranspose (bool& success,
valsBuf.begin ());

bool good = true;
for (LO lclRow = 0; lclRow < lclNumRows; ++lclRow) {
if (lclColIndsBuf[lclRow] != lclRow) {
for (LO lclInd = 0; lclInd < lclNumRows; ++lclInd) {
if (lclColIndsBuf[lclInd] != lclInd) {
good = false;
break;
}
else if (valsBuf[lclRow] != 1.0) {
else if (valsBuf[lclInd] != 1.0) {
good = false;
break;
}
Expand Down Expand Up @@ -308,12 +308,12 @@ testTranspose (bool& success,

if (success) {
bool good = true;
for (LO lclRow = 0; lclRow < lclNumRows; ++lclRow) {
if (lclColInds[lclRow] != lclRow) {
for (LO lclInd = 0; lclInd < lclNumRows; ++lclInd) {
if (lclColInds[lclInd] != lclInd) {
good = false;
break;
}
else if (vals[lclRow] != 1.0) {
else if (vals[lclInd] != 1.0) {
good = false;
break;
}
Expand Down

0 comments on commit 66f7efc

Please sign in to comment.