From: Wolfgang Bangerth Date: Fri, 19 Mar 2004 17:43:57 +0000 (+0000) Subject: Use explicit casts to make compiler happier with petsc2.2.0 X-Git-Tag: v8.0.0~15518 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139d7513fa86e9a2ed571a98397795841b7731d7;p=dealii.git Use explicit casts to make compiler happier with petsc2.2.0 git-svn-id: https://svn.dealii.org/trunk@8830 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/vector.templates.h b/deal.II/lac/include/lac/vector.templates.h index bac515b256..f6d695d567 100644 --- a/deal.II/lac/include/lac/vector.templates.h +++ b/deal.II/lac/include/lac/vector.templates.h @@ -89,14 +89,14 @@ Vector::Vector (const PETScWrappers::VectorBase &v) // get a representation of the vector // and copy it PetscScalar *start_ptr; - int ierr = VecGetArray (v, &start_ptr); + int ierr = VecGetArray (static_cast(v), &start_ptr); AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); std::copy (start_ptr, start_ptr+dim, begin()); // restore the representation of the // vector - ierr = VecRestoreArray (v, &start_ptr); + ierr = VecRestoreArray (static_cast(v), &start_ptr); AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr)); } }