[Avida-SVN] r1680 - in branches/dkdev/source: . main
dknoester at myxo.css.msu.edu
dknoester at myxo.css.msu.edu
Thu Jun 14 18:49:26 PDT 2007
Author: dknoester
Date: 2007-06-14 21:49:25 -0400 (Thu, 14 Jun 2007)
New Revision: 1680
Modified:
branches/dkdev/source/defs.h
branches/dkdev/source/main/cPopulation.cc
Log:
Added replication in faced direction.
Modified: branches/dkdev/source/defs.h
===================================================================
--- branches/dkdev/source/defs.h 2007-06-13 23:28:22 UTC (rev 1679)
+++ branches/dkdev/source/defs.h 2007-06-15 01:49:25 UTC (rev 1680)
@@ -129,7 +129,8 @@
POSITION_CHILD_EMPTY,
POSITION_CHILD_FULL_SOUP_RANDOM,
POSITION_CHILD_FULL_SOUP_ELDEST,
- POSITION_CHILD_DEME_RANDOM
+ POSITION_CHILD_DEME_RANDOM,
+ POSITION_PARENT_FACING
};
const int NUM_LOCAL_POSITION_CHILD = POSITION_CHILD_FULL_SOUP_RANDOM;
Modified: branches/dkdev/source/main/cPopulation.cc
===================================================================
--- branches/dkdev/source/main/cPopulation.cc 2007-06-13 23:28:22 UTC (rev 1679)
+++ branches/dkdev/source/main/cPopulation.cc 2007-06-15 01:49:25 UTC (rev 1680)
@@ -1434,7 +1434,9 @@
deme_array[deme_id].IncBirthCount();
return GetCell(out_cell_id);
- }
+ } else if(birth_method == POSITION_PARENT_FACING) {
+ return *parent_cell.ConnectionList().GetFirst();
+ }
// Construct a list of equally viable locations to place the child...
tList<cPopulationCell> found_list;
More information about the Avida-cvs
mailing list