[Avida-cvs] [avida-svn] r532 - branches/jeffdev/source/cpu
jclune@myxo.css.msu.edu
jclune at myxo.css.msu.edu
Sun Mar 26 10:47:29 PST 2006
Author: jclune
Date: 2006-03-26 13:47:29 -0500 (Sun, 26 Mar 2006)
New Revision: 532
Modified:
branches/jeffdev/source/cpu/cHardwareCPU.cc
Log:
stopped printing out some debugging info, leaving quanta a mess
Modified: branches/jeffdev/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/jeffdev/source/cpu/cHardwareCPU.cc 2006-03-26 17:28:02 UTC (rev 531)
+++ branches/jeffdev/source/cpu/cHardwareCPU.cc 2006-03-26 18:47:29 UTC (rev 532)
@@ -2918,13 +2918,15 @@
if (neighbor != NULL) {
DoDonate(neighbor);
- static ofstream kinDistanceFile("KinDistance.dat");
+ //print out how often random donations go to kin
+ /*
+ static ofstream kinDistanceFile("kinDistance.dat");
kinDistanceFile << (genotype->GetPhyloDistance(neighbor->GetGenotype())<=1) << " ";
kinDistanceFile << (genotype->GetPhyloDistance(neighbor->GetGenotype())<=2) << " ";
kinDistanceFile << (genotype->GetPhyloDistance(neighbor->GetGenotype())<=3) << " ";
kinDistanceFile << genotype->GetPhyloDistance(neighbor->GetGenotype());
kinDistanceFile << endl;
-
+ */
neighbor->GetPhenotype().SetIsReceiverRand();
}
@@ -3218,7 +3220,6 @@
// 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();
@@ -3284,7 +3285,7 @@
phenotype.IncDonates();
phenotype.SetIsDonorQuantaThreshGb();
phenotype.IncNumQuantaThreshGbDonations();
- cout << endl << "quanta_threshgb attempt.. " ;
+ //cout << endl << "quanta_threshgb attempt.. " ;
// Find the target as the first match found in the neighborhood.
@@ -3309,8 +3310,8 @@
// math trick to make sure its the next lowest event multiple of donate_quanta.
const int quanta_donate_thresh =
(phenotype.GetNumQuantaThreshGbDonationsLast() / donate_quanta) * donate_quanta;
- cout << " phenotype.GetNumQuantaThreshGbDonationsLast() is " << phenotype.GetNumQuantaThreshGbDonationsLast();
- cout << " quanta thresh= " << quanta_donate_thresh;
+ //cout << " phenotype.GetNumQuantaThreshGbDonationsLast() is " << phenotype.GetNumQuantaThreshGbDonationsLast();
+ //cout << " quanta thresh= " << quanta_donate_thresh;
// rotate through orgs in neighborhood
while (neighbor_id < max_id) {
neighbor = organism->GetNeighbor();
@@ -3350,7 +3351,7 @@
if (neighbor != NULL) {
DoDonate(neighbor);
neighbor->GetPhenotype().SetIsReceiverQuantaThreshGb();
- cout << " ************ neighbor->GetPhenotype().GetNumQuantaThreshGbDonationsLast() is " << neighbor->GetPhenotype().GetNumQuantaThreshGbDonationsLast();
+ //cout << " ************ neighbor->GetPhenotype().GetNumQuantaThreshGbDonationsLast() is " << neighbor->GetPhenotype().GetNumQuantaThreshGbDonationsLast();
}
More information about the Avida-cvs
mailing list