From: Toby D. Young Date: Thu, 26 Aug 2010 15:44:43 +0000 (+0000) Subject: Revert previous PETSc patch which is legal with clanguage C plus plus X-Git-Tag: v8.0.0~5669 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05150190b2fcfe3b0f50468338523a995d76176f;p=dealii.git Revert previous PETSc patch which is legal with clanguage C plus plus git-svn-id: https://svn.dealii.org/trunk@21729 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/lac/include/lac/petsc_vector_base.h b/deal.II/lac/include/lac/petsc_vector_base.h index 4c3e7e44bb..c74409c916 100644 --- a/deal.II/lac/include/lac/petsc_vector_base.h +++ b/deal.II/lac/include/lac/petsc_vector_base.h @@ -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));