Skip to content

added correct normalization for random direction spinor

Description

This MR fixes a bug in the states_elec_generate_random function, where spinors were wrongly normalized if no fixed direction was given.

News snippet

This MR fixes a bug in the states_elec_generate_random function

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.

Closes #312 (closed)

Edited by Martin Lueders

Merge request reports