[Trilinos-Users] Error with Tpetra's crs matrix insertglobalvalues method
Ashesh Chattopadhyay
ashesh6810 at gmail.com
Tue Jun 14 15:58:19 EDT 2016
Hi all,
Can you please help me understand where I am going wrong when I use
insertglobalvalues method in Tpetra's Crs matrix.
*Array<scalar_type> values(NumEntries);Array<size_t> indices(NumEntries);
size_t countN=0; for(size_t j=0;j<4;j++) {
if(N[j]>=0) { indices[countN]=N[j];// const scalar_type
two = static_cast<scalar_type> ( 2.0); values[countN]=
-static_cast<scalar_type> (K(myGlobalElements[i],N[j]));
values[countN]=two; countN=countN+1; }
} A->insertGlobalValues (myGlobalElements[i], indices(), values());*
Here, K is a Kokkos View with type double.
When I use this, the insertglobalvalues method is giving me an error:
--
Research Assistant, Multi-Scale Multi-Physics Computation Lab
University of Texas at El Paso
Texas, El Paso, USA
(+1) 915-355-5013
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20160614/5a685b54/attachment.html>
More information about the Trilinos-Users
mailing list