[Avida-SVN] r2596 - development/source/analyze

kaben at myxo.css.msu.edu kaben at myxo.css.msu.edu
Mon May 26 00:58:19 PDT 2008


Author: kaben
Date: 2008-05-26 03:58:18 -0400 (Mon, 26 May 2008)
New Revision: 2596

Modified:
   development/source/analyze/cAnalyzeTreeStats_Gamma.cc
Log:
Fixing potential segfault bug in PRINT_GAMMA command.
(Does anyone know why we don't often use switch/case? I'm following what seems
to be our usual coding style.)


Modified: development/source/analyze/cAnalyzeTreeStats_Gamma.cc
===================================================================
--- development/source/analyze/cAnalyzeTreeStats_Gamma.cc	2008-05-26 04:23:14 UTC (rev 2595)
+++ development/source/analyze/cAnalyzeTreeStats_Gamma.cc	2008-05-26 07:58:18 UTC (rev 2596)
@@ -327,9 +327,12 @@
       cerr << " - 1: Use parent's birth time" << endl;
       cerr << " - 2: Use elder child's birth time" << endl;
       cerr << " - 3: Use younger child's birth time" << endl;
+      cerr << "Defaulting to first time convention (parent's birth time)." << endl;
     }
+    furcation_time_policy = FurcationTimePolicy_ParentBirth;
   }
 
+
   LoadGenotypes(genotype_list);
   EstablishLinks(m_gen_array, mapping);
   FindFurcationTimes(m_gen_array, furcation_time_policy, m_furcation_times);




More information about the Avida-cvs mailing list