Page 1 of 1

OUTPOS error

Posted: Sun Jan 14, 2007 7:08 am
by graeme
There is a small error on line 565 in the poscar.F file in vasp.4.6.28. The POSCAR data is being written to the unit number IU, so the line

IF (LSDYN) WRITE(13,'(A18)') 'Selective dynamics'

should be

IF (LSDYN) WRITE(IU,'(A18)') 'Selective dynamics'

This only affects writing of poscar data to a file other than the CONTCAR.

OUTPOS error

Posted: Tue Jan 16, 2007 12:50 pm
by admin
Dear Graeme, thank you for that hint!
actually, the 'selective dynamics' line is of relevance for the relaxation behaviour only if read from the CONTCAR file in follow-ups of a vasp-run.
Also, the read statements reading that part written in OUTPOS to all other files besides CONTCAR (eg. in CHGCAR) expect exactly 7 lines before the positions of the atoms are read (1xheader, 4xskipping:(1xlattice constant scaling factor + 3xBravais matrix: doloop 1,4), 1x#of ions, 1x skipping the line saying either 'direct' or 'carthesian'). There is no information passed to these subroutines (eg READCHG) whether 'selective dynamics' is chosen (and hence there would be 8 lines to read) or not.
Thats the reason why 13 (CONTCAR) is explicitely given (instead of IU) in that special write statement.

OUTPOS error

Posted: Tue Jan 16, 2007 5:31 pm
by graeme
Ah yes, I see what you mean - thank you for the explanation. I'll make sure to use unit 13 for any for any CONTCAR-like files.