Index: /trunk/psLib/src/sys/psMemory.c
===================================================================
--- /trunk/psLib/src/sys/psMemory.c	(revision 2390)
+++ /trunk/psLib/src/sys/psMemory.c	(revision 2391)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-11-04 01:05:00 $
+*  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-11-22 20:49:59 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -443,5 +443,5 @@
  * Check for memory leaks.
  */
-psS32 psMemCheckLeaks(psMemoryId id0, psMemBlock* ** arr, FILE * fd)
+psS32 psMemCheckLeaks(psMemoryId id0, psMemBlock* ** arr, FILE * fd, psBool persistence)
 {
     psS32 nleak = 0;
@@ -453,5 +453,5 @@
     for (psMemBlock* iter = topBlock; iter != NULL; iter = iter->nextBlock) {
         if ( (iter->refCounter > 0) &&
-                (! iter->persistent) &&
+                ( (persistence) || (!persistence && !iter->persistent) ) &&
                 (iter->id >= id0)) {
 
@@ -479,5 +479,5 @@
     for (psMemBlock* iter = topBlock; iter != NULL; iter = iter->nextBlock) {
         if ( (iter->refCounter > 0) &&
-                (! iter->persistent) &&
+                ( (persistence) || (!persistence && !iter->persistent) ) &&
                 (iter->id >= id0)) {
 
Index: /trunk/psLib/src/sys/psMemory.h
===================================================================
--- /trunk/psLib/src/sys/psMemory.h	(revision 2390)
+++ /trunk/psLib/src/sys/psMemory.h	(revision 2391)
@@ -12,6 +12,6 @@
  *  @ingroup MemoryManagement
  *
- *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-27 00:57:31 $
+ *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-22 20:49:59 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -257,5 +257,6 @@
     psMemoryId id0,                    ///< don't list blocks with id < id0
     psMemBlock* ** arr,                ///< pointer to array of pointers to leaked blocks, or NULL
-    FILE * fd                          ///< print list of leaks to fd (or NULL)
+    FILE * fd,                         ///< print list of leaks to fd (or NULL)
+    psBool persistence                 ///< make check across all object even persistent ones
 );
 
Index: /trunk/psLib/src/sysUtils/psMemory.c
===================================================================
--- /trunk/psLib/src/sysUtils/psMemory.c	(revision 2390)
+++ /trunk/psLib/src/sysUtils/psMemory.c	(revision 2391)
@@ -8,6 +8,6 @@
 *  @author Robert Lupton, Princeton University
 *
-*  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-11-04 01:05:00 $
+*  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-11-22 20:49:59 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -443,5 +443,5 @@
  * Check for memory leaks.
  */
-psS32 psMemCheckLeaks(psMemoryId id0, psMemBlock* ** arr, FILE * fd)
+psS32 psMemCheckLeaks(psMemoryId id0, psMemBlock* ** arr, FILE * fd, psBool persistence)
 {
     psS32 nleak = 0;
@@ -453,5 +453,5 @@
     for (psMemBlock* iter = topBlock; iter != NULL; iter = iter->nextBlock) {
         if ( (iter->refCounter > 0) &&
-                (! iter->persistent) &&
+                ( (persistence) || (!persistence && !iter->persistent) ) &&
                 (iter->id >= id0)) {
 
@@ -479,5 +479,5 @@
     for (psMemBlock* iter = topBlock; iter != NULL; iter = iter->nextBlock) {
         if ( (iter->refCounter > 0) &&
-                (! iter->persistent) &&
+                ( (persistence) || (!persistence && !iter->persistent) ) &&
                 (iter->id >= id0)) {
 
Index: /trunk/psLib/src/sysUtils/psMemory.h
===================================================================
--- /trunk/psLib/src/sysUtils/psMemory.h	(revision 2390)
+++ /trunk/psLib/src/sysUtils/psMemory.h	(revision 2391)
@@ -12,6 +12,6 @@
  *  @ingroup MemoryManagement
  *
- *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-27 00:57:31 $
+ *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-11-22 20:49:59 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -257,5 +257,6 @@
     psMemoryId id0,                    ///< don't list blocks with id < id0
     psMemBlock* ** arr,                ///< pointer to array of pointers to leaked blocks, or NULL
-    FILE * fd                          ///< print list of leaks to fd (or NULL)
+    FILE * fd,                         ///< print list of leaks to fd (or NULL)
+    psBool persistence                 ///< make check across all object even persistent ones
 );
 
