You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #519 introduced tolerances on the evaluation of bsplines in order to avoid issues due to rounding errors near the domain boundaries. However the PR didn't change the evaluation algorithm. As a result if the rounding error occurs near the upper bound the value of the returned index is too large. This can lead to chunks being evaluated outside their domain.
(6) (6) (3.55271e-15)
Iteration range : (34) (37)
Last valid index : (36)
The "iteration range" refers to the range of bsplines which should be referenced by the 4 bspline values in the array.
Iteration over this range occurs here:
PR #519 introduced tolerances on the evaluation of bsplines in order to avoid issues due to rounding errors near the domain boundaries. However the PR didn't change the evaluation algorithm. As a result if the rounding error occurs near the upper bound the value of the returned index is too large. This can lead to chunks being evaluated outside their domain.
Minimum reproducer
Output:
The "iteration range" refers to the range of bsplines which should be referenced by the 4 bspline values in the array.
Iteration over this range occurs here:
ddc/include/ddc/kernels/splines/spline_evaluator.hpp
Lines 450 to 452 in 93b822f
(not critical as the too large coordinate leads to extrapolation conditions being evaluated instead)
and here:
ddc/include/ddc/kernels/splines/constant_extrapolation_rule.hpp
Lines 71 to 73 in 93b822f
(can cause unexpected failures in simulations)
cc: @Geoflow
The text was updated successfully, but these errors were encountered: