Commit b5f0adb3 authored by Adam P. Goucher's avatar Adam P. Goucher

Bugfix

parent 0a358dc3
Pipeline #47986758 passed with stages
in 7 minutes and 19 seconds
......@@ -262,6 +262,10 @@ namespace apg {
// std::cerr << "done!" << std::endl;
} else if (recurse) {
auto cmap = census(ppart, ppart.ascertain_period(), 0, false);
if (cmap.size() == 0) {
std::cerr << "Warning: " << ppart.apgcode() << " gave empty census." << std::endl;
components.push_back(ppart.apgcode());
}
for (auto it = cmap.begin(); it != cmap.end(); ++it) {
for (int i = 0; i < it->second; i++) {
components.push_back(it->first);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment