added correct normalization for random direction spinor
requested to merge 312-wrong-normalization-of-spinor-states-in-states_elec_generate_random into develop
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