[petsc-users] Using ghosted vector as 'x' in KSPSolve

Matthew Knepley knepley at gmail.com
Wed Oct 19 12:45:43 CDT 2011


On Wed, Oct 19, 2011 at 5:42 PM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

>
>
> On Wed, Oct 12, 2011 at 1:43 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
>> On Wed, Oct 12, 2011 at 06:38, Dominik Szczerba <dominik at itis.ethz.ch>wrote:
>>
>>> Is it legal to call KSPSolve with the solution vector being a
>>> ghost-aware vector created e.g. with VecCreateGhost?
>>>
>>
>> Yes
>>
>> Would that also mean, that 'b' vector can also be ghosted? That would be
> really cool...
>

In PETSc, ghosted vectors just have extra information, so they can always be
used as
normal vectors.

   Matt


> Many thanks,
> Dominik
>
-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111019/1a353fe9/attachment.htm>


More information about the petsc-users mailing list