]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use a void* in the argument list of MatShellGetContext as required by the compiler.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Sep 2012 12:32:14 +0000 (12:32 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 25 Sep 2012 12:32:14 +0000 (12:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@26719 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_matrix_free.cc

index d9a6ae207bc0f9044b3376961408ec1eb292d6aa..24ffc9a68e21496b8ff34371ff96daf04a7ed77e 100755 (executable)
@@ -246,12 +246,12 @@ namespace PETScWrappers
                                      // object and link the given matrix A
                                      // to the matrix-vector multiplication
                                      // of this MatrixFree object,
-    MatrixFree  *this_object;
+    void  *this_object;
     int ierr = MatShellGetContext (A, &this_object);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
                                      // call vmult of this object:
-    this_object->vmult (dst, src);
+    reinterpret_cast<MatrixFree*>(this_object)->vmult (dst, src);
 
     return (0);
   }

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.