[Avida-SVN] r3165 - development/source/main
beckma24 at myxo.css.msu.edu
beckma24 at myxo.css.msu.edu
Thu Feb 26 14:41:41 PST 2009
Author: beckma24
Date: 2009-02-26 17:41:41 -0500 (Thu, 26 Feb 2009)
New Revision: 3165
Modified:
development/source/main/cDeme.cc
Log:
HACK: quickly fixing error in sleep counting when demes are used. The problem is caused because a deme is reset before the orgs. in it are killed when cPopulation::ReplicateDeme is called. A better fix is on the way. Also this will break the energy_deme_level_res test, but I will fix this in just a min.
Modified: development/source/main/cDeme.cc
===================================================================
--- development/source/main/cDeme.cc 2009-02-26 20:59:42 UTC (rev 3164)
+++ development/source/main/cDeme.cc 2009-02-26 22:41:41 UTC (rev 3165)
@@ -341,6 +341,9 @@
m_world->GetPopulation().KillOrganism(cell);
}
}
+ // HACK: organism are killed after DivideReset is called.
+ // need clear a deme before it is reset.
+ sleeping_count = 0;
}
void cDeme::UpdateStats()
More information about the Avida-cvs
mailing list