From 3bb59f53bef60f14e46a4d8061ff023f6b6ca84d Mon Sep 17 00:00:00 2001 From: "Toby D. Young" Date: Wed, 25 Aug 2010 13:32:10 +0000 Subject: [PATCH] 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 --- deal.II/lac/include/lac/petsc_vector_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.5