Skip to content

Commit

Permalink
Merge Pull Request #9240 from kyungjoo-kim/Trilinos/tpetra-bcrs
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Tpetra - fix failing test in block crs
PR Author: kyungjoo-kim
  • Loading branch information
trilinos-autotester authored Jun 9, 2021
2 parents f82a23e + 3a12d16 commit 17a0d3c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/tpetra/core/test/Block/BlockCrsMatrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ namespace {

using local_inds_host_view_type = typename BCM::local_inds_host_view_type;
using values_host_view_type = typename BCM::values_host_view_type;
using nonconst_values_host_view_type = typename BCM::nonconst_values_host_view_type;

int lclSuccess = 1;
int gblSuccess = 1;
Expand Down Expand Up @@ -1183,10 +1184,10 @@ namespace {
lclRowInd <= meshRowMap.getMaxLocalIndex (); ++lclRowInd) {
const GO gblRowInd = meshRowMap.getGlobalElement (lclRowInd);
local_inds_host_view_type lclColInds;
values_host_view_type myVals;
nonconst_values_host_view_type myVals;
LO numEnt = 0;
blockMat.getLocalRowView (lclRowInd, lclColInds, myVals); numEnt = lclColInds.extent(0);

blockMat.getLocalRowViewNonConst (lclRowInd, lclColInds, myVals); numEnt = lclColInds.extent(0);
// Fill the diagonal block D such that D(i,j) = (lclRowInd+1) *
// (1 + i + j*blockSize). Fill the off-diagonal block with -1.
// This ensures that we can tell we got the right blocks, and
Expand Down

0 comments on commit 17a0d3c

Please sign in to comment.