Skip to content

Commit

Permalink
Update write_lammps_data.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyxl authored Sep 9, 2023
1 parent 657e521 commit fbfe534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mofa/simulation/cif2lammps/write_lammps_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def lammps_inputs(args):
mass = FF.atom_masses[fft]
aty = FF.atom_types[fft]
sym = FF.atom_element_symbols[fft]
data.write('{:>5} {:>10} # {:>1}'.format(aty, mass, sym))
data.write('{:>5} {:>10} # {:>3}'.format(aty, mass, sym))
data.write('\n')
data.write('\n')

Expand Down Expand Up @@ -328,7 +328,7 @@ def lammps_inputs(args):
data.write('Atoms\n')
data.write('\n')
total_charge = 0.0

print(system["names"])
for a in SG.nodes(data=True):

atom_data = a[1]
Expand Down

0 comments on commit fbfe534

Please sign in to comment.