<div dir="ltr">Hi all.<div><br></div><div>I have a mesh is like below</div><div><br></div><div>1  2  3</div><div>4  5  6</div><div>7  8  9</div><div><br></div><div>I use DACreate2d to create mesh partition.</div><div><br></div><div>In my case, I have an rotation boundary condition. The whole mesh is like below</div><div><br></div><div>9 8 7   3 6 9</div><div>6 5 4   2 5 8</div><div>3 2 1   1 4 7</div><div><div><br></div><div>7 4 1   1 2 3</div><div>8 5 2   4 5 6</div><div>9 6 3   7 8 9</div></div><div><br></div><div>It means that cell 2 near the top boundary are connected with cell 4 near the left boundary, cell 3 with cell 7.</div><div><br></div><div>How can I set boundary condition or set my matrix?<br></div><div><br></div><div>I am looking forward for your help!</div><div><br></div><div>BEST, </div><div><br></div><div>Wenbo</div></div>