I think the bug is not that the old section is destroyed, but that the new one is not referenced.<br><br><div class="gmail_quote">On Thu, Aug 30, 2012 at 5:00 PM, Chris Eldred <span dir="ltr"><<a href="mailto:chris.eldred@gmail.com" target="_blank">chris.eldred@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 am using DMSetDefaultSection and DMCreateLocalVector to create<br>
vectors in my code, but errors are occurring because<br>
DMSetDefaultSection destroys old sections. My usage pattern is<br>
<br>
for each variable<br>
call DMSetDefaultSection<br>
call DMCreateLocalVector<br>
<br>
which fails if there is more than one 1 variable that uses the same<br>
section since the sections are being destroyed when a new one is set.<br>
Is there a reason for this behavior in DMSetDefaultSection (ie can a<br>
version of DMSetDefaultSection that does not destroy the old sections<br>
be provided)?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Chris Eldred<br>
DOE Computational Science Graduate Fellow<br>
Graduate Student, Atmospheric Science, Colorado State University<br>
B.S. Applied Computational Physics, Carnegie Mellon University, 2009<br>
<a href="mailto:chris.eldred@gmail.com">chris.eldred@gmail.com</a><br>
</font></span></blockquote></div><br>