From d4d1b69da2ff088f6127253391f523394360d54a Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 19 Mar 2004 17:43:57 +0000 Subject: [PATCH] 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 --- deal.II/lac/include/lac/vector.templates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } -- 2.39.5