]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
One more compatibility update.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 May 2010 13:35:51 +0000 (13:35 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 14 May 2010 13:35:51 +0000 (13:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@21129 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_solver.cc

index 8d0f4b4abadfd1ab7d8dc831ddfa0c3a56acfad4..2ae4df4e551f66ae2355a3912c543c99bb5630b0 100644 (file)
@@ -82,7 +82,7 @@ namespace TrilinosWrappers
                                        // to let the AztecOO solver
                                        // know about the matrix and
                                        // vectors.
-    linear_problem = std::auto_ptr<Epetra_LinearProblem> 
+    linear_problem = std_cxx1x::shared_ptr<Epetra_LinearProblem> 
       (new Epetra_LinearProblem(const_cast<Epetra_CrsMatrix*>(&A.trilinos_matrix()), 
                                &x.trilinos_vector(),
                                const_cast<Epetra_MultiVector*>(&b.trilinos_vector())));
@@ -177,7 +177,7 @@ namespace TrilinosWrappers
                                        // to let the AztecOO solver
                                        // know about the matrix and
                                        // vectors.
-    linear_problem = std::auto_ptr<Epetra_LinearProblem> 
+    linear_problem = std_cxx1x::shared_ptr<Epetra_LinearProblem> 
       (new Epetra_LinearProblem
        (const_cast<Epetra_CrsMatrix*>(&A.trilinos_matrix()), &ep_x, &ep_b));
 
@@ -401,14 +401,14 @@ namespace TrilinosWrappers
                                        // to let the AztecOO solver
                                        // know about the matrix and
                                        // vectors.
-    linear_problem = std::auto_ptr<Epetra_LinearProblem>
+    linear_problem = std_cxx1x::shared_ptr<Epetra_LinearProblem>
       (new Epetra_LinearProblem(const_cast<Epetra_CrsMatrix*>(&A.trilinos_matrix()), 
                                &x.trilinos_vector(),
                                const_cast<Epetra_MultiVector*>(&b.trilinos_vector())));
 
                                        // Next we can allocate the
                                        // AztecOO solver...
-    solver = std::auto_ptr<Amesos_BaseSolver> (Amesos().Create("Amesos_Klu",
+    solver = std_cxx1x::shared_ptr<Amesos_BaseSolver> (Amesos().Create("Amesos_Klu",
                                                               *linear_problem));
 
     verbose_cout << "Starting symbolic factorization" << std::endl;
@@ -468,13 +468,13 @@ namespace TrilinosWrappers
                                        // to let the AztecOO solver
                                        // know about the matrix and
                                        // vectors.
-    linear_problem = std::auto_ptr<Epetra_LinearProblem> 
+    linear_problem = std_cxx1x::shared_ptr<Epetra_LinearProblem> 
       (new Epetra_LinearProblem
        (const_cast<Epetra_CrsMatrix*>(&A.trilinos_matrix()), &ep_x, &ep_b));
 
                                        // Next we can allocate the
                                        // AztecOO solver...
-    solver = std::auto_ptr<Amesos_BaseSolver> (Amesos().Create("Amesos_Klu",
+    solver = std_cxx1x::shared_ptr<Amesos_BaseSolver> (Amesos().Create("Amesos_Klu",
                                                               *linear_problem));
 
     verbose_cout << "Starting symbolic factorization" << std::endl;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.