Hello,

I have a working matrix-based solver using Petsc vectors which i am 
currently trying to transform to a matrix-free code. When I use the deal.ii 
Matrix-free infrastructure with Petsc-vectors eg. using the 
distribute_local_to_global function I get the following error message:

 error: cannot convert ‘dealii::LinearAlgebraPETSc::MPI::Vector’ {aka 
‘dealii::PETScWrappers::MPI::Vector’} to 
‘dealii::LinearAlgebra::distributed::Vector<double, 
dealii::MemorySpace::Host>&’
   51 |     system_matrix.initialize_dof_vector(system_rhs);
      |                                         ^~~~~~~~~~

I was wondering if there was a way of interfacing the Matrix-free 
infrastructure to Petsc vectors or alternatively a method of copying a 
dealii distributed vector to a Petsc MPI vector?

Many thanks,

Tom

-- 
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.
To view this discussion visit 
https://groups.google.com/d/msgid/dealii/f9059e75-85c4-463e-bb2a-a11a06b21444n%40googlegroups.com.

Reply via email to