Page 1 of 1

IERR=0 Error reading item 'MAGMOM'

Posted: Tue Sep 13, 2005 12:11 pm
by bth20
Hi there,

A noncollinear calculation halted almost immediately with the message:

Error reading item 'MAGMOM' from file INCAR.
Error code was IERR=0 ... . Found N= 49 data.

There are 19 ions in the POSCAR file and it reads that fine. The MAGMOM line is:

MAGMOM = 0.05 -0.05 4.0 0.02 -0.07 4.0 -0.03 -0.04 4.0 0.06 0.01 4.0 0.00 -0.05 4.0 0.00 0.08 4.0 -0.05 0.03 4.0 -0.05 -0.04 4.0 0.06 -0.02 4.0 0.02 -0.04 4.0 -0.07 -0.01 4.0 -0.00 0.05 4.0 -0.03 0.06 4.0 -0.03 -0.04 4.0 0.06 0.01 4.0 0.00 -0.05 4.0 0.00 0.08 4.0 -0.05 0.03 4.0 -0.05 -0.04 4.0

which is 19 sets of 3-vectors in the form which I thought was correct for a noncollinear calculation.

Can anyone see what's wrong?

Thanks

Ben

IERR=0 Error reading item 'MAGMOM'

Posted: Tue Sep 13, 2005 11:06 pm
by graeme
It could be the line length. Vasp has a maximum line length of 255 char when reading variables from the INCAR, and the MAGMOM line has 294. This can be changed in the drdatab.F file in the vasp library.

IERR=0 Error reading item 'MAGMOM'

Posted: Wed Sep 14, 2005 6:26 am
by Veronika
Exactly. Set in the drdatab.F file (vasp.4.lib) #define LONGCHAR (at the beginning, bevor #ifdef LONGCHAR) and recompile the lib.

IERR=0 Error reading item 'MAGMOM'

Posted: Wed Mar 14, 2012 11:28 pm
by leonabdalla
I am having a similar problem but now i have 181 x 3(vector), variable in the magnon line, what should i change in the drdatab.F file?