Batchify the magnetic term in the Hamiltonian
Description
Batchify the magnetic term in the Hamiltonian Also fixes some temporary arrays.
News snippet
Optimization of the magnetic term.
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.
Edited by Nicolas Tancogne-Dejean