]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix a bug in petsc_matrix_free.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 Aug 2013 21:42:04 +0000 (21:42 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 12 Aug 2013 21:42:04 +0000 (21:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@30295 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_matrix_free.cc

index 9295ce6146bbedf2cbbba2b2149dd730f05b99aa..b169d1260a3a3702fdacc73617dd871976a7271b 100644 (file)
@@ -234,7 +234,7 @@ namespace PETScWrappers
     vmult (*y, *x);
 
     // copy the result back to dst
-    ierr = VecCopy (&(*(*y)), dst);
+    ierr = VecCopy (static_cast<const Vec &>(*y), dst);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
     delete (x);

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.