Skip to content

Commit

Permalink
Merge pull request #338 from mrshirts/freesolv
Browse files Browse the repository at this point in the history
Fix for .gro file output with too many atoms.
  • Loading branch information
mrshirts authored May 21, 2019
2 parents bdd38aa + cf6ce40 commit 569e765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intermol/gromacs/grofile_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def write(self, system):
atom.name = "LMP_{0}".format(atom.name)
# .gro wraps at 100,0000, which is why the field is 5 width.
gro.write('{0:5d}{1:<5s}{2:5s}{3:5d}'.format(
atom.residue_index, atom.residue_name, atom.name, (n + 1)%100000))
atom.residue_index%100000, atom.residue_name, atom.name, (n + 1)%100000))
for pos in atom.position:
gro.write('{0:17.12f}'.format(pos.value_in_unit(nanometers)))
if np.any(atom.velocity):
Expand Down

0 comments on commit 569e765

Please sign in to comment.