[petsc-users] nest matrix and the corresponding vector format

Matthew Knepley knepley at gmail.com
Mon Aug 6 16:10:31 CDT 2018


On Mon, Aug 6, 2018 at 5:06 PM Mike Wick <michael.wick.1980 at gmail.com>
wrote:

> Hi PETSc team:
>
> I have a question regarding the compatibility between the nest matrix and
> the vec object. My understanding is that one should create and use nest
> vectors when the matrix is in the nest form.
>
> In the tutorial example
>
> http://www.mcs.anl.gov/petsc/petsc-current/src/snes/examples/tutorials/ex70.c.html
>
> I noticed that the vectors are created as regular MPI vectors, with the
> local partition left for PETSC_DECIDE, in lines 171-173. I wander if the
> underlying structure of the vectors are compatible with the nest matrix. If
> not, will that create some unnecessary communication work?
>
> Look forward to your suggestions.
>

Nest matrices work with any vector.

  Thanks,

   Matt


> Best,
>
> Mike
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180806/03fa8dc9/attachment-0001.html>


More information about the petsc-users mailing list