VecGhost and state
Jed Brown
jed at 59A2.org
Thu Apr 30 07:14:03 CDT 2009
Matthew Knepley wrote:
> We should just treat LocalForm as GetArray, and increase the state on
> RestoreLocalForm.
I thought of this, but like the maximum better. With GetArray, you
don't have a nice way to determine whether the user changed anything, so
the cache needs to be invalidated by default. When the user does not
modify the array, the state is needlessly increased, hence the goofing
with state in VecEqual.
Increasing the state will work fine of course, but I think using the
maximum is equally safe while making better use of cacheing. Also, if
the global form has changed, I think we want the local form's state to
increase in GetLocalForm.
Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090430/0931e689/attachment.sig>
More information about the petsc-dev
mailing list