From 05150190b2fcfe3b0f50468338523a995d76176f Mon Sep 17 00:00:00 2001 From: "Toby D. Young" Date: Thu, 26 Aug 2010 15:44:43 +0000 Subject: [PATCH] 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 --- deal.II/lac/include/lac/petsc_vector_base.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); -- 2.39.5