[cig-commits] r12743 - short/3D/PyLith/trunk/libsrc/meshio

brad at geodynamics.org brad at geodynamics.org
Wed Aug 27 17:28:28 PDT 2008


Author: brad
Date: 2008-08-27 17:28:28 -0700 (Wed, 27 Aug 2008)
New Revision: 12743

Modified:
   short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc
Log:
Added define exclusion for logging output (ALE_MEM_LOGGING).

Modified: short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc	2008-08-27 23:59:40 UTC (rev 12742)
+++ short/3D/PyLith/trunk/libsrc/meshio/MeshIO.cc	2008-08-28 00:28:28 UTC (rev 12743)
@@ -165,10 +165,27 @@
     (*_mesh)->stratify();
     logger.stagePop();
   }
-  std::cout << std::endl << "MeshCreation " << logger.getNumAllocations("MeshCreation") << " allocations " << logger.getAllocationTotal("MeshCreation") << " bytes" << std::endl;
-  std::cout << std::endl << "MeshCreation " << logger.getNumDeallocations("MeshCreation") << " deallocations " << logger.getDeallocationTotal("MeshCreation") << " bytes" << std::endl;
-  std::cout << std::endl << "MeshStratification " << logger.getNumAllocations("MeshStratification") << " allocations " << logger.getAllocationTotal("MeshStratification") << " bytes" << std::endl;
-  std::cout << std::endl << "MeshStratification " << logger.getNumDeallocations("MeshStratification") << " deallocations " << logger.getDeallocationTotal("MeshStratification") << " bytes" << std::endl;
+
+#if defined(ALE_MEM_LOGGING)
+  std::cout
+    << std::endl
+    << "MeshCreation " << logger.getNumAllocations("MeshCreation")
+    << " allocations " << logger.getAllocationTotal("MeshCreation")
+    << " bytes" << std::endl
+    
+    << "MeshCreation " << logger.getNumDeallocations("MeshCreation")
+    << " deallocations " << logger.getDeallocationTotal("MeshCreation")
+    << " bytes" << std::endl
+    
+    << "MeshStratification " << logger.getNumAllocations("MeshStratification")
+    << " allocations " << logger.getAllocationTotal("MeshStratification")
+    << " bytes" << std::endl
+    
+    << "MeshStratification " << logger.getNumDeallocations("MeshStratification")
+    << " deallocations " << logger.getDeallocationTotal("MeshStratification")
+    << " bytes" << std::endl << std::endl;
+#endif
+
   ALE::SieveBuilder<Mesh>::buildCoordinates(*_mesh, spaceDim, &coordinates[0]);
 } // _buildMesh
 



More information about the cig-commits mailing list