From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f819fbe22463a29b3392b63acae3739e25e01dd;p=dealii-svn.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));