[Avida-SVN] r2133 - branches/energy/source/main
beckma24 at myxo.css.msu.edu
beckma24 at myxo.css.msu.edu
Wed Oct 10 06:21:28 PDT 2007
Author: beckma24
Date: 2007-10-10 09:21:28 -0400 (Wed, 10 Oct 2007)
New Revision: 2133
Modified:
branches/energy/source/main/cOrganism.cc
branches/energy/source/main/cStats.cc
Log:
changed PrintMsgSentBlockedDump to use 1 file
Modified: branches/energy/source/main/cOrganism.cc
===================================================================
--- branches/energy/source/main/cOrganism.cc 2007-10-09 19:09:57 UTC (rev 2132)
+++ branches/energy/source/main/cOrganism.cc 2007-10-10 13:21:28 UTC (rev 2133)
@@ -654,9 +654,7 @@
int last_msg_subupdate = 0;
if(m_msg->received.size() > 0) {
- cerr<<m_msg->received.size()<<endl;
cOrgMessage& last_msg = m_msg->received.back();
- cerr<<m_msg->received.size()<<endl;
last_msg.GetTXComplete(last_msg_update, last_msg_subupdate);
}
Modified: branches/energy/source/main/cStats.cc
===================================================================
--- branches/energy/source/main/cStats.cc 2007-10-09 19:09:57 UTC (rev 2132)
+++ branches/energy/source/main/cStats.cc 2007-10-10 13:21:28 UTC (rev 2133)
@@ -1056,7 +1056,7 @@
}
void cStats::PrintMsgSentBlockedDump(const cString& filename) {
- cDataFile& df = m_world->GetDataFile(cStringUtil::Stringf("msg_sent_block_dump_%07i.dat", GetUpdate()));
+ cDataFile& df = m_world->GetDataFile(filename);
cPopulation& pop = m_world->GetPopulation();
int width = pop.GetWorldX();
for(int i = 0; i < pop.GetSize(); i++) {
@@ -1075,6 +1075,8 @@
}
df.WriteBlockElement(data, i, width);
}
+ df.Endl();
+ df.Endl();
}
void cStats::PrintSenseData(const cString& filename)
More information about the Avida-cvs
mailing list