Skip to content

Commit

Permalink
Merge Pull Request #7751 from Tech-XCorp/Trilinos/tpetraIfpack2FenceFix
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Tpetra: Ifpack2 fence fix
PR Author: MicheldeMessieres
  • Loading branch information
trilinos-autotester authored Aug 4, 2020
2 parents 73f6d1c + 14d8ac6 commit 82df5c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/tpetra/core/src/Tpetra_BlockCrsMatrix_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,8 @@ class GetLocalDiagCopy {
const Scalar one_minus_omega = Teuchos::ScalarTraits<Scalar>::one()-omega;
const Scalar minus_omega = -omega;

Kokkos::fence();

if (numVecs == 1) {
for (LO lclRow = rowBegin; lclRow != rowEnd; lclRow += rowStride) {
const LO actlRow = lclRow - 1;
Expand Down

0 comments on commit 82df5c2

Please sign in to comment.