[Avida-SVN] r2187 - branches/dkdev/source/main
dknoester at myxo.css.msu.edu
dknoester at myxo.css.msu.edu
Thu Nov 8 10:02:27 PST 2007
Author: dknoester
Date: 2007-11-08 13:02:27 -0500 (Thu, 08 Nov 2007)
New Revision: 2187
Modified:
branches/dkdev/source/main/cPopulation.cc
Log:
removing debugging code
Modified: branches/dkdev/source/main/cPopulation.cc
===================================================================
--- branches/dkdev/source/main/cPopulation.cc 2007-11-08 16:32:51 UTC (rev 2186)
+++ branches/dkdev/source/main/cPopulation.cc 2007-11-08 18:02:27 UTC (rev 2187)
@@ -141,9 +141,9 @@
std::pair<int,int> two_xy = _deme.GetCellPosition(_deme.GetCellsToLink().second);
std::pair<int,int> self_xy = _deme.GetCellPosition(organism->GetCellID());
- std::cout << "Organism " << organism->GetCellID() << " @ (" << self_xy.first << "," << self_xy.second << ") declares "
- << organism->GetRegion() << " for cell1 @ (" << one_xy.first << "," << one_xy.second << ") and cell2 @ ("
- << two_xy.first << "," << two_xy.second << "); ";
+// std::cout << "Organism " << organism->GetCellID() << " @ (" << self_xy.first << "," << self_xy.second << ") declares "
+// << organism->GetRegion() << " for cell1 @ (" << one_xy.first << "," << one_xy.second << ") and cell2 @ ("
+// << two_xy.first << "," << two_xy.second << "); ";
// create the region
std::pair<int,int> x_range = std::make_pair(std::min(one_xy.first, two_xy.first), std::max(one_xy.first, two_xy.first));
@@ -155,7 +155,7 @@
&& (self_xy.second <= y_range.second)) {
// In the region.
if(organism->GetRegion()==1) {
- std::cout << " inside.";
+// std::cout << " inside.";
result += 1.0;
}
} else if(organism->GetRegion()==-1) {
@@ -163,11 +163,11 @@
// && ((self_xy.second < y_range.first) || (self_xy.second > y_range.second))
// && (organism->GetRegion()==-1)) {
// Is this organism correctly declaring itself to be outside the region?
- std::cout << " outside.";
+// std::cout << " outside.";
result += 1.0;
}
- std::cout << std::endl;
+// std::cout << std::endl;
return result;
}
More information about the Avida-cvs
mailing list