Skip to content

Fix incorrect phase initialization when running gamma-only calculations

Micael Oliveira requested to merge fix_phase_init into hotfix-10.4

Description

In some cases the condition to determine if we needed to apply a phase was incorrect, as the code was only checking if the simulation box was periodic or not, while the correct check is if we are doing a gamma point only calculation or not. To make things easier, a new function is introduced to determine if a k-point grid is gamma-only or not.

News snippet

Fix incorrect phase initialization when running gamma-only calculations

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