[Avida-cvs] [avida-svn] r504 - in branches/jeffdev/source: cpu main

jclune@myxo.css.msu.edu jclune at myxo.css.msu.edu
Sat Mar 11 20:41:48 PST 2006


Author: jclune
Date: 2006-03-11 23:41:48 -0500 (Sat, 11 Mar 2006)
New Revision: 504

Modified:
   branches/jeffdev/source/cpu/cHardwareCPU.cc
   branches/jeffdev/source/main/cPhenotype.cc
Log:
debugging thresh gb donates

Modified: branches/jeffdev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/jeffdev/source/cpu/cHardwareCPU.cc	2006-03-12 04:27:38 UTC (rev 503)
+++ branches/jeffdev/source/cpu/cHardwareCPU.cc	2006-03-12 04:41:48 UTC (rev 504)
@@ -3201,7 +3201,7 @@
   // rotate through orgs in neighborhood  
   while (neighbor_id < max_id) {
       neighbor = organism->GetNeighbor();
-
+      cout << "threshgb attempt.." << endl;
       //if neighbor exists, AND if their parent attempted to donate >= threshhold,
       if (neighbor != NULL && neighbor->GetPhenotype().GetNumThreshGbDonationsLast()>=cConfig::GetMinGBDonateTreshold() ) {
           const cGenome & neighbor_genome = neighbor->GetGenome();
@@ -3236,6 +3236,8 @@
   if (neighbor != NULL) {
     DoDonate(neighbor);
     neighbor->GetPhenotype().SetIsReceiverThreshGb();
+    cout << "************ neighbor->GetPhenotype().GetNumThreshGbDonationsLast() is " << neighbor->GetPhenotype().GetNumThreshGbDonationsLast() << endl;
+    
   }
 
   return true;

Modified: branches/jeffdev/source/main/cPhenotype.cc
===================================================================
--- branches/jeffdev/source/main/cPhenotype.cc	2006-03-12 04:27:38 UTC (rev 503)
+++ branches/jeffdev/source/main/cPhenotype.cc	2006-03-12 04:41:48 UTC (rev 504)
@@ -589,7 +589,7 @@
   is_receiver_last = clone_phenotype.is_receiver_last;
   is_receiver_rand = clone_phenotype.is_receiver_rand;
   is_receiver_kin = clone_phenotype.is_receiver_kin;
-  is_receiver_edit = clone_phenotype.is_receiver_edt;
+  is_receiver_edit = clone_phenotype.is_receiver_edit;
   is_receiver_gbg = clone_phenotype.is_receiver_gbg;
   is_receiver_truegb = clone_phenotype.is_receiver_truegb;
   is_receiver_truegb_last = clone_phenotype.is_receiver_truegb_last;




More information about the Avida-cvs mailing list