[Trilinos-Users] [EXTERNAL] Extracting not-necessarily-local entries from Epetra_RowMatrix

Williams, Alan B william at sandia.gov
Wed Aug 22 13:16:34 MDT 2012


Jesse,
As I recall, epetra matrices do not allow accessing entries for rows that are not local in the row-map. I don't believe FECrsMatrix allows this either. Once FECrsMatrix has been 'GlobalAssemble()'d, it no longer has local copies of the non-local entries.
Alan

________________________________
From: trilinos-users-bounces at software.sandia.gov [trilinos-users-bounces at software.sandia.gov] on behalf of Jesse Chan [jchan985 at gmail.com]
Sent: Wednesday, August 22, 2012 12:50 PM
To: trilinos-users at software.sandia.gov
Subject: [EXTERNAL] [Trilinos-Users] Extracting not-necessarily-local entries from Epetra_RowMatrix

I'm trying to pull out a sub-matrix of entries from an Epetra_RowMatrix that I get from an Epetra_LinearProblem.  However, I can't seem to figure out how to actually access the entries - is there some way (short of a cast into what I know the matrix to be, a FECrsMatrix) to access terms given a list of global indices?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20120822/13118ad1/attachment.html 


More information about the Trilinos-Users mailing list