[Avida-SVN] r2110 - branches/energy/source/main
beckma24 at myxo.css.msu.edu
beckma24 at myxo.css.msu.edu
Tue Sep 25 13:07:28 PDT 2007
Author: beckma24
Date: 2007-09-25 16:07:28 -0400 (Tue, 25 Sep 2007)
New Revision: 2110
Modified:
branches/energy/source/main/cPopulation.cc
Log:
Added check the NUM_DEMES must not be less than 1
Modified: branches/energy/source/main/cPopulation.cc
===================================================================
--- branches/energy/source/main/cPopulation.cc 2007-09-25 19:47:56 UTC (rev 2109)
+++ branches/energy/source/main/cPopulation.cc 2007-09-25 20:07:28 UTC (rev 2110)
@@ -81,6 +81,10 @@
// Avida specific information.
world_x = world->GetConfig().WORLD_X.Get();
world_y = world->GetConfig().WORLD_Y.Get();
+ if(m_world->GetConfig().NUM_DEMES.Get() < 1) {
+ cout<<"There must be at least 1 deme. Update your Avida configuration file.\n";
+ exit(1);
+ }
int num_demes = m_world->GetConfig().NUM_DEMES.Get();
const int num_cells = world_x * world_y;
const int geometry = world->GetConfig().WORLD_GEOMETRY.Get();
More information about the Avida-cvs
mailing list