These have changed to <br><br><a href="http://www.mcs.anl.gov/research/projects/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Sys/PetscMemoryGetMaximumUsage.html">PetscMemoryGetMaximumUsage</a><br><a href="http://www.mcs.anl.gov/research/projects/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Sys/PetscMemorySetGetMaximumUsage.html">PetscMemorySetGetMaximumUsage</a><br>
<br> Matt<br><br><div class="gmail_quote">On Fri, Dec 12, 2008 at 9:43 AM, Panyasantisuk Jarunan <span dir="ltr"><<a href="mailto:Jarunan.Panyasantisuk@eleves.ec-nantes.fr">Jarunan.Panyasantisuk@eleves.ec-nantes.fr</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;">Hello,<br>
<br>
I would like to do memory usage analysis by using these command.<br>
<br>
call PetscMemorySetGetMaximumUsage(ierr)<br>
call PetscMemoryGetMaximumUsage(mem,ierr)<br>
<br>
But when I compiled, it said<br>
<br>
undefined reference to `petscmemorysetgetmaximumusage_'<br>
<br>
I use Fortran and have included petsc.h, petscvec.h, petscmat.h, petscpc.h, petscksp.h, petscsys.h. In makefile I use ${PETSC_KSP_LIB}.<br>
<br>
So now I use the command "call PetscMemoryGetCurrentUsage(mem,ierr)" to get memory from 2 points. I do not know if it is efficient.<br>
<br>
Could you please give me some advice?<br>
<br>
Thank you<br><font color="#888888">
<br>
<br>
<br>
<br>
-- <br>
Jarunan PANYASANTISUK<br>
MSc. in Computational Mechanics<br>
Erasmus Mundus Master Program<br>
Ecole Centrale de Nantes<br>
1, rue de la noë, 44321 NANTES, FRANCE<br>
<br>
<br>
<br>
<br>
<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>