Dear Nitish,

Well, in the documentation to vmult 
<https://www.dealii.org/8.5.0/doxygen/deal.II/classPETScWrappers_1_1MatrixBase.html#abfe2eed88867f29534b2779a972a7c68>
 it 
states that when

> the current object represents a parallel distributed matrix (of type 
> PETScWrappers::MPI::SparseMatrix 
> <https://www.dealii.org/8.5.0/doxygen/deal.II/classPETScWrappers_1_1MPI_1_1SparseMatrix.html>),
>  
> 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= 
<https://www.dealii.org/8.5.0/doxygen/deal.II/classPETScWrappers_1_1MPI_1_1Vector.html#a324a18fcb0a4c286727ef57d820b63fc>
.

Does this help?

Regards,
Jean-Paul

On Thursday, August 24, 2017 at 4:17:36 PM UTC+2, Nitish Anand wrote:
>
> Errata: PETSc 
>
> On Thursday, August 24, 2017 at 4:14:56 PM UTC+2, Nitish Anand wrote:
>>
>> 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
>>
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to