[petsc-users] Providing matrix vector product yourself for matrix free in SNES
E.T.A.vanderWeide at utwente.nl
E.T.A.vanderWeide at utwente.nl
Wed Dec 21 14:05:09 CST 2011
> You need to pass a valid address. Show us what this code looks like. It
> should be something like
> MyContext *ptr;
> MatShellGetContext(mat,&ptr);
That's it. I just sent ptr not &ptr. It is working now.
Thanks,
Edwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111221/1f8ef75b/attachment.htm>
More information about the petsc-users
mailing list