]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use explicit casts to make compiler happier with petsc2.2.0
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Mar 2004 17:43:57 +0000 (17:43 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Mar 2004 17:43:57 +0000 (17:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@8830 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.templates.h

index bac515b2569d2b4cdaadbe5010bcafe8c60ee87d..f6d695d567f4bc5e15289befe2f95d039dd39e51 100644 (file)
@@ -89,14 +89,14 @@ Vector<Number>::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<const Vec&>(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<const Vec&>(v), &start_ptr);
       AssertThrow (ierr == 0, PETScWrappers::VectorBase::ExcPETScError(ierr));      
     }
 }

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.