<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Patrick, <br>
</p>
<p>You are spot on, I was copying in a vector and not taking care to
pad with 1s to length 3.</p>
<p>Thanks</p>
<p>Phil<br>
</p>
<div class="moz-cite-prefix">On 01/10/2018 15:57, Patrick Sanan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CA+z91Te=XZBFBnV0gMHUCN1yGb_PWfVZEMUpqUuNCmO3iakcqw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Whoops, sent that patch too fast (forgot to update
SETERRQ3 to SETERRQ4). Updated patch for maint attached.</div>
<br>
<div class="gmail_quote">
<div dir="ltr">Am Mo., 1. Okt. 2018 um 16:55 Uhr schrieb Patrick
Sanan <<a href="mailto:patrick.sanan@gmail.com"
moz-do-not-send="true">patrick.sanan@gmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<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"
target="_blank" moz-do-not-send="true">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>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Phil Tooley
Research Software Engineering
University of Sheffield</pre>
</body>
</html>