This fixes the crashes we encountered when using scenarios with disc_detect in a SIMD-enabled Kokkos build.
Here, it was possible to encounter divisions by zero in the reconstruct ppm method during the disc_detect part. These only happened in masked out (deactivated) SIMD elements and thus would not affect the results. However, they would of course cause crashes. This commit fixes those by setting the deactivated elements to one (simply by using the same mask again).
This fixes the crashes we encountered when using scenarios with
disc_detect
in a SIMD-enabled Kokkos build.Here, it was possible to encounter divisions by zero in the reconstruct ppm method during the
disc_detect
part. These only happened in masked out (deactivated) SIMD elements and thus would not affect the results. However, they would of course cause crashes. This commit fixes those by setting the deactivated elements to one (simply by using the same mask again).Might fix #471 .