<div class="gmail_quote">On Thu, May 19, 2011 at 11:09, Bartłomiej W <span dir="ltr"><<a href="mailto:bartlomiej.wach@yahoo.pl">bartlomiej.wach@yahoo.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<span style="font-style:italic">[0]Total space allocated 2514,564,304 bytes<br>(...)<br>[0]PETSC ERROR: Memory allocated<span style="font-weight:bold"> -<a href="tel:2147483648" value="+12147483648" target="_blank">2147483648</a> </span>Memory used by process 1848942592</span><span style="font-style:italic"></span><br style="font-style:italic">
<span style="font-style:italic">[0]PETSC ERROR: Memory requested 1578,397,300!</span></blockquote><div><br></div><div><div>Please always send the whole error trace. I have updated petsc-dev so the sizes are not incorrectly truncated like you see here. Are you sure you have built a 64-bit executable (run "file your-executable")?</div>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br style="font-style:italic"><br>Caused by the code<br><br><span style="font-style:italic"> ierr = MatCreate(PETSC_COMM_WORLD,&Dinv);CHKERRQ(ierr);</span><br style="font-style:italic">
<span style="font-style:italic"> ierr = MatSetSizes(Dinv,PETSC_DECIDE,PETSC_DECIDE,n,n);CHKERRQ(ierr);</span><br style="font-style:italic"><span style="font-style:italic"> ierr = MatSetFromOptions(Dinv);CHKERRQ(ierr);</span><br style="font-style:italic">
<span style="font-style:italic"> ierr = MatAssemblyBegin(Dinv,MAT_FINAL_ASSEMBLY);CHKERRQ(ierr);</span></blockquote><div><br></div><div>Is this in parallel? How many processors? Does the name "Dinv" imply that this matrix is supposed to be the inverse of something? Why are you assembling without putting anything in the matrix?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br>where n = 39459925</blockquote><div><br></div><div>How many nonzeros per row?</div></div>