]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fixed an error that occurred for Trilinos 9.0.0 but not 8.0.8
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Oct 2008 09:35:30 +0000 (09:35 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 13 Oct 2008 09:35:30 +0000 (09:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@17189 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/trilinos_precondition_block.cc

index 433a891a78026db3429168efb75d68a882364b28..fe1c8a72fdc0b39f4c659c83ad380773ab3b45cb 100755 (executable)
@@ -61,8 +61,7 @@ namespace TrilinosWrappers
                                        // (Thyra wrapper around the
                                        // matrix).
     Teuchos::RCP<const Thyra::LinearOpBase<double> > tmpM = 
-      Teuchos::rcp(new Thyra::EpetraLinearOp(Teuchos::rcp(&*input_M.matrix, 
-                                                         false)));
+      Thyra::epetraLinearOp(Teuchos::rcp(&*input_M.matrix, false));
 
     Teuchos::RCP<const Thyra::LinearOpSourceBase<double> > M 
       = Teuchos::rcp(new Thyra::DefaultLinearOpSource<double>(tmpM), true);
@@ -72,11 +71,11 @@ namespace TrilinosWrappers
                                        // Create a Thyra version of
                                        // the preconditioner.
     Teuchos::RCP<const Thyra::LinearOpBase<double> > tmpP = 
-      Teuchos::rcp(new Thyra::EpetraLinearOp(Teuchos::rcp(const_cast<Epetra_Operator*>(input_P),
-                                                         false), 
-                                            Thyra::NOTRANS,
-                                            Thyra::EPETRA_OP_APPLY_APPLY_INVERSE,
-                                            Thyra::EPETRA_OP_ADJOINT_SUPPORTED));
+      Thyra::epetraLinearOp(Teuchos::rcp(const_cast<Epetra_Operator*>(input_P),
+                                        false), 
+                           Thyra::NOTRANS,
+                           Thyra::EPETRA_OP_APPLY_APPLY_INVERSE,
+                           Thyra::EPETRA_OP_ADJOINT_SUPPORTED);
        
     //Thyra::ConstLinearOperator<double> opPM = tmpP;
 

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.