Skip to content

Commit

Permalink
#210: restore variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
tlamonthezie committed Sep 26, 2023
1 parent 9d82978 commit dd85f8a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions packages/belos/tpetra/example/BlockCG/BlockCGTpetraExFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,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 @@ -196,7 +196,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
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,14 @@ 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
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,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 @@ -208,7 +208,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
6 changes: 3 additions & 3 deletions packages/belos/tpetra/example/GCRODR/GCRODRTpetraExFile.cpp
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

0 comments on commit dd85f8a

Please sign in to comment.