Closed hlyang1992 closed 8 years ago
This is not a problem with get_reduced_structure. When you use from_file, it does not reduce your structure to a primitive cell by default. If you add primitive=True, it should work as intended.
I think this is a problem with get_reduced_structure @shyuep . If I don't reduce structure when use from_file, I will not able to use structure.get_reduced_structure method to get a reduced structure. It will affect VaspInputSet, such as in DictVaspInputSet of sets.py: get_poscar
If I use from_file without primitive=True and give this structure to DictVaspInputSet with reduce_structure="niggli", I can't get reduce structure by using write_input method.
This is not a problem with get_reduced_structure. You misunderstand what "reduced" means. "Reduced" is lattice vector reduction, which means that the shortest vectors are found. It does not mean primitive cell reduction. If you want to do primitive cell, you should call structure.get_primitive_structure() first.
Thank you very much.
System
Summary
get_reduced_structure method of IStructure not work,
output is:
but when use
read_structure
read structure file, get_reduced_structure will work:output is: