From f1ae552c5f4d3c5b34468ae5b7c80e7dac8de721 Mon Sep 17 00:00:00 2001 From: Chris Siefert Date: Wed, 13 Sep 2023 15:34:14 -0600 Subject: [PATCH] Tpetra: Making applyTranspose replicated logic consistent with applyNonTranspose (removing a fence in the process) --- packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp b/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp index 391804ac02c1..a18434da2c2e 100644 --- a/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp +++ b/packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp @@ -4909,7 +4909,7 @@ CrsMatrix:: RCP X; // some parameters for below - const bool Y_is_replicated = ! Y_in.isDistributed (); + const bool Y_is_replicated = (! Y_in.isDistributed () && this->getComm ()->getSize () != 1); const bool Y_is_overwritten = (beta == ZERO); if (Y_is_replicated && this->getComm ()->getRank () > 0) { beta = ZERO;