You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Hello,
I wish to multiply a PETSeWrapper::MPI::SparseMatrix with a Vector<double>. I would be glad if someone can point to the right material to do this efficiently.
Thanks in advance.
--Nitish
Nitish Anand
unread,
Aug 24, 2017, 10:17:36 AM8/24/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
Errata: PETSc
Jean-Paul Pelteret
unread,
Aug 24, 2017, 10:21:59 AM8/24/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
the current object represents a parallel distributed matrix (of type PETScWrappers::MPI::SparseMatrix), then both vectors have to be distributed vectors as well
. So I suspect that what you need to do is to create a pair of distributed vectors and then simply copy the data from the deal.II vector to the PETSc one using operator=.
Does this help?
Regards,
Jean-Paul
Nitish Anand
unread,
Aug 24, 2017, 11:03:57 AM8/24/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to deal.II User Group
In fact, that was the issue.. Works well now. :) Thanks !