Skip to content

Commit

Permalink
Add number of bonds, angles, and dihedrals
Browse files Browse the repository at this point in the history
  • Loading branch information
rmatsum836 committed Mar 11, 2020
1 parent 459ac4e commit 50c11d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gmso/formats/lammpsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ def write_lammpsdata(topology, filename, atom_style='full'):
else:
data.write('0 dihedrals\n')

data.write('{:d} atom types\n'.format(len(topology.atom_types)))
data.write('\n{:d} atom types\n'.format(len(topology.atom_types)))
data.write('{:d} bond types\n'.format(len(topology.bond_types)))
data.write('{:d} angle types\n'.format(len(topology.angle_types)))
data.write('{:d} dihedral types\n'.format(len(topology.dihedral_types)))

data.write('\n')

Expand Down

0 comments on commit 50c11d0

Please sign in to comment.