<div class="gmail_quote">On Sat, Dec 24, 2011 at 14:10, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1k1">I do not understand: is there something in Petsc of this sort that I<br>
could use for my unstructured meshes or you meant I have to implement<br>
it myself?</div></blockquote></div><br><div>If you implement DM to the extent of providing DMCreateGlobalVector(), then DMGetGlobalVector()/DMRestoreGlobalVector() will work for you. Otherwise you implement it yourself. This kind of caching is a very common pattern for data structure reuse.</div>