Skip to content

Commit

Permalink
Bugfix AnalyticAdaptor: capture return value before passing it on (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
stigrj committed Oct 13, 2021
1 parent 1166c29 commit a69527f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/treebuilders/AnalyticAdaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ template <int D> class AnalyticAdaptor final : public TreeAdaptor<D> {
int scale = node.getScale();
int nQuadPts = node.getKp1();
if (this->func->isVisibleAtScale(scale, nQuadPts)) return false;
double *ub = node.getUpperBounds().data();
double *lb = node.getLowerBounds().data();
if (this->func->isZeroOnInterval(lb, ub)) return false;
auto ub = node.getUpperBounds();
auto lb = node.getLowerBounds();
if (this->func->isZeroOnInterval(lb.data(), ub.data())) return false;
return true;
}
};
Expand Down

0 comments on commit a69527f

Please sign in to comment.