Fixed.<br><br> Matt<br><br><div class="gmail_quote">On Fri, Jun 5, 2009 at 6:50 AM, Jed Brown <span dir="ltr"><<a href="mailto:jed@59a2.org">jed@59a2.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
plog.c:1557:<br>
<br>
| ierr = PetscFPrintf(comm, fd, "%20s %5d %5d %9d %g\n", stageLog->classLog->classInfo[oclass].name,<br>
| classInfo[oclass].creations, classInfo[oclass].destructions, (int) classInfo[oclass].mem,<br>
| classInfo[oclass].descMem);CHKERRQ(ierr);<br>
<br>
Why cast classInfo[oclass].mem to int? Any reason not to change to %9f<br>
and remove the cast?<br>
<br>
Note that memory usage can be much larger than 2^31 before 64-bit<br>
indices are needed so casting to PetscInt isn't right either.<br>
<br>
| --- Event Stage 0: Main Stage<br>
|<br>
| Vec 38 38 176360064 0<br>
| Vec Scatter 1 1 460 0<br>
| Matrix 2 2 -2147483648 0<br>
| Krylov Solver 1 1 18056 0<br>
| Preconditioner 1 1 760 0<br>
| Viewer 1 1 552 0<br>
| Index Set 4 4 9281568 0<br>
<font color="#888888"><br>
<br>
Jed<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>