[Avida-SVN] r1570 - branches/uml/source/main

dknoester at myxo.css.msu.edu dknoester at myxo.css.msu.edu
Thu May 17 15:56:59 PDT 2007


Author: dknoester
Date: 2007-05-17 18:56:59 -0400 (Thu, 17 May 2007)
New Revision: 1570

Modified:
   branches/uml/source/main/cDeme.cc
   branches/uml/source/main/cUMLModel.cc
Log:
resetting model following competitions.

Modified: branches/uml/source/main/cDeme.cc
===================================================================
--- branches/uml/source/main/cDeme.cc	2007-05-17 15:26:51 UTC (rev 1569)
+++ branches/uml/source/main/cDeme.cc	2007-05-17 22:56:59 UTC (rev 1570)
@@ -77,6 +77,7 @@
 {
   birth_count = 0; 
   _age = 0;
+  umlMod.resetStateDiagrams(cell_ids.GetSize());
 }
 
 

Modified: branches/uml/source/main/cUMLModel.cc
===================================================================
--- branches/uml/source/main/cUMLModel.cc	2007-05-17 15:26:51 UTC (rev 1569)
+++ branches/uml/source/main/cUMLModel.cc	2007-05-17 22:56:59 UTC (rev 1570)
@@ -61,12 +61,11 @@
 void cUMLModel::resetStateDiagrams(int x)
 { 
 	// reset the number of state diagrams.
-	state_diagrams.resize(x); 
+  state_diagrams.clear();
+	state_diagrams.resize(x);
+  class_diagrams.clear();
 	class_diagrams.resize(x);
-	
 	seedDiagrams();
-	
-	
 }
 
 void cUMLModel::seedDiagrams()




More information about the Avida-cvs mailing list