]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rephrased an operation that turns out to be illegal for PETSc scalar-complex
authorToby D. Young <tyoung@ippt.pan.pl>
Wed, 25 Aug 2010 13:32:10 +0000 (13:32 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Wed, 25 Aug 2010 13:32:10 +0000 (13:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@21702 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_vector_base.h

index 919b2fccadeb3deca531caffa3a6cef6ad9fa30b..4c3e7e44bbc993cf41e76faebef940aece184042 100644 (file)
@@ -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));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.