Open ZLI-afk opened 6 months ago
Did you use the official version of dpdata
instead of your modified version?
In my enviroment where dpdata
is directly installed via pip, the results seem different.
Although the direct format is changed to cartesian format ( and the direction also changes), the structure is correct.
dpdata version: 0.2.18
########## POSCAR to lmp ##########
[[[2.90221865e+00 5.62047878e-17 7.56157145e-17]
[1.45110951e+00 2.51339452e+00 7.56157145e-17]
[1.45110805e+00 8.37797708e-01 2.36965106e+00]]]
########## lmp to POSCAR ##########
[[[2.90221865 0. 0. ]
[1.45110951 2.51339452 0. ]
[1.45110805 0.83779771 2.36965106]]]
Ok. It seems that a complete skipping of post function rot_lower_triangular
related to #641 can lead to this issue. But it still do reorient my input structure unexpectedly when the function turns on. Maybe there is a better way to fix this?
rot_lower_triangular
should be moved to the lammps part. The current behavior is not correct.
Bug summary
When configuration converting between
POSCAR
andlammps/lmp
viadpdata
, I get a totally different resulted cell structure. Did I make a mistake or it appears to be a bug? please see details belowdpdata Version
0.2.18
Input Files, Running Commands, Error Log, etc.
Original
POSCAR.orig
:Convert script:
output:
POSCAR.after
:Steps to Reproduce
POSCAR.orig
POSCAR.after
Further Information, Files, and Links
No response