lab-cosmo / i-pi-dev_archive

Development version of i-PI
21 stars 12 forks source link

Important units problem #147

Closed grhawk closed 7 years ago

grhawk commented 7 years ago

We just found an important bug: after the merge with fastxyz the units conversion in input will be applied based on the keyword in the file containing the positions file AND on the keywork in the initialize node of the input xml. For example: if the comment in the file contains position{angstrom} and the xml contains

<file units='angstrom'> namefile </file>

i-PI will convert the position of the atoms twice. The output is not guaranteed to be right!

mahrossi commented 7 years ago

Ugh! :( Good catch.

grhawk commented 7 years ago

@mahrossi well... I should have seen it before the merge... so it is not a so good catch... :(

grhawk commented 7 years ago

In the branch fix_iounit the input is working now with the following rules:

grhawk commented 7 years ago

Still todo: