<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
I see… that might be the problem. I’ll check it tomorrow. Thank you!
<div><br>
</div>
<div>Miguel<br>
<div dir="ltr"><br>
<blockquote type="cite">On 20 Nov 2024, at 22:57, Barry Smith <bsmith@petsc.dev> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"> <br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On Nov 20, 2024, at 2:38 PM, MIGUEL MOLINOS PEREZ <mmolinos@us.es> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div style="caret-color: rgb(0, 0, 0);">Yes, I use the vertex (nodes) of the elements. </div>
</div>
</div>
</blockquote>
<div><br>
</div>
Then the length between each vertex will be different between periodic and non-periodic case. With 10 points and non-periodic, it will be 1/9, and with periodic it will be 1/10th. Is this what you are asking about?</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div style="caret-color: rgb(0, 0, 0);"><br>
</div>
<div style="caret-color: rgb(0, 0, 0);">I am using the DMDA as an auxiliar mesh to do the domain partitioning in the DMSWARM. </div>
<div style="caret-color: rgb(0, 0, 0);"><br>
</div>
<div style="caret-color: rgb(0, 0, 0);">Thanks,</div>
<div style="caret-color: rgb(0, 0, 0);">Miguel</div>
<div style="caret-color: rgb(0, 0, 0);"><br>
</div>
<div style="caret-color: rgb(0, 0, 0);"><br>
</div>
<div><br>
<blockquote type="cite">
<div>On 20 Nov 2024, at 19:54, Barry Smith <bsmith@petsc.dev> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div><br>
</div>
Are you considering your degrees of freedom as vertex or cell-centered?
<div><br>
</div>
<div> Say three "elements" per edge.</div>
<div><br>
</div>
<div> If vertex centered then discretization size is 1/3 if periodic and 1/2 if not periodic</div>
<div><br>
</div>
<div> If cell-centered then each cell has width 1/3 for both periodic and not periodic</div>
<div><br>
</div>
<div> but in both cases you can think of the discretization size as constant along the whole cube edge.</div>
<div><br>
</div>
<div> Is this related to DMSWARM in particular?</div>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div>
<div><br>
<blockquote type="cite">
<div>On Nov 20, 2024, at 12:56 PM, MIGUEL MOLINOS PEREZ <mmolinos@us.es> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div>
<div>
<div>I mean that if the dimensions of the cube are 1x1x1 (for example). And I want 10 elements per edge, the discretization size must be 0.1 constant over the whole cube edge. </div>
<div><br>
</div>
<div>This is not in the code, I just impose the number of elements per edge. </div>
<div><br>
</div>
<div>Thank you,</div>
<div>Miguel</div>
<div><br>
</div>
<blockquote type="cite">
<div>On 20 Nov 2024, at 18:52, Barry Smith <bsmith@petsc.dev> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div><br>
</div>
What do you mean by discretization size, and how do I see it in the code?
<div><br>
</div>
<div> Barry</div>
<div><br>
<div><br>
<blockquote type="cite">
<div>On Nov 20, 2024, at 12:48 PM, MIGUEL MOLINOS PEREZ <mmolinos@us.es> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Sorry, I meant that the discretisation size is not constant across the edges of the cube.
<div><br>
<div>Miguel<br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 20 Nov 2024, at 18:36, Barry Smith <bsmith@petsc.dev> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div><br>
</div>
I am sorry, I don't understand the problem. When I run by default with -da_view I get
<div><br>
</div>
<div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [0] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 0 2, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [1] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 3, Y range of indices: 0 2, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [2] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 2 3, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [3] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 3, Y range of indices: 2 3, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [4] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 0 2, Z range of indices: 2 3</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [5] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 3, Y range of indices: 0 2, Z range of indices: 2 3</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [6] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 2 3, Z range of indices: 2 3</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [7] M 3 N 3 P 3 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 3, Y range of indices: 2 3, Z range of indices: 2 3</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div><span style="font-variant-ligatures: no-common-ligatures">which seems right because you are trying to have three cells in each direction. The distribution has to be uneven, hence </span><span style="font-family: Menlo; font-size: 14px;">0 2 and </span><span style="font-family: Menlo; font-size: 14px;">2
3</span></div>
<div><span style="font-family: Menlo; font-size: 14px;"><br>
</span></div>
<div><span style="font-family: Menlo; font-size: 14px;">When I change the code to use </span>ndiv_mesh_* = 4 and run with periodic or not I get </div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">$ PETSC_OPTIONS="" mpiexec -n 8 ./atoms-3D -dm_view</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">DM Object: 8 MPI processes</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"> type: da</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [0] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 0 2, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [1] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 4, Y range of indices: 0 2, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [2] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 2 4, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [3] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 4, Y range of indices: 2 4, Z range of indices: 0 2</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [4] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 0 2, Z range of indices: 2 4</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [5] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 4, Y range of indices: 0 2, Z range of indices: 2 4</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [6] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 0 2, Y range of indices: 2 4, Z range of indices: 2 4</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Processor [7] M 4 N 4 P 4 m 2 n 2 p 2 w 1 s 1</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">X range of indices: 2 4, Y range of indices: 2 4, Z range of indices: 2 4</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">so it is splitting as expected each rank gets a 2 by 2 by 2 set of indices.</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures">Could you please let me know what the problem is that I should be seeing.</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"> Barry</span></div>
<div style="margin: 0px; font-style: normal; font-variant-caps: normal; font-stretch: normal; font-size: 14px; line-height: normal; font-family: Menlo; font-size-adjust: none; font-kerning: auto; font-variant-alternates: normal; font-variant-ligatures: normal; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-position: normal; font-feature-settings: normal; font-optical-sizing: auto; font-variation-settings: normal;">
<span style="font-variant-ligatures: no-common-ligatures"><br>
</span></div>
</div>
<div><br>
<blockquote type="cite">
<div>On Nov 20, 2024, at 7:06 AM, MIGUEL MOLINOS PEREZ <mmolinos@us.es> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>
<div style="line-break:after-white-space">
<div>Dear Barry,</div>
<div><br>
</div>
<div>Please, find attached to this email a minimal example of the problem. Run it using 8 MPI processes. </div>
<div><br>
</div>
<div>Thanks,</div>
<div>Miguel</div>
<div><br>
</div>
</div>
<div style="line-break:after-white-space"></div>
<div style="line-break:after-white-space"><br id="x_lineBreakAtBeginningOfMessage">
<div><br>
</div>
<div><br>
</div>
<div><br>
<blockquote type="cite">
<div>On 20 Nov 2024, at 11:48, Miguel Molinos <mmolinos@us.es> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div style="line-break:after-white-space">
<div>Hi Bary:</div>
<div><br>
</div>
<div>I will check the example you suggest. Anyhow, I’ll send a reproducible example ASAP.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Miguel<br id="x_lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On 19 Nov 2024, at 18:55, Barry Smith <bsmith@petsc.dev> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div style="line-break:after-white-space">
<div><br>
</div>
<span style="font-size:14.666667px">I modify src/dm/tests/ex25.c and always see a nice even split when possible with both DM_BOUNDARY_NONE and DM_BOUNDARY_PERIODIC</span>
<div><span style="font-size:14.666667px"><br>
</span></div>
<div><span style="font-size:14.666667px"> Can you please send a reproducible example?</span></div>
<div><span style="font-size:14.666667px"><br>
</span></div>
<div><span style="font-size:14.666667px"> Thanks</span></div>
<div><span style="font-size:14.666667px"><br>
</span></div>
<div><span style="font-size:14.666667px"> Barry</span></div>
<div><span style="font-size:14.666667px"><br>
</span>
<div><br>
<blockquote type="cite">
<div>On Nov 19, 2024, at 6:14 AM, MIGUEL MOLINOS PEREZ <mmolinos@us.es> wrote:</div>
<br class="x_Apple-interchange-newline">
<div>
<div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Dear all:<br>
<br>
It seems that if I mesh a cubic domain with “DMDACreate3d” using 8 bricks for discretization and with periodic boundaries, each of the bricks has a different size. In contrast, if I use DM_BOUNDARY_NONE, all 8 bricks have the same size.
<br>
<br>
I have used this together with the DMSWarm discretization. And as you can see the number of particles per rank is not evenly distributed:
<br>
210 420 366 732 420 840 732 1464<br>
<br>
Am I missing something?<br>
<br>
Thanks,<br>
Miguel<br>
<br>
<br>
</div>
</span></font></div>
<div><span id="x_cid:534265d3-3f18-41cd-8006-539cb06751f9@eurprd01.prod.exchangelabs.com"><Screenshot 2024-11-19 at 10.56.36.png></span>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
<span id="cid:416E729B516F0E4586D649C85120D0F7@eurprd01.prod.exchangelabs.com"><atoms-3D.cpp></span><span id="cid:03059E64AC33EC40A54CB28898885CB4@eurprd01.prod.exchangelabs.com"><Mg-hcp-cube-x17-x10-x10.dump></span></div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</blockquote>
</div>
</body>
</html>