Skip to content

Fix segfault for periodic boundaries on GPUs

Sebastian Ohlmann requested to merge fix_boundaries_segfault into main

Description

Execute the kernel only if there are boundary points. This avoids the segfault that occurs when trying to access a size-0 array on the GPU.

Checklist

  • I have checked that my code follows the Octopus coding standards
  • I have added tests for all the new features added in this request.

Merge request reports