Fix total current with j-dependent UPF pseudopotential
Description
Prevent calling hm%hm_base%znlocal_position_commutator when it is not supported. This was making the code stop with an assert when computing the total current with j-dependent pseudopotentials. Thanks to @ssato for reporting this.
Closes #892 (closed)
News snippet
Bugfix for calculation of the total current with j-dependent UPF pseudopotential
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.