Skip to content

Commit

Permalink
#210: restore Map variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 26, 2023
1 parent dd85f8a commit b3529ef
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ int run(int argc, char *argv[]) {
// Get the problem
RCP<tcrsmatrix_t> A;
Tpetra::Utils::readHBMatrix(filename, comm, A);
RCP<const tmap_t> map = A->getDomainMap();
RCP<const tmap_t> Map = A->getDomainMap();

// Create initial vectors
RCP<MV> B, X;
X = rcp( new MV(map,numrhs) );
X = rcp( new MV(Map,numrhs) );
MVT::MvRandom( *X );
B = rcp( new MV(map,numrhs) );
B = rcp( new MV(Map,numrhs) );
OPT::Apply( *A, *X, *B );
MVT::MvInit( *X, 0.0 );

Expand Down Expand Up @@ -218,7 +218,7 @@ int run(int argc, char *argv[]) {
bool badRes = false;
std::vector<ST> actualResids( numrhs );
std::vector<ST> rhsNorm( numrhs );
MV resid(map, numrhs);
MV resid(Map, numrhs);
OPT::Apply( *A, *X, resid );
MVT::MvAddMv( -1.0, resid, 1.0, *B, resid );
MVT::MvNorm( resid, actualResids );
Expand Down

0 comments on commit b3529ef

Please sign in to comment.