[petsc-users] How to set up an interface-type problem
Matthew Knepley
knepley at gmail.com
Thu Oct 20 10:28:05 CDT 2016
On Thu, Oct 20, 2016 at 9:48 AM, Safin, Artur <aks084000 at utdallas.edu>
wrote:
> Matt,
>
>
> You use
>>
>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/
>> MatGetLocalSubMatrix.html
>> http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/
>> VecGetSubVector.html
>>
>> to put values directly into the subvectors and submatrices. This
>> interacts well with MatNest, so it
>> can be optimized after you get it working.
>>
>>
> Thanks, MatNest and VecNest is what I was looking for.
>
> I have a one more question: if I generate a vector with VecCreateNest,
> will it be allocated separately, or does it somehow reuse the space from
> the original subvectors?
>
With a VecNest, the subvector is not copied.
Thanks,
Matt
> Artur
>
--
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/20161020/cf6c3218/attachment.html>
More information about the petsc-users
mailing list