Skip to content

Commit

Permalink
Fix equal check
Browse files Browse the repository at this point in the history
  • Loading branch information
einar90 committed Nov 22, 2016
1 parent 503d782 commit 256b20f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FieldOpt/Optimization/optimizers/APPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace Optimization {

void APPS::unsuccessful_iteration(Case *c) {
vector<int> unsuccessful_direction;
if (c->origin_case()->Equals(tentative_best_case_)) {
if (c->origin_case()->id() == tentative_best_case_->id()) {
unsuccessful_direction.push_back(c->origin_direction_index());
set_inactive(unsuccessful_direction);
contract(unsuccessful_direction);
Expand Down

0 comments on commit 256b20f

Please sign in to comment.