[Avida-cvs] [avida-svn] r737 - development/source/actions

brysonda@myxo.css.msu.edu brysonda at myxo.css.msu.edu
Tue Jun 6 14:39:31 PDT 2006


Author: brysonda
Date: 2006-06-06 17:39:31 -0400 (Tue, 06 Jun 2006)
New Revision: 737

Modified:
   development/source/actions/PrintActions.cc
Log:
Modify PrintDominant(Parasite)Genotype actions so as to disambiguate the output files.

Modified: development/source/actions/PrintActions.cc
===================================================================
--- development/source/actions/PrintActions.cc	2006-06-06 18:43:10 UTC (rev 736)
+++ development/source/actions/PrintActions.cc	2006-06-06 21:39:31 UTC (rev 737)
@@ -390,7 +390,7 @@
   {
     cGenotype* dom = m_world->GetClassificationManager().GetBestGenotype();
     cString filename(m_filename);
-    if (filename == "") filename.Set("archive/%s", static_cast<const char*>(dom->GetName()));
+    if (filename == "") filename.Set("archive/%s.org", static_cast<const char*>(dom->GetName()));
     cTestUtil::PrintGenome(m_world, dom->GetGenome(), filename, dom, m_world->GetStats().GetUpdate());
   }
 };
@@ -424,7 +424,7 @@
     cInjectGenotype* dom = m_world->GetClassificationManager().GetBestInjectGenotype();
     if (dom != NULL) {
       cString filename(m_filename);
-      if (filename == "") filename.Set("archive/%s", static_cast<const char*>(dom->GetName()));
+      if (filename == "") filename.Set("archive/%s.para", static_cast<const char*>(dom->GetName()));
       cTestUtil::PrintGenome(m_world, dom, dom->GetGenome(), filename, m_world->GetStats().GetUpdate());
     }
   }




More information about the Avida-cvs mailing list