]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Revert previous PETSc patch which is legal with clanguage C plus plus
authorToby D. Young <tyoung@ippt.pan.pl>
Thu, 26 Aug 2010 15:44:43 +0000 (15:44 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Thu, 26 Aug 2010 15:44:43 +0000 (15:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@21729 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 4c3e7e44bbc993cf41e76faebef940aece184042..c74409c916362f3c614ba9426d95bac02a0db26a 100644 (file)
@@ -972,13 +972,14 @@ namespace PETScWrappers
       if (value == PetscScalar())
         return *this;
 
-                                       // use the PETSc function to add something
+                                       // use the PETSc function to
+                                       // add something
 #ifdef PETSC_USE_64BIT_INDICES
       const PetscInt petsc_i = index;
 #else
       const signed int petsc_i = index;
 #endif
-      const PetscScalar subtractand = -1 * value;
+      const PetscScalar subtractand = -value;
       const int ierr
         = VecSetValues (vector, 1, &petsc_i, &subtractand, ADD_VALUES);
       AssertThrow (ierr == 0, 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.