Skip to content

Commit

Permalink
Use the complete competency table
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzeslaus committed Dec 1, 2023
1 parent 1523894 commit 3ee2189
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,10 @@ int main(int argc, char* argv[])
: 0;
}
config.create_pest_host_table_from_parameters(1);
std::vector<std::vector<double>> competency_table_data;
competency_table_data.push_back({1, 1});
competency_table_data.push_back({0, 0});
config.read_competency_table(competency_table_data);

if (opt.survival_rate_month->answer)
config.survival_rate_month = std::stoi(opt.survival_rate_month->answer);
Expand Down Expand Up @@ -1356,8 +1360,6 @@ int main(int argc, char* argv[])
suitable_cells));
models[run].environment().add_host(host_pools[run].get());

competency_tables[run]->add_host_competencies({1}, 1);

std::vector<SpreadModel::StandardSingleHostPool*> tmp = {host_pools[run].get()};
multi_host_pools.emplace_back(tmp, config);
multi_host_pools[run].set_pest_host_table(*pest_host_tables[run]);
Expand Down

0 comments on commit 3ee2189

Please sign in to comment.