<div class="gmail_quote">On Tue, Dec 7, 2010 at 21:31, Dmitry Karpeyev <span dir="ltr"><<a href="mailto:dkarpeev@gmail.com">dkarpeev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I actually prefer the model where a geometric object (e.g., a DA) controls the restriction (e.g., DAGlobalToLocalBegin, etc).</blockquote></div><br><div>Okay, but does the user need to use something like DMSliced just to update a local form?</div>
<div><br></div><div>Things like VecView already need a way to follow an upward link to a DM.  There is a delicate issue of circular dependencies if _p_Vec was given a slot for the DA.  On the one hand, I feel like it would be cleaner if every Vec had a link to _some_ DM, which, as far as the Vec is concerned, is just a "function space".  The default implementation would be flat Cartesian space.  On the other hand, it makes a dependency loop unless you always pass pairs (DM,Vec) around (ugly and weird), or (a very limited subset of) the DM API becomes part of the Vec "package".</div>