[avida-cvs] avida CVS commits: /current/source/event cPopulation.events

mercere99 avida-cvs at alife.org
Fri Dec 5 14:34:20 PST 2003


mercere99		Fri Dec  5 06:34:20 2003 EDT

  Modified files:              
    /avida/current/source/event	cPopulation.events 
  Log:
  Added more details in output when there is a problem with the
  inject_sequence event.
  
  
Index: avida/current/source/event/cPopulation.events
diff -u avida/current/source/event/cPopulation.events:1.47 avida/current/source/event/cPopulation.events:1.48
--- avida/current/source/event/cPopulation.events:1.47	Fri Oct 31 06:48:43 2003
+++ avida/current/source/event/cPopulation.events	Fri Dec  5 06:34:20 2003
@@ -818,7 +818,9 @@
 if (start_cell < 0 ||
     end_cell > population->GetSize() ||
     start_cell >= end_cell) {
-  cout << "Warning: inject_sequence has invalid range!";
+  cout << "Warning: inject_sequence has invalid range!" << endl;
+  cout << "start=" << start_cell << "  end=" << end_cell
+       << "genome length=" << seq.GetSize() << endl;
 }
 else {
   cGenome genome(seq);






More information about the Avida-cvs mailing list