Skip to content

Commit

Permalink
In LAMMPS, we should dump "xu yu zu" instead of "x y z" to avoid wrap…
Browse files Browse the repository at this point in the history
…ping.
  • Loading branch information
ttadano committed Oct 27, 2017
1 parent b8f4b10 commit c444a7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,10 +753,10 @@ def get_coordinate_LAMMPS(lammps_dump_file):

with open(lammps_dump_file) as f:
for line in f:
if "ITEM:" in line and "ITEM: ATOMS x y z " not in line:
if "ITEM:" in line and "ITEM: ATOMS xu yu zu" not in line:
add_flag = False
continue
elif "ITEM: ATOMS x y z " in line:
elif "ITEM: ATOMS xu yu zu" in line:
add_flag = True
continue

Expand Down

0 comments on commit c444a7b

Please sign in to comment.