From 886e427d7f8b928e9ae252f0c16d9cdbcf9665e5 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 20 Dec 2012 09:24:43 +0100
Subject: [PATCH] Using logog for logging within class MeshLib::Mesh.

---
 MeshLib/Mesh.cpp | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/MeshLib/Mesh.cpp b/MeshLib/Mesh.cpp
index aab39454073..c4dbeb0c461 100644
--- a/MeshLib/Mesh.cpp
+++ b/MeshLib/Mesh.cpp
@@ -93,7 +93,7 @@ void Mesh::makeNodesUnique()
 	}
 
 	//set correct id for each node
-	
+
 	//if (this->getDimension() > 1)
 	//	this->removeMeshElements(MshElemType::EDGE);
 
@@ -268,7 +268,7 @@ void Mesh::removeUnusedMeshNodes()
 	}
 	if (count)
 	{
-		std::cout << "Removed " << count << " unused mesh nodes." << std::endl;
+		INFO("Removed %d unused mesh nodes.", count );
 		this->resetNodeIDs();
 	}
 }
@@ -276,8 +276,7 @@ void Mesh::removeUnusedMeshNodes()
 void Mesh::removeMeshElements(MshElemType::type t)
 {
 	unsigned count(0);
-	std::vector<MeshLib::Element*>::iterator it = this->_elements.begin();
-	for (it; it != this->_elements.end();)
+	for (std::vector<MeshLib::Element*>::iterator it = this->_elements.begin(); it != this->_elements.end();)
 	{
 		if ((*it)->getCellType() == t)
 		{
@@ -285,10 +284,10 @@ void Mesh::removeMeshElements(MshElemType::type t)
 			it = this->_elements.erase(it);
 			++count;
 		}
-		else 
+		else
 			++it;
 	}
-	std::cout << "Removed " << count << " elements of type " << MshElemType2String(t) << " from mesh." << std::endl;
+	INFO("Removed %d  elements of type %s from mesh.", count, MshElemType2String(t).c_str());
 }
 
 }
-- 
GitLab