<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 27 Mar 2020 at 17:10, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Fri, Mar 27, 2020 at 3:31 AM Alejandro Aragon - 3ME <<a href="mailto:A.M.Aragon@tudelft.nl" target="_blank">A.M.Aragon@tudelft.nl</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div style="overflow-wrap: break-word;">
<div>Dear Matthew,</div>
<div><br>
</div>
<div>Thanks for your email. I have attached the python code that reproduces the following error in my computer:</div></div></div></blockquote><div><br></div><div>I think I see the problem. There were changes in DM in order to support fields which only occupy part of the domain.</div><div>Now you need to tell the DM about the fields before it builds a Section. I think in your code, you only need</div><div><br></div><div> f = PetscContainer()</div><div> f.setName("potential")</div><div> dm.addField(field = f)</div><div><br></div></div></div></blockquote><div><br></div><div>Except that petsc4py do not expose a Container class :-(</div><div><br></div><div>@Alejandro, PETSc 3.13 is about to be released. Once that is done, we have a small windows to make a few enhancements in petsc4py before releasing the matching petsc4py-3.13 that you can use to upgrade your code. Would that work for you?</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Lisandro Dalcin<br>============<br>Research Scientist<br>Extreme Computing Research Center (ECRC)<br>King Abdullah University of Science and Technology (KAUST)<br><a href="http://ecrc.kaust.edu.sa/" target="_blank">http://ecrc.kaust.edu.sa/</a><br></div></div></div></div>