From: Toby D. Young Date: Wed, 25 Aug 2010 13:32:10 +0000 (+0000) Subject: Rephrased an operation that turns out to be illegal for PETSc scalar-complex X-Git-Tag: v8.0.0~5696 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bb59f53bef60f14e46a4d8061ff023f6b6ca84d;p=dealii.git Rephrased an operation that turns out to be illegal for PETSc scalar-complex git-svn-id: https://svn.dealii.org/trunk@21702 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 919b2fccad..4c3e7e44bb 100644 --- a/deal.II/lac/include/lac/petsc_vector_base.h +++ b/deal.II/lac/include/lac/petsc_vector_base.h @@ -978,7 +978,7 @@ namespace PETScWrappers #else const signed int petsc_i = index; #endif - const PetscScalar subtractand = -value; + const PetscScalar subtractand = -1 * value; const int ierr = VecSetValues (vector, 1, &petsc_i, &subtractand, ADD_VALUES); AssertThrow (ierr == 0, ExcPETScError(ierr));