<div dir="ltr"><div dir="ltr">On Mon, May 2, 2022 at 11:25 AM Matteo Semplice <<a href="mailto:matteo.semplice@uninsubria.it">matteo.semplice@uninsubria.it</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">Hi.<br>
<br>
I know that when I create a DMDA I can select periodic b.c. per grid <br>
direction.<br>
<br>
I am facing a PDE with 2 dofs per node in which one dof has periodic <br>
b.c. in the x direction and the other one periodic b.c. in the y <br>
direction. Is there a (possibly quick-and-dirty) solution to represent <br>
this in a DM (not necessarily a DMDA)?<br></blockquote><div><br></div><div>I am trying to understand what this means. Usually we think of periodicity as arising from the domain, not the field.</div><div><br></div><div>I think it would be easiest to:</div><div><br></div><div>  a) Use two different DMDA for the fields that "match up" where needed</div><div><br></div><div>or</div><div><br></div><div>  b) Use a DMStag since it sounds like these should live on horizontal and vertical edges</div><div><br></div><div>  Thanks,</div><div><br></div><div>     Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
I understand the request it's strange, but I should add that we are <br>
experimenting numerically with this toy model, so in fact the b.c. may <br>
change in the future... just to stress once more that I am not after a <br>
perfect solution, but anything that would at least allow parallel runs <br>
with few processors would do for now.<br>
<br>
Thanks in advance<br>
<br>
     Matteo<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>