Skip to content

Commit

Permalink
Tpetra: Making applyTranspose replicated logic consistent with applyN…
Browse files Browse the repository at this point in the history
…onTranspose (removing a fence in the process)
  • Loading branch information
csiefer2 committed Sep 13, 2023
1 parent 58ad750 commit f1ae552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tpetra/core/src/Tpetra_CrsMatrix_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4909,7 +4909,7 @@ CrsMatrix<Scalar, LocalOrdinal, GlobalOrdinal, Node>::
RCP<const MV> 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;
Expand Down

0 comments on commit f1ae552

Please sign in to comment.