Index: /trunk/psLib/src/sys/psMemory.c
===================================================================
--- /trunk/psLib/src/sys/psMemory.c	(revision 8704)
+++ /trunk/psLib/src/sys/psMemory.c	(revision 8705)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.81 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-08-26 05:01:49 $
+*  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-08-30 04:40:56 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -287,4 +287,9 @@
 
     return id;
+}
+
+psMemId psMemGetLastId(void)
+{
+    return memid;
 }
 
Index: /trunk/psLib/src/sys/psMemory.h
===================================================================
--- /trunk/psLib/src/sys/psMemory.h	(revision 8704)
+++ /trunk/psLib/src/sys/psMemory.h	(revision 8705)
@@ -12,6 +12,6 @@
  *  @ingroup MemoryManagement
  *
- *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-21 21:23:13 $
+ *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-30 04:40:56 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -483,4 +483,12 @@
 psMemId psMemGetId(void);
 
+/** get the last memory ID used
+ *
+ *  @ingroup memCallback
+ *
+ *  @return psMemId                 the last memory ID used
+ */
+psMemId psMemGetLastId(void);
+
 /** set p_psMemAllocID to specific id
  *
