Skip to content

Commit

Permalink
Print cell pars in XYZ file in angstrom
Browse files Browse the repository at this point in the history
  • Loading branch information
lvduyfhu committed Mar 14, 2016
1 parent 7202037 commit e15b450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaff/sampling/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __call__(self, iterative):
symbols = [periodic[numbers[i]].symbol for i in self.select]
self.xyz_writer = XYZWriter(self.fn_xyz, symbols)
rvecs = iterative.ff.system.cell.rvecs.copy()
rvecs_string = " ".join([str(x[0]) for x in rvecs.reshape((-1,1))])
rvecs_string = " ".join([str(x[0]/angstrom) for x in rvecs.reshape((-1,1))])
title = '%7i E_pot = %.10f %s' % (iterative.counter, iterative.epot, rvecs_string)
if self.select is None:
pos = iterative.ff.system.pos
Expand Down

0 comments on commit e15b450

Please sign in to comment.