]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use explicit cast, rather than implicit one, since the latter confuses the
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Mar 2004 15:48:56 +0000 (15:48 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Mar 2004 15:48:56 +0000 (15:48 +0000)
compiler when using petsc 2.2.

git-svn-id: https://svn.dealii.org/trunk@8828 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_vector_base.h

index 0cb7e52d68ef7db1ee80509da7412289dad44381..745bd3e4226d29eea6d07d66c41d12f1ba72c85c 100644 (file)
@@ -820,12 +820,12 @@ namespace PETScWrappers
                                        // read access..
       PetscScalar *ptr;
       int ierr
-        = VecGetArray (vector, &ptr);
+        = VecGetArray (static_cast<const Vec &>(vector), &ptr);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
 
       const PetscScalar value = *(ptr+index);
 
-      ierr = VecRestoreArray (vector, &ptr);
+      ierr = VecRestoreArray (static_cast<const Vec &>(vector), &ptr);
       AssertThrow (ierr == 0, ExcPETScError(ierr));
       
       return value;

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.