-
Notifications
You must be signed in to change notification settings - Fork 152
Description
Describe the bug
Description:
I have encountered a reproducible issue where the spin-polarized PDOS for an Fe(110) surface is incorrectly calculated as non-magnetic when using gamma_only 1. When using a standard k-point mesh (e.g., 1 1 1), the PDOS displays the expected spin splitting.
With gamma_only 1: The PDOS for Fe atoms is perfectly symmetric (non-magnetic), suggesting that spin polarization is ignored or canceled out in the projection.
Expected behavior
The PDOS for Fe should show consistent spin-polarized behavior (spin-up and spin-down splitting) regardless of whether gamma_only is set to 1 or a k-mesh is used.
To Reproduce
ATOMIC_SPECIES
Fe 55.845 Fe_ONCV_PBE-1.0.upf
NUMERICAL_ORBITAL
Fe_gga_9au_100Ry_4s2p2d1f.orb
LATTICE_CONSTANT
1.889726
LATTICE_VECTORS
34.05400000000 0.000000000000 0.000000000000
0.000000000000 12.41200002472 0.000000000000
0.000000000000 7.446551197218 21.06345546835
ATOMIC_POSITIONS
Direct
Fe
0.000
135
0.000000000000 0.000000000000 0.000000000000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.055564680000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.111096190000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.166660870000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.222237140000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.277801830000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.333333330000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.388898020000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.444474280000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.499994210000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.555570480000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.611135160000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.666666670000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.722231350000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.777807620000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.833372300000 0 0 0 mag 2.2
0.000000000000 0.000000000000 0.888903810000 0 0 0 mag 2.2
0.059523110000 0.099980910000 0.944468490000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.999988410000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.055537270000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.111129370000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.166678220000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.222225560000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.277774420000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.333366510000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.388915370000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.444462700000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.500011560000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.555558890000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.611107750000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.666699840000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.722248700000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.777796030000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.833344890000 0 0 0 mag 2.2
0.000000000000 0.199961820000 0.888892220000 0 0 0 mag 2.2
0.059523110000 0.300028180000 0.944441080000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.000005760000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.055570450000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.111101960000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.166666640000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.222242910000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.277807590000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.333339100000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.388903780000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.444435290000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.499999970000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.555576240000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.611140920000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.666672430000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.722237110000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.777813380000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.833333300000 0 0 0 mag 2.2
0.000000000000 0.400009090000 0.888909570000 0 0 0 mag 2.2
0.059523110000 0.499990000000 0.944474260000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.999994180000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.055558860000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.111135130000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.166699810000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.222231320000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.277796000000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.333372270000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.388892190000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.444468460000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.500033150000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.555564650000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.611129340000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.666705610000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.722270290000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.777801800000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.833366480000 0 0 0 mag 2.2
0.000000000000 0.599970910000 0.888897990000 0 0 0 mag 2.2
0.059523110000 0.699951820000 0.944462670000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.000011530000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.055576210000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.111107720000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.166672400000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.222248670000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.277813350000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.333344860000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.388909550000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.444441050000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.500005740000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.555582000000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.611146690000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.666678200000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.722242880000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.777774390000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.833339070000 0 0 0 mag 2.2
0.000000000000 0.800018180000 0.888915340000 0 0 0 mag 2.2
0.059523110000 0.899999090000 0.944480020000 0 0 0 mag 2.2
0.118173710000 0.000206250000 0.000343320000 1 1 1 mag 2.2
0.118256800000 0.998524240000 0.111081890000 1 1 1 mag 2.2
0.118309090000 0.999430750000 0.221488880000 1 1 1 mag 2.2
0.118184080000 0.999683050000 0.332794070000 1 1 1 mag 2.2
0.118132940000 0.999803410000 0.444389910000 1 1 1 mag 2.2
0.118194600000 0.000097010000 0.555899400000 1 1 1 mag 2.2
0.118221410000 0.000947580000 0.667222510000 1 1 1 mag 2.2
0.118268850000 0.000976700000 0.777806590000 1 1 1 mag 2.2
0.118232490000 0.000542030000 0.889183550000 1 1 1 mag 2.2
0.118205730000 0.200904180000 0.000938010000 1 1 1 mag 2.2
0.118140200000 0.200504990000 0.111438750000 1 1 1 mag 2.2
0.118172410000 0.199807320000 0.222237920000 1 1 1 mag 2.2
0.118203640000 0.199184020000 0.333024130000 1 1 1 mag 2.2
0.118372750000 0.198920930000 0.443809460000 1 1 1 mag 2.2
0.118074370000 0.198497270000 0.555024900000 1 1 1 mag 2.2
0.118213930000 0.200884690000 0.667298070000 1 1 1 mag 2.2
0.118146860000 0.199242050000 0.780705480000 1 1 1 mag 2.2
0.118224330000 0.199427240000 0.891804450000 1 1 1 mag 2.2
0.118167880000 0.400748460000 0.000220720000 1 1 1 mag 2.2
0.118200370000 0.400103560000 0.111249330000 1 1 1 mag 2.2
0.120213280000 0.399799350000 0.221690110000 1 1 1 mag 2.2
0.118024640000 0.398823520000 0.332435980000 1 1 1 mag 2.2
0.120255370000 0.394190090000 0.444879720000 1 1 1 mag 2.2
0.117959360000 0.394390610000 0.559801680000 1 1 1 mag 2.2
0.118300260000 0.399472130000 0.669195770000 1 1 1 mag 2.2
0.118190620000 0.400678130000 0.778704740000 1 1 1 mag 2.2
0.118237990000 0.400583560000 0.889574560000 1 1 1 mag 2.2
0.118272470000 0.599654710000 0.999410280000 1 1 1 mag 2.2
0.118219100000 0.598849170000 0.110403400000 1 1 1 mag 2.2
0.118242070000 0.600820360000 0.219373980000 1 1 1 mag 2.2
0.118158680000 0.605610740000 0.329385800000 1 1 1 mag 2.2
0.120271240000 0.605341360000 0.443925930000 1 1 1 mag 2.2
0.117993300000 0.601555720000 0.556126540000 1 1 1 mag 2.2
0.118344050000 0.599832440000 0.667028280000 1 1 1 mag 2.2
0.118182510000 0.599870390000 0.777777630000 1 1 1 mag 2.2
0.118185530000 0.599693930000 0.888640320000 1 1 1 mag 2.2
0.118213830000 0.800877550000 0.997165990000 1 1 1 mag 2.2
0.118199460000 0.799431950000 0.109923310000 1 1 1 mag 2.2
0.118211050000 0.799495750000 0.222196900000 1 1 1 mag 2.2
0.118220800000 0.801051970000 0.333901050000 1 1 1 mag 2.2
0.120049560000 0.801016260000 0.444888170000 1 1 1 mag 2.2
0.118258790000 0.800678140000 0.555989640000 1 1 1 mag 2.2
0.118129480000 0.800691030000 0.666782190000 1 1 1 mag 2.2
0.118178870000 0.799812970000 0.777485750000 1 1 1 mag 2.2
0.118160890000 0.798669780000 0.888246520000 1 1 1 mag 2.2
INPUT_PARAMETERS
#Parameters (1.General)
#suffix 1
calculation scf
pseudo_dir ./
orbital_dir ./
basis_type lcao
ecutwfc 50
ntype 1
out_chg 0
#out_wfc 1
#Parameters (2. SCF iterations)
scf_thr 1e-7
scf_nmax 150
gamma_only 1
vdw_method d3_bj #d2 d3_0 d3_bj
#Parameters (4.Smearing)
nspin 2
smearing_method mp
smearing_sigma 0.02
#Parameters (5.Mixing)
mixing_type broyden
mixing_beta 0.4
mixing_gg0 1.5
#init_chg 0
out_dos 2
dos_sigma 0.07
Environment
Environment:
ABACUS Version: 3.10.0 (LTS)
Calculation Type: nscf (based on scf results)
Basis Type: lcao
System: Fe(110) surface
Additional Context
No response
Task list for Issue attackers (only for developers)
- Verify the issue is not a duplicate.
- Describe the bug.
- Steps to reproduce.
- Expected behavior.
- Error message.
- Environment details.
- Additional context.
- Assign a priority level (low, medium, high, urgent).
- Assign the issue to a team member.
- Label the issue with relevant tags.
- Identify possible related issues.
- Create a unit test or automated test to reproduce the bug (if applicable).
- Fix the bug.
- Test the fix.
- Update documentation (if necessary).
- Close the issue and inform the reporter (if applicable).