void printVec(const Kokkos::MultiVector<float,Node> &vec) { const int n = vec.getNumRows(); ArrayRCP<const float> vals = vec.getValues(0); ArrayRCP<const float> vals_h = vec.getNode()->viewBuffer(n,vals); for (int i=0; i<n; ++i) { cout << " " << vals_h[i]; } cout << endl; }