Skip to content

Commit

Permalink
Tpetra: add missing syncs/modifies in BlockMultiVector Import test
Browse files Browse the repository at this point in the history
  • Loading branch information
tasmith4 committed Dec 18, 2020
1 parent 44d1a31 commit 9a94dab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/tpetra/core/test/Block/BlockMultiVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,8 @@ namespace {

BMV X (meshMap, blockSize, numVecs);
BMV Y (overlappingMeshMap, blockSize, numVecs);
X.sync_host();
Y.sync_host();

//
// Fill X with meaningful things to test Import with REPLACE combine mode.
Expand Down Expand Up @@ -442,6 +444,7 @@ namespace {
for (LO i = 0; i < blockSize; ++i) {
X_overlap(i) = static_cast<Scalar> (i+1);
}
X.modify_host();

{ // BlockMultiVector relies on the point multivector infrastructure
const auto pointMeshMap = BMV::makePointMap(meshMap, blockSize);
Expand Down

0 comments on commit 9a94dab

Please sign in to comment.