We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4bbfee commit 9508fe2Copy full SHA for 9508fe2
spiner/piecewise_grid_1d.hpp
@@ -57,13 +57,13 @@ class PiecewiseGrid1D {
57
pointTotals_[i] = point_tot;
58
point_tot += grids[i].nPoints();
59
if (i > 0) {
60
- const Real diff = std::abs(grids_[i].min() - grids_[i - 1].max());
61
- const Real avg =
62
- 0.5 * (std::abs(grids_[i].min()) + std::abs(grids_[i - 1].max()));
63
- if (ratio_(diff, avg) >= EPS_()) {
64
- PORTABLE_ALWAYS_THROW_OR_ABORT(
+ const Real diff = std::abs(grids_[i].min() - grids_[i - 1].max());
+ const Real avg =
+ 0.5 * (std::abs(grids_[i].min()) + std::abs(grids_[i - 1].max()));
+ if (ratio_(diff, avg) >= EPS_()) {
+ PORTABLE_ALWAYS_THROW_OR_ABORT(
65
"Grids must be ordered and intersect at exactly one point.");
66
- }
+ }
67
}
68
69
0 commit comments