From: bangerth Date: Tue, 25 Sep 2012 12:32:14 +0000 (+0000) Subject: Use a void* in the argument list of MatShellGetContext as required by the compiler. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15178221c3f643666b2918a66fe011ef9a343cc4;p=dealii-svn.git Use a void* in the argument list of MatShellGetContext as required by the compiler. git-svn-id: https://svn.dealii.org/trunk@26719 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/lac/petsc_matrix_free.cc b/deal.II/source/lac/petsc_matrix_free.cc index d9a6ae207b..24ffc9a68e 100755 --- a/deal.II/source/lac/petsc_matrix_free.cc +++ b/deal.II/source/lac/petsc_matrix_free.cc @@ -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(this_object)->vmult (dst, src); return (0); }