Fix the routine species_same_as.
Description
Fix the routine species_same_as. This was causing the DFT+U code to misbehave in certain cases, including the example in the tutorial.
News snippet
Bugfix for the code causing the DFT+U tutorial to produce wrong results.
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.