This was not complete. The complete result is attached.<div><br><br><div class="gmail_quote">On Mon, Jun 3, 2013 at 9:56 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Fande Kong <<a href="mailto:fande.kong@colorado.edu">fande.kong@colorado.edu</a>> writes:<br>

<br>
> Thanks Jed,<br>
><br>
> I run code with options: -malloc_debug and  -malloc_dump and get the<br>
> following results:<br>
><br>
> [0]Total space allocated 217984 bytes<br>
> [ 0]16 bytes PetscStrallocpy() line 186 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/sys/utils/str.c<br>
>       [0]  PetscObjectChangeTypeName() line 129 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/sys/objects/pname.c<br>
>       [0]  ISSetType() line 77 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/interface/isreg.c<br>
>       [0]  ISCreateGeneral() line 437 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/impls/general/general.c<br>
>       [0]  SpmcsDMMeshGetStratumIS() line 1375 in spmcsdmmesh.cpp<br>
>       [0]  ComputeMatrix() line 279 in linearElasticity3d.cpp<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  PCSetUp() line 810 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/pc/interface/precon.c<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  KSPSetFromOptions() line 284 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itcl.c<br>
> [ 0]32 bytes ISCreate_General() line 516 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/impls/general/general.c<br>
>       [0]  ISSetType() line 77 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/interface/isreg.c<br>
>       [0]  ISCreateGeneral() line 437 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/impls/general/general.c<br>
>       [0]  SpmcsDMMeshGetStratumIS() line 1375 in spmcsdmmesh.cpp<br>
>       [0]  ComputeMatrix() line 279 in linearElasticity3d.cpp<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  PCSetUp() line 810 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/pc/interface/precon.c<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  KSPSetFromOptions() line 284 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itcl.c<br>
> [ 0]128 bytes ISCreate() line 43 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/interface/isreg.c<br>
>       [0]  ISCreateGeneral() line 437 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/impls/general/general.c<br>
>       [0]  SpmcsDMMeshGetStratumIS() line 1375 in spmcsdmmesh.cpp<br>
>       [0]  ComputeMatrix() line 279 in linearElasticity3d.cpp<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  PCSetUp() line 810 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/pc/interface/precon.c<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  KSPSetFromOptions() line 284 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itcl.c<br>
> [ 0]64 bytes ISCreate() line 43 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/interface/isreg.c<br>
>       [0]  ISCreateGeneral() line 437 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/vec/is/impls/general/general.c<br>
>       [0]  SpmcsDMMeshGetStratumIS() line 1375 in spmcsdmmesh.cpp<br>
>       [0]  ComputeMatrix() line 279 in linearElasticity3d.cpp<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
>       [0]  PCSetUp() line 810 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/pc/interface/precon.c<br>
>       [0]  KSPSetUp() line 182 in<br>
> /home/fdkong/math/petsc-3.3-p7/src/ksp/ksp/interface/itfunc.c<br>
><br>
> Whether it means that I malloced some objects and then I did not free them?<br>
> Or something else? Or it is normal?<br>
<br>
</div></div>Is this the complete output or was there more?  This indicates that an<br>
index set (IS) was not freed.  Note that index sets are<br>
reference-counted and normally referenced from a few places.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Fande Kong</div>Department of Computer Science<div>University of Colorado at Boulder</div>
</div>