Page 1 of 1

PROCAR precision

PostPosted: Fri Mar 17, 2017 10:04 am
by paulfons
I am calculating surface states of rather large slabs (several hundred atoms) and am calculating the contributions (spherical harmonic projections) of individual atoms on the surface bands. To do this I parsed the PROCAR file and used pymatgen and matplotlib to generate the graphics. While this worked quite well for smaller systems, for larger systems, the projection of any one atom is rather small and the three digits of precision offered in the PROCAR file seems inadequate. My question is this. Is it meaningful to modify the source to include more digits of precision? If it is meaningful, I suspect I have to modify some output lines in "sphpro.f90", but it is not clear to me which lines are relevant immediately as am not familiar with the variable naming schemes. Would someone be kind enough to mention which output lines should be modified?

Re: PROCAR precision

PostPosted: Tue Dec 05, 2017 7:55 am
by mwistey
If you're still interested in having a higher precision PROCAR, I can send you my patchfile for sphpro.F in VASP 5.4.4. It looks like the format of PROCAR has changed recently (5.4.4?) when LORBIT=12 is used.

Re: PROCAR precision

PostPosted: Fri Aug 31, 2018 10:47 am
by admin
yes, please simply increase the number of written digits in the FORMATs of the write statement(s) on sphpro.F:
the relevant lines are
3204 FORMAT(I5,17(1X,F6.3))
(for the atom-decomposed quantities) and
3205 FORMAT('tot ',17(1X,F6.3)/)
(for the total, summed up quantities)