Skip to content

Commit cac8b15

Browse files
committed
Fix: error of noncolin and autoset mag
1 parent 9c5446b commit cac8b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_cell/read_atoms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ bool UnitCell::read_atom_positions(std::ifstream &ifpos, std::ofstream &ofs_runn
864864
}
865865
// atomic initial magnetism will be autoset if user set zero for every atom
866866
// one exception is `lspinorb 1` with `noncolin 0`, this setting imply no-mag material but SOC included
867-
if (autoset_mag && !PARAM.inp.lspinorb || PARAM.inp.noncolin)
867+
if (autoset_mag && (!PARAM.inp.lspinorb || PARAM.inp.noncolin) )
868868
{
869869
if(PARAM.inp.nspin==4)
870870
{

0 commit comments

Comments
 (0)