From: Sebastian Kinnewig Date: Wed, 24 Jan 2024 12:44:47 +0000 (+0100) Subject: Fix TpetraWrappers::Vector::operator=(double) X-Git-Tag: relicensing~116^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16529%2Fhead;p=dealii.git Fix TpetraWrappers::Vector::operator=(double) --- diff --git a/include/deal.II/lac/trilinos_tpetra_vector.templates.h b/include/deal.II/lac/trilinos_tpetra_vector.templates.h index 6d93e62eeb..9f566733fa 100644 --- a/include/deal.II/lac/trilinos_tpetra_vector.templates.h +++ b/include/deal.II/lac/trilinos_tpetra_vector.templates.h @@ -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;