MCPcopy Create free account
hub / github.com/devosoft/avida / ModifyDemeResCount

Method ModifyDemeResCount

avida-core/source/main/cDeme.cc:703–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

701
702
703void cDeme::ModifyDemeResCount(cAvidaContext& ctx, const Apto::Array<double>& res_change, const int absolute_cell_id) {
704 // find relative cell_id in deme resource count
705 const int relative_cell_id = GetRelativeCellID(absolute_cell_id);
706 deme_resource_count.ModifyCell(ctx, res_change, relative_cell_id);
707}
708
709void cDeme::SetupDemeRes(int id, cResource * res, int verbosity, cWorld* world) {
710 const double decay = 1.0 - res->GetOutflow();

Callers 1

Calls 1

ModifyCellMethod · 0.80

Tested by

no test coverage detected