+ fixes #0001327: Crash in System::initSolution()

This commit is contained in:
wmayer 2013-12-09 13:41:38 +01:00
parent c86b7e17c8
commit 5e628aedf1

View File

@ -748,7 +748,9 @@ void System::initSolution()
}
VEC_I components(boost::num_vertices(g));
int componentsSize = boost::connected_components(g, &components[0]);
int componentsSize = 0;
if (!components.empty())
componentsSize = boost::connected_components(g, &components[0]);
// identification of equality constraints and parameter reduction
std::set<Constraint *> reducedConstrs; // constraints that will be eliminated through reduction