This method sets the inflow for the named deme resource across ALL demes. * It changes the value in the environment, then updates it in the deme resource * counts. * * This maintains the connection between the enviroment value and the resource * count values, unlike cPopulation::SetSingleDemeResourceInflow() */
| 7254 | * count values, unlike cPopulation::SetSingleDemeResourceInflow() |
| 7255 | */ |
| 7256 | void cPopulation::SetDemeResourceInflow(const cString res_name, double new_level) |
| 7257 | { |
| 7258 | environment.SetResourceInflow(res_name, new_level); |
| 7259 | int num_demes = GetNumDemes(); |
| 7260 | for (int deme_id = 0; deme_id < num_demes; ++deme_id) { |
| 7261 | GetDeme(deme_id).GetDemeResources().SetInflow(res_name, new_level); |
| 7262 | } |
| 7263 | } |
| 7264 | |
| 7265 | /* This method sets the outflow for the named deme resource in a specific deme. |
| 7266 | * It changes the value in the environment, then updates the decay rate in the |
no test coverage detected