[Avida-cvs] avida/current/source/main CVS commit
Brian D. Baer
bdbaer at users.sourceforge.net
Thu May 8 14:35:58 PDT 2003
Update of /cvsroot/avida/avida/current/source/main
In directory sc8-pr-cvs1:/tmp/cvs-serv9656
Modified Files:
callback_util.cc environment.cc population.cc population.hh
resource.cc resource.hh resource_count.cc resource_count.hh
stats.cc stats.hh
Log Message:
Added code to allow spatial resources.
callback_util:
changed calls to resources to include the ID of the grid cell the organism
is in
environment:
allow the reading of new parameters on the RESOURCE line of an enviroment
file
population:
fix problem where organisms on the border of the world grid were not
placing offspring in the correct cells
changed call to resource_count.Setup to include new variables
added call to SetSpatialRes, GetSpatialRes, SetResourcesGeometry and
GetResourcesGeometry
changed routnine UpdateCellResources to pass cell ID to
resource_count.ModifyCell
resource:
added new veriables
added routine SetGeometry
resource_count:
added classes cSpatialCountElem and cSpatialResCount
added spatial elements to cResourceCount
added code to allow flow of resources across the world grid
change ModifyCell to use the cell ID and only provide the resource for the
local cell in the case of spatial resources
modified update so that spartial resources are calculate only once an update
(i.e. last frequently than global resources) to minimize run time
stats
in PrintResourceData calls new routine PrintSpatialResData for spatial
resources
More information about the Avida-cvs
mailing list