[petsc-users] MatCreateShell with VecCreateGhost

Bikash Kanungo bikash at umich.edu
Tue Dec 1 17:18:51 CST 2015


Hi,

I want to implement a matrix-free KSP solve using user-defined MATOP_MULT
and MATOP_MULT_TRANSPOSE. Each of these user-defined functions take in  Mat
A, Vec x and Vec y as arguments and store A*x in y. To perform A*x in the
user defined fashion, each processor requires access to some non-local
nodes of x. So, is there a way I can create these two vectors (x and y)
using VecCreateGhost?

Thanks,
Bikash

-- 
Bikash S. Kanungo
PhD Student
Computational Materials Physics Group
Mechanical Engineering
University of Michigan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151201/9c38a47f/attachment.html>


More information about the petsc-users mailing list