[Avida-SVN] r1162 - branches/coopcomm/source/main

dknoester at myxo.css.msu.edu dknoester at myxo.css.msu.edu
Fri Dec 29 15:15:12 PST 2006


Author: dknoester
Date: 2006-12-29 18:15:12 -0500 (Fri, 29 Dec 2006)
New Revision: 1162

Modified:
   branches/coopcomm/source/main/cStats.cc
Log:
Fixed out-of-order printing of variable-length rows.

Modified: branches/coopcomm/source/main/cStats.cc
===================================================================
--- branches/coopcomm/source/main/cStats.cc	2006-12-29 23:06:29 UTC (rev 1161)
+++ branches/coopcomm/source/main/cStats.cc	2006-12-29 23:15:12 UTC (rev 1162)
@@ -966,7 +966,8 @@
   cDataFile& df = m_world->GetDataFile(filename);
   df.WriteColumnDesc("Update.");
   df.WriteColumnDesc("{update of election, deme id, leader id, cell_id}...");
-  
+  df.FlushComments();
+
   df.WriteAnonymous(m_update);
   std::ofstream& out = df.GetOFStream();
   for(std::vector<ElectionRecord>::iterator i=m_electionRecord.begin();
@@ -993,6 +994,7 @@
   cDataFile& df = m_world->GetDataFile(filename);
   df.WriteColumnDesc("Update.");
   df.WriteColumnDesc("{update of change, deme id, old_id, new_id}...");
+  df.FlushComments();
   
   df.WriteAnonymous(m_update);
   std::ofstream& out = df.GetOFStream();
@@ -1022,6 +1024,7 @@
   cDataFile& df = m_world->GetDataFile(filename);
   df.WriteColumnDesc("Update.");
   df.WriteColumnDesc("{update, deme id, sender cell-seq. id, recvr cell-seq. id, label, data}...");
+  df.FlushComments();
   
   df.WriteAnonymous(m_update);
   std::ofstream& out = df.GetOFStream();
@@ -1079,6 +1082,7 @@
   df.WriteColumnDesc("Update.");
   df.WriteColumnDesc("Max. deme fitness");
   df.WriteColumnDesc("<max fitness of deme>...");
+  df.FlushComments();
   
   df.WriteAnonymous(m_update);
   double max = 0.0;
@@ -1105,6 +1109,8 @@
   df.WriteColumnDesc("Cell begin.");
   df.WriteColumnDesc("Cell end.");
   df.WriteColumnDesc("Genome ID...");
+  df.FlushComments();
+
   df.WriteAnonymous(m_update);
   df.WriteAnonymous(m_maxDemeIndex);
   
@@ -1156,6 +1162,7 @@
   cDataFile& df = m_world->GetDataFile(filename);
   df.WriteColumnDesc("Update.");
   df.WriteColumnDesc("Cell-sequential ID:Cell-random ID...");
+  df.FlushComments();
 
   df.WriteAnonymous(m_update);
   std::ofstream& out = df.GetOFStream();




More information about the Avida-cvs mailing list