Come here to discuss issues with using the p2y converter from PWscf to Yambo, how to best run PWscf , link with the IOTK library, and so on.

Moderators: andrea.ferretti, Conor Hogan

Forum rules
Before posting, make sure to first read carefully all the detailed steps and suggestions given in the main documentation:
Post Reply
Posts: 9
Joined: Wed Nov 11, 2015 11:54 am


Post by davide.tiana » Wed Nov 18, 2015 1:50 pm

Dear yamboers
I've just found that yambo can't be run usign the pw tot_magnetization tag.
I know it is not a big issue, I can rerun a scf without it (playing and checking with starting_magnetization)
I was curious on understanding why this is a problem and if it could be eventually overcome/ removed

Laboratory of molecular simulation
EPFL, Switzerland

User avatar
Davide Sangalli
Posts: 342
Joined: Tue May 29, 2012 4:49 pm
Location: Via Salaria Km 29.3, CP 10, 00016, Monterotondo Stazione, Italy


Post by Davide Sangalli » Mon Nov 23, 2015 5:51 pm

Dear Davide,
the reason is that pwscf defines two different Fermi levels.
In coding yambo we never thought about this option.

Not sure if this would really be a problem for yambo.
You may try to comment the error message and see what happens.
No idea if it will work.

Open the file interfaces/p2y/qexml_v4.0.F, look for the lines

Code: Select all

      IF ( two_ef_ .and. found ) THEN
        CALL errore('qexml_read_bands_info',&
&         ' TWO_FERMI_ENERGIES=.true. Action: run pwscf without fixed_magnetization.',1)
        CALL iotk_scan_dat( iunit, "FERMI_ENERGY", ef_, IERR=ierr )
        IF (ierr/=0) RETURN
and just replace them with

Code: Select all

Hope it helps.

Davide Sangalli, PhD
CNR-ISM, Division of Ultrafast Processes in Materials (FLASHit) and MaX Centre

Post Reply