[petsc-dev] DMSetDefaultSection destroys old sections

Jed Brown jedbrown at mcs.anl.gov
Thu Aug 30 17:03:15 CDT 2012


I think the bug is not that the old section is destroyed, but that the new
one is not referenced.

On Thu, Aug 30, 2012 at 5:00 PM, Chris Eldred <chris.eldred at gmail.com>wrote:

> I am using DMSetDefaultSection and DMCreateLocalVector to create
> vectors in my code, but errors are occurring because
> DMSetDefaultSection destroys old sections. My usage pattern is
>
> for each variable
> call DMSetDefaultSection
> call DMCreateLocalVector
>
> which fails if there is more than one 1 variable that uses the same
> section since the sections are being destroyed when a new one is set.
> Is there a reason for this behavior in DMSetDefaultSection (ie can a
> version of DMSetDefaultSection that does not destroy the old sections
> be provided)?
>
> --
> Chris Eldred
> DOE Computational Science Graduate Fellow
> Graduate Student, Atmospheric Science, Colorado State University
> B.S. Applied Computational Physics, Carnegie Mellon University, 2009
> chris.eldred at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120830/9f4e2e01/attachment.html>


More information about the petsc-dev mailing list