<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">Hi Lisandro,</div>
<div class=""><br class="">
</div>
<div class="">Thanks for your reply. Waiting for PETSc 3.13 and the matching petsc4py 3.13 would work just fine for me. It would be nice, however, to know what’s causing the issue.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class=""><br class="">
</div>
<div class="">—Alejandro </div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On 27 Mar 2020, at 18:39, Lisandro Dalcin <<a href="mailto:dalcinl@gmail.com" class="">dalcinl@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div dir="ltr" class=""><br class="">
</div>
<br class="">
<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" class="">knepley@gmail.com</a>> wrote:<br class="">
</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" class="">
<div dir="ltr" class="">On Fri, Mar 27, 2020 at 3:31 AM Alejandro Aragon - 3ME <<a href="mailto:A.M.Aragon@tudelft.nl" target="_blank" class="">A.M.Aragon@tudelft.nl</a>> wrote:<br class="">
</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 class="">
<div style="overflow-wrap: break-word;" class="">
<div class="">Dear Matthew,</div>
<div class=""><br class="">
</div>
<div class="">Thanks for your email. I have attached the python code that reproduces the following error in my computer:</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">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 class="">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 class=""><br class="">
</div>
<div class="">  f = PetscContainer()</div>
<div class="">  f.setName("potential")</div>
<div class="">  dm.addField(field = f)</div>
<div class=""><br class="">
</div>
</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Except that petsc4py do not expose a Container class :-(</div>
<div class=""><br class="">
</div>
<div class="">@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 class=""><br class="">
</div>
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature">
<div dir="ltr" class="">
<div class="">Lisandro Dalcin<br class="">
============<br class="">
Research Scientist<br class="">
Extreme Computing Research Center (ECRC)<br class="">
King Abdullah University of Science and Technology (KAUST)<br class="">
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ecrc.kaust.edu.sa_&d=DwMFaQ&c=XYzUhXBD2cD-CornpT4QE19xOJBbRy-TBPLK0X9U2o8&r=U1Pry6bTDByPujjSnTcPY6KNXqrym6APfmtom-lIPFA&m=HY1fXOtcfYiUbV-8yfY4iJFGJrKGJpALLyYLQbL63n0&s=U7jpaATgQWRTP15qiro-xfWS9FZ2fqFxRM_t-Zj6g5w&e=" target="_blank" class="">http://ecrc.kaust.edu.sa/</a><br class="">
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>