]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix TpetraWrappers::Vector::operator=(double) 16529/head
authorSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Wed, 24 Jan 2024 12:44:47 +0000 (13:44 +0100)
committerSebastian Kinnewig <kinnewig@ifam.uni-hannover.de>
Wed, 24 Jan 2024 12:44:47 +0000 (13:44 +0100)
include/deal.II/lac/trilinos_tpetra_vector.templates.h

index 6d93e62eeb8f72d45407dcb43f2f1aa9bd4738e5..9f566733fabd8111591b359708e4bf163b747dd9 100644 (file)
@@ -338,7 +338,7 @@ namespace LinearAlgebra
       // can optimize this somehow.
       vector->putScalar(/*s=*/0.0);
 
-      if (nonlocal_vector.is_null())
+      if (!nonlocal_vector.is_null())
         nonlocal_vector->putScalar(/*s=*/0.0);
 
       return *this;

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.