Skip to content

Commit

Permalink
Merge Pull Request #9837 from trilinos/Trilinos/csiefer-6870a3e
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Tpetra: Fixing subtle Kokkos use error
PR Author: csiefer2
  • Loading branch information
trilinos-autotester authored Oct 21, 2021
2 parents cf3ae06 + 6870a3e commit ab51356
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/tpetra/core/src/Tpetra_MultiVector_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ namespace { // (anonymous)
{
// FIXME (mfh 15 Mar 2019) DualView doesn't have a stride
// method yet, but its Views do.
size_t strides[WrappedOrNotDualViewType::t_dev::Rank];
// NOTE: dv.stride() returns a vector of length one
// more than its rank
size_t strides[WrappedOrNotDualViewType::t_dev::Rank+1];
dv.stride(strides);
const size_t LDA = strides[1];
const size_t numRows = dv.extent (0);
Expand Down

0 comments on commit ab51356

Please sign in to comment.