lattice vectors change wih ISIF=2

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
jk2

lattice vectors change wih ISIF=2

#1 Post by jk2 » Wed Nov 08, 2006 2:03 pm

Hi,
I am performing structural relaxation (ISIF=2). My initial lattice vectors are:

7.720000 0.00000 0.00000
0.000000 7.72000 0.00000
0.000000 0.00000 27.452320

and in CONTCAR file I see :

7.7199999999999998 0.0000000000000000 0.0000000000000000
0.0000000000000000 7.7199999999999998 0.0000000000000000
0.0000000000000000 0.0000000000000000 27.4523200000000003

Of course, the difference is small, but why it happened?

thanks,
jan
Last edited by jk2 on Wed Nov 08, 2006 2:03 pm, edited 1 time in total.

tjf
Full Member
Full Member
Posts: 107
Joined: Wed Aug 10, 2005 1:30 pm
Location: Leiden, Netherlands

lattice vectors change wih ISIF=2

#2 Post by tjf » Thu Nov 09, 2006 1:48 pm

Presumably 7.72 is not representable in the representation model used on your machine (something like a 52 binary bit mantissa). What you get is the nearest possible number you can store on your machine.

To learn more, look up binary floating point data structures. (Googling 'ieee real' will give you a heap of info.)
Last edited by tjf on Thu Nov 09, 2006 1:48 pm, edited 1 time in total.

Post Reply