Skip to content

Output error with variable spin and Methfessel-Paxton smearing #336

Description

@davidbowler

When the spin is not fixed (Spin.FixSpin F) then during findFermi_varspin in DiagModule.f90 when using Methfessel-Paxton smearing, a warning message can be written if the number of electrons is more than 10 electrons away from the target which uses the wrong format statement.

lowEf(:) = minval(eig(lband,:,:))
call occupy(occ, eig, lowEf, electrons, nbands, nkp)
lowElec = spin_factor * sum(electrons(:))
! check if we indeed have a good lower bound
if ((electrons_total - lowElec) < two) then
if (inode == ionode) write (io_lun, 8) lowElec, NElec_less

This should be easy to fix: it gives an alarming message (e.g. Fermi level is 1547.66031 and then Fermi level is 10.00000 where it is indicating the number of electrons and parameter Diag.NElecLess not the Fermi level!)

Activity

  1. self-assigned this
    on Feb 27, 2024
  2. changed the title [-]Output error with variable spin[/-] [+]Output error with variable spin and Methfessel-Paxton smearing[/+] on Feb 27, 2024
  3. davidbowler commented on Aug 21, 2026

    @davidbowler
    ContributorAuthor

    Fixed in #470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions