Skip to content

Commit

Permalink
Fixing bug affecting Q-type interpolation at the boundaries of the in…
Browse files Browse the repository at this point in the history
…terpolation grid. Thanks to S. Rodini for spotting it.)
  • Loading branch information
vbertone committed Sep 3, 2024
1 parent 8cfd62f commit 58597f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/qgrid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace apfel

// Return if "Q" is outside the grid range (no sum will be
// performed).
if (Q < _Qg.front() - eps12 || Q > _Qg.back() + eps12)
if (Q < _Qg.front() || Q > _Qg.back())
return bounds;

// If Q falls in the tiny gap at the thresholds assume the node
Expand Down

0 comments on commit 58597f5

Please sign in to comment.