[Avida-SVN] r3191 - branches/hjg-dev/source/cpu

hjg at myxo.css.msu.edu hjg at myxo.css.msu.edu
Tue Mar 17 05:24:19 PDT 2009


Author: hjg
Date: 2009-03-17 08:24:18 -0400 (Tue, 17 Mar 2009)
New Revision: 3191

Modified:
   branches/hjg-dev/source/cpu/cHardwareCPU.cc
Log:
Modified shaded-gb to only donate to orgs with the exact same shade/color

Modified: branches/hjg-dev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/hjg-dev/source/cpu/cHardwareCPU.cc	2009-03-14 17:23:48 UTC (rev 3190)
+++ branches/hjg-dev/source/cpu/cHardwareCPU.cc	2009-03-17 12:24:18 UTC (rev 3191)
@@ -3863,8 +3863,11 @@
 				neighbor_shade_of_gb = neighbor->GetPhenotype().GetTestCPUInstCount()[inst_number];
 			}
 				
-				
-			if (neighbor_shade_of_gb >=  shade_of_gb) {
+			// Changing this line makes shaded gb ONLY donate to organisms with the exact same 
+			// shade (color/number of donations)
+//			if (neighbor_shade_of_gb >=  shade_of_gb) {
+			if (neighbor_shade_of_gb ==  shade_of_gb) {
+
 				// Code to track the edit distance between shaded donors and recipients
 				const int edit_dist = cGenomeUtil::FindEditDistance(organism->GetGenome(),neighbor->GetGenome());
 				




More information about the Avida-cvs mailing list