<div dir="ltr"><div>Meshes of size 1 should work.</div><div><br></div>Looks like there is a bug in the code to produce this error message (patch for maint attached). It's not outputting the "P" (size in the 3rd dimension) component.<div><br></div><div>This is just speculation without a full error message or code to reproduce, but perhaps the size in the third dimension is an uninitialized value which is triggering this warning with a 10 x 10 x (huge garbage) x 1 (dof) mesh.</div></div><br><div class="gmail_quote"><div dir="ltr">Am Mo., 1. Okt. 2018 um 15:59 Uhr schrieb Phil Tooley <<a href="mailto:phil.tooley@sheffield.ac.uk">phil.tooley@sheffield.ac.uk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Is it valid to have a DMDA with one of the dimensions of size 1.  I was<br>
hoping to avoid having to write explicit logic to handle the case that I<br>
am working on a 2D rather than a 3D image for my current application.  <br>
Unfortunately when I try to construct such a DMDA I get an error:<br>
<br>
[0]PETSC ERROR: --------------------- Error Message<br>
--------------------------------------------------------------<br>
[0]PETSC ERROR: Overflow in integer operation:<br>
[0]PETSC ERROR: Mesh of 10 by 10 by 1 (dof) is too large for 32 bit indices<br>
<br>
Is there a workaround other than "write everything twice"?<br>
<br>
Thanks<br>
<br>
Phil<br>
<br>
-- <br>
Phil Tooley<br>
Research Software Engineering<br>
University of Sheffield<br>
<br>
</blockquote></div>