\label{fig:rdmft_h2} Dissociation curve of the hydrogen molecule. Restricted Hartree-Fock (black dotted and red dash-dotted lines) does not dissociate into two neutral atoms while the closed-shell RDMFT gives almost the correct energy of -1 Ha at the dissociation limit in a Gaussian implementation. For the grid implementation in Octopus, a deviation from the constant energy at large $R$ remains.