Skip to content

Commit

Permalink
stokhos : simplify testing with cmake macro
Browse files Browse the repository at this point in the history
  • Loading branch information
romintomasetti committed Jul 7, 2022
1 parent 982b460 commit a593daf
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 570 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ namespace Stokhos {
Vector& vec = const_cast<Vector&>(vec_const);

// Get data
ArrayRCP<Scalar> vec_vals = vec.get1dViewNonConst();
auto vec_vals = vec.getLocalViewDevice(Tpetra::Access::ReadOnly);
const size_t vec_size = vec_vals.size();

// Create view of data
Expand Down Expand Up @@ -329,7 +329,7 @@ namespace Stokhos {
const LocalOrdinal mp_size = Storage::static_size;

// Get data
ArrayRCP<Scalar> vec_vals = vec.get1dViewNonConst();
auto vec_vals = vec.getLocalViewDevice(Tpetra::Access::ReadOnly);
const size_t vec_size = vec_vals.size();

// Create view of data
Expand Down
Loading

0 comments on commit a593daf

Please sign in to comment.