[Trilinos-Users] [EXTERNAL] Converting 1D to 2D matrix in Tpetra

Siva Rajamanickam srajama at sandia.gov
Thu Jan 8 16:48:40 MST 2015


David,
   You are right, in order to construct the required map for the 2D case the 
receiving processor needs
   the information which rows and columns  it is going to partially own.

  Using low-level MPI calls is one way to get the information all the processors 
(for the 2D case). You could also use the
Distributor class to move the edges using createFromSends method. This is a 
low-level class that most Tpetra users
do not use. The Distributor documentation is here: 
http://trilinos.org/docs/dev/packages/tpetra/doc/html/classTpetra_1_1Distributor.html
This will first help you move the ids to correct processors to create the map. 
As a second step you could move the values as well
and construct a matrix. If you need more info, let me know.

Thanks
Siva

On 01/04/2015 03:18 PM, Hysom, David A. wrote:
> Hi,
>
> I'm a novice to Tpetra's import/export capabilities, and would like
> to know if there's an easy way to do the following
> (ref: http://www.sandia.gov/~srajama/publications/2dpart_SC13.pdf  )
>
> We have a row-partitioned 1D CrsMatrix, and would like to construct a
> 2D matrix. Using some code that Karen D. gave us a couple of years ago,
> a processor (wrt the 1D matrix) can determine which processor should
> receive every edge that it (the 1D matrix) owns. However, I think that,
> in order to construct the required Map for the 2D case, the receiving
> processor (wrt the 2D matrix) needs this information. Is this the case?
> If so, is there any (reasonably easy) way to use Tpetra to convey this mapping 
> information, or do we need to write our own low-level MPI calls?
>
> (I suspect I may not have explained this very well, so please ask
> for clarification!)
>
> thanks, David
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150108/e8245c12/attachment.html>


More information about the Trilinos-Users mailing list