[petsc-dev] Ghost update in VecAssembly?

Jed Brown jed at jedbrown.org
Tue Mar 1 08:56:38 CST 2016


Matthew Knepley <knepley at gmail.com> writes:
>> No.  You only need to call VecAssembly if you use VecSetValues.  But if
>>
>
> I thought we had state increase on getarray() as well, but its just locking.

VecRestoreArray calls PetscObjectStateIncrease, but what does that has
to do with VecAssembly?

>> you have a ghosted vector, you would normally use VecGetArray and never
>> bother with VecSetValues.
>
>
> Why would we assume people make the ghost values as well? 

Huh?

> However, if this is the only case, I don't think putting it in is a
> great idea.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20160301/d9461a2f/attachment.sig>


More information about the petsc-dev mailing list