From: kronbichler Date: Mon, 13 Oct 2008 09:35:30 +0000 (+0000) Subject: Fixed an error that occurred for Trilinos 9.0.0 but not 8.0.8 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b882bd79e46ddd37bb3fd07181e4f46032fe2e1;p=dealii-svn.git Fixed an error that occurred for Trilinos 9.0.0 but not 8.0.8 git-svn-id: https://svn.dealii.org/trunk@17189 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/source/trilinos_precondition_block.cc b/deal.II/lac/source/trilinos_precondition_block.cc index 433a891a78..fe1c8a72fd 100755 --- a/deal.II/lac/source/trilinos_precondition_block.cc +++ b/deal.II/lac/source/trilinos_precondition_block.cc @@ -61,8 +61,7 @@ namespace TrilinosWrappers // (Thyra wrapper around the // matrix). Teuchos::RCP > tmpM = - Teuchos::rcp(new Thyra::EpetraLinearOp(Teuchos::rcp(&*input_M.matrix, - false))); + Thyra::epetraLinearOp(Teuchos::rcp(&*input_M.matrix, false)); Teuchos::RCP > M = Teuchos::rcp(new Thyra::DefaultLinearOpSource(tmpM), true); @@ -72,11 +71,11 @@ namespace TrilinosWrappers // Create a Thyra version of // the preconditioner. Teuchos::RCP > tmpP = - Teuchos::rcp(new Thyra::EpetraLinearOp(Teuchos::rcp(const_cast(input_P), - false), - Thyra::NOTRANS, - Thyra::EPETRA_OP_APPLY_APPLY_INVERSE, - Thyra::EPETRA_OP_ADJOINT_SUPPORTED)); + Thyra::epetraLinearOp(Teuchos::rcp(const_cast(input_P), + false), + Thyra::NOTRANS, + Thyra::EPETRA_OP_APPLY_APPLY_INVERSE, + Thyra::EPETRA_OP_ADJOINT_SUPPORTED); //Thyra::ConstLinearOperator opPM = tmpP;