diff --git a/packages/belos/tpetra/example/BlockCG/BlockCGTpetraExFile.cpp b/packages/belos/tpetra/example/BlockCG/BlockCGTpetraExFile.cpp index 53104acca9d7..61efa690e9c8 100644 --- a/packages/belos/tpetra/example/BlockCG/BlockCGTpetraExFile.cpp +++ b/packages/belos/tpetra/example/BlockCG/BlockCGTpetraExFile.cpp @@ -129,13 +129,13 @@ int run(int argc, char *argv[]) { // Get the problem RCP A; Tpetra::Utils::readHBMatrix(filename,Comm,A); - RCP map = A->getDomainMap(); + RCP Map = A->getDomainMap(); // Create initial vectors RCP 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 ); @@ -196,7 +196,7 @@ int run(int argc, char *argv[]) { bool badRes = false; std::vector actualResids( numrhs ); std::vector 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 ); diff --git a/packages/belos/tpetra/example/BlockCG/PseudoBlockCGTpetraExFile.cpp b/packages/belos/tpetra/example/BlockCG/PseudoBlockCGTpetraExFile.cpp index 1bfacc9c37d2..59fde00389b1 100644 --- a/packages/belos/tpetra/example/BlockCG/PseudoBlockCGTpetraExFile.cpp +++ b/packages/belos/tpetra/example/BlockCG/PseudoBlockCGTpetraExFile.cpp @@ -130,14 +130,14 @@ int run(int argc, char *argv[]) { // Get the problem RCP A; Tpetra::Utils::readHBMatrix(filename,Comm,A); - RCP map = A->getDomainMap(); + RCP Map = A->getDomainMap(); // Create initial vectors RCP 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 ); diff --git a/packages/belos/tpetra/example/BlockGmres/PseudoBlockGmresTpetraExFile.cpp b/packages/belos/tpetra/example/BlockGmres/PseudoBlockGmresTpetraExFile.cpp index 5bdf8d0f440a..923be355af22 100644 --- a/packages/belos/tpetra/example/BlockGmres/PseudoBlockGmresTpetraExFile.cpp +++ b/packages/belos/tpetra/example/BlockGmres/PseudoBlockGmresTpetraExFile.cpp @@ -139,13 +139,13 @@ int run(int argc, char *argv[]) { // Get the problem RCP A; Tpetra::Utils::readHBMatrix(filename, comm, A); - RCP map = A->getDomainMap(); + RCP Map = A->getDomainMap(); // Create initial vectors RCP 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 ); @@ -208,7 +208,7 @@ int run(int argc, char *argv[]) { bool badRes = false; std::vector actualResids( numrhs ); std::vector 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 ); diff --git a/packages/belos/tpetra/example/GCRODR/GCRODRTpetraExFile.cpp b/packages/belos/tpetra/example/GCRODR/GCRODRTpetraExFile.cpp index bc55b0331b9f..f27a4e3264fc 100644 --- a/packages/belos/tpetra/example/GCRODR/GCRODRTpetraExFile.cpp +++ b/packages/belos/tpetra/example/GCRODR/GCRODRTpetraExFile.cpp @@ -141,13 +141,13 @@ int run(int argc, char *argv[]) { // Get the problem RCP A; Tpetra::Utils::readHBMatrix(filename, Comm, A); - RCP map = A->getDomainMap(); + RCP Map = A->getDomainMap(); // Create initial vectors RCP 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 );