[Avida-SVN] r2347 - branches/energy/source/cpu

connel42 at myxo.css.msu.edu connel42 at myxo.css.msu.edu
Tue Feb 19 11:11:37 PST 2008


Author: connel42
Date: 2008-02-19 14:11:37 -0500 (Tue, 19 Feb 2008)
New Revision: 2347

Modified:
   branches/energy/source/cpu/cHardwareCPU.cc
Log:
re-enabled pheromone logging


Modified: branches/energy/source/cpu/cHardwareCPU.cc
===================================================================
--- branches/energy/source/cpu/cHardwareCPU.cc	2008-02-19 18:54:46 UTC (rev 2346)
+++ branches/energy/source/cpu/cHardwareCPU.cc	2008-02-19 19:11:37 UTC (rev 2347)
@@ -4210,7 +4210,7 @@
       cDeme &deme = pop.GetDeme(pop.GetCell(organism->GetCellID()).GetDemeID());
 
 //TODO: would be nice to use the DATA_DIR from the config file
-      //pherolog.open("data/pheromones.dat", ios::app);
+      pherolog.open("data/pheromones.dat", ios::app);
       int rel_srcid = deme.GetRelativeCellID(fromcellID);
       int rel_destid = deme.GetRelativeCellID(destcellID);
       double pher_amount;
@@ -4224,9 +4224,9 @@
         pher_amount = 0;
       }
 
-      //pherolog << m_world->GetStats().GetUpdate() << " " << organism->GetID() << " " << rel_srcid << " " << rel_destid << " " << pher_amount << " " << drop_mode << endl;
+      pherolog << m_world->GetStats().GetUpdate() << " " << organism->GetID() << " " << rel_srcid << " " << rel_destid << " " << pher_amount << " " << drop_mode << endl;
 
-      //pherolog.close();
+      pherolog.close();
     }
 
     // check tasks.  general movement tasks are not yet supported.




More information about the Avida-cvs mailing list