Commit d44a0a58 authored by Robert Ricci's avatar Robert Ricci

Fix to my last checkin, for when all nodes are fixed.

parent ca88efa3
...@@ -317,7 +317,7 @@ void anneal(bool scoring_selftest, double scale_neighborhood) ...@@ -317,7 +317,7 @@ void anneal(bool scoring_selftest, double scale_neighborhood)
double scores[neighborsize]; double scores[neighborsize];
#endif #endif
if (num_fixed == nnodes) { if (nnodes <= 0) {
cout << "All nodes are fixed. No annealing." << endl; cout << "All nodes are fixed. No annealing." << endl;
goto DONE; goto DONE;
} }
......
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