<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="">
Dear Matt,
<div class=""><br class="">
</div>
<div class="">Thank you for your quick reply. As for your question: "why would there be a difference? They should be numbered in the same way.”</div>
<div class=""><br class="">
</div>
<div class="">I see the degrees of freedom living on the periodic domain as the ones living at boundaries between interior elements. This is what I expect for non-periodic domain for nodal scalar field:</div>
<div class=""><br class="">
</div>
<div class="">Non-periodic:</div>
<div class=""><br class="">
</div>
<div class="">1 3 5</div>
<div class="">X-------------X-------------X</div>
<div class="">| | |</div>
<div class="">| | |</div>
<div class="">| | |<br class="">
<div>X-------------X-------------X</div>
<div>0 2 4</div>
<div><br class="">
</div>
<div>Periodic (vertical boundaries, topologically, the domain is a cylinder)</div>
<div><br class="">
</div>
<div>
<div class="">1 3 1</div>
<div class="">X-------------X-------------X</div>
<div class="">| | |</div>
<div class="">| | |</div>
<div class="">| | |<br class="">
<div>X-------------X-------------X</div>
<div>0 2 0</div>
</div>
</div>
<div><br class="">
</div>
<div>This is not the expected behaviour?</div>
<div><br class="">
</div>
<div>Once again thank you for your help.</div>
<div><br class="">
</div>
<div>-artur palha</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 12 Dec 2018, at 15:04, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="gmail_quote">
<div dir="ltr" class="">On Wed, Dec 12, 2018 at 9:01 AM Artur Palha Da Silva Clérigo - LR via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" class="">petsc-users@mcs.anl.gov</a>> wrote:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class="">Dear All,
<div class=""><br class="">
</div>
<div class="">I having been trying to add periodic domain functionality to my code. I am able to generate a periodic mesh with gmsh and load it using dmplex. The problem is that I am unable to have a numbering of the degrees of freedom that reflects the periodicity
(they are numbered as if there was no periodicity).</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Why would there be a difference? They should be numbered in the same way.</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class="">
<div class="">I read this thread: <a href="https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2018-October/036539.html" target="_blank" class="">https://lists.mcs.anl.gov/mailman/htdig/petsc-users/2018-October/036539.html</a></div>
<div class=""><br class="">
</div>
<div class="">There it is mentioned that DMLocalizeCoordinates is required after loading the mesh.</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Yes, this makes cell-wise coordinates, which have a jump at the periodic boundary.</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class="">
<div class="">My questions are the following:</div>
<div class=""><br class="">
</div>
<div class="">1. Is it correct that I need to run DMLocalizeCoordinates on my DM?</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Yes.</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class="">
<div class="">2. I am currently using petsc4py but I am unable to find DMLocalizeCoordinates. Is this functionality missing or is there an alternative to it?\</div>
</div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">Its possible no wrapper has been written for this yet. Lisandro, is it missing? (I am at a meeting, or I would check).</div>
<div class=""><br class="">
</div>
<div class=""> Thanks,</div>
<div class=""><br class="">
</div>
<div class=""> Matt</div>
<div class=""> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;line-break:after-white-space" class="">
<div class="">Thank you for your time.</div>
<div class=""><br class="">
</div>
<div class="">Kind regards,</div>
<div class=""><br class="">
</div>
<div class="">-artur palha</div>
</div>
</blockquote>
</div>
<br clear="all" class="">
<div class=""><br class="">
</div>
-- <br class="">
<div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">
<div dir="ltr" class="">
<div class="">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">
-- Norbert Wiener</div>
<div class=""><br class="">
</div>
<div class=""><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank" class="">https://www.cse.buffalo.edu/~knepley/</a><br class="">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>