+ fixes #0001327: Crash in System::initSolution()
This commit is contained in:
parent
c86b7e17c8
commit
5e628aedf1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user