Dear Tilak Das,
I would advise you to use the hdf5 output of VASP to get better precision. Projectors are accessible in the vaspout.h5 file via the projector class in py4vasp.
However, if you want to keep using the PROCAR file, the fix is an easy change in sphpro.F:
Change the format specifiers in lines 1631 to 1634 so that instead of F6.3 they use F12.9 (or similar) and recompile the code.
It should look like this:
Code: Select all
3204 FORMAT(I5,17(1X,F12.9))
3214 FORMAT(I5,17(1X,F12.9,1X,F12.9,1X))
3205 FORMAT('tot ',17(1X,F12.9)/)
3215 FORMAT('charge',17(F12.9,1X,' ',2X)/)
I attach 2 PROCAR files, both resulting from the Tl_x test in the vasp testsuite. PROCAR_new is using the changed format, PROCAR_old is the original.
Note that you can also adjust the spacing of the
Code: Select all
ion s py pz px dxy dyz dz2 dxz x2-y2 tot
lines to fit the new data layout by modifying the variables LCHAR, LMCHAR and LMCHAR_LONG right in the beginning of the file.
If you also want to change the output of PROCAR_OPT, you will have to change the corresponding format specifiers in lines 1753 to 1756 of sphpro.F.
You do not have the required permissions to view the files attached to this post.