From d1143a02fa01d2676867c4b7cf1425d450f3e36b Mon Sep 17 00:00:00 2001 From: kronbichler Date: Fri, 14 May 2010 13:35:51 +0000 Subject: [PATCH] One more compatibility update. git-svn-id: https://svn.dealii.org/trunk@21129 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/trilinos_solver.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deal.II/lac/source/trilinos_solver.cc b/deal.II/lac/source/trilinos_solver.cc index 8d0f4b4aba..2ae4df4e55 100644 --- a/deal.II/lac/source/trilinos_solver.cc +++ b/deal.II/lac/source/trilinos_solver.cc @@ -82,7 +82,7 @@ namespace TrilinosWrappers // to let the AztecOO solver // know about the matrix and // vectors. - linear_problem = std::auto_ptr + linear_problem = std_cxx1x::shared_ptr (new Epetra_LinearProblem(const_cast(&A.trilinos_matrix()), &x.trilinos_vector(), const_cast(&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 + linear_problem = std_cxx1x::shared_ptr (new Epetra_LinearProblem (const_cast(&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 + linear_problem = std_cxx1x::shared_ptr (new Epetra_LinearProblem(const_cast(&A.trilinos_matrix()), &x.trilinos_vector(), const_cast(&b.trilinos_vector()))); // Next we can allocate the // AztecOO solver... - solver = std::auto_ptr (Amesos().Create("Amesos_Klu", + solver = std_cxx1x::shared_ptr (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 + linear_problem = std_cxx1x::shared_ptr (new Epetra_LinearProblem (const_cast(&A.trilinos_matrix()), &ep_x, &ep_b)); // Next we can allocate the // AztecOO solver... - solver = std::auto_ptr (Amesos().Create("Amesos_Klu", + solver = std_cxx1x::shared_ptr (Amesos().Create("Amesos_Klu", *linear_problem)); verbose_cout << "Starting symbolic factorization" << std::endl; -- 2.39.5