Skip to content

Commit

Permalink
#210: fix bad variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 25, 2023
1 parent bc7c2c3 commit a02a87a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ int run(int argc, char *argv[]) {

// 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 @@ -207,7 +207,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 a02a87a

Please sign in to comment.