Skip to content

Commit

Permalink
fix the usage of pair_coeff (deepmodeling#567)
Browse files Browse the repository at this point in the history
The bare `pair_coeff` is not supported in the latest version of LAMMPS. `pair_coeff * *` should be used instead.

Fix deepmodeling/deepmd-kit#1201.
  • Loading branch information
njzjz authored and Cloudac7 committed Dec 1, 2021
1 parent d5e78e6 commit 55a2df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dpgen/generator/lib/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def make_lammps_input(ensemble,
if ele_temp_a is not None:
keywords += "aparam ${ELE_TEMP}"
ret+= "pair_style deepmd %s out_freq ${THERMO_FREQ} out_file model_devi.out %s\n" % (graph_list, keywords)
ret+= "pair_coeff \n"
ret+= "pair_coeff * *\n"
ret+= "\n"
ret+= "thermo_style custom step temp pe ke etotal press vol lx ly lz xy xz yz\n"
ret+= "thermo ${THERMO_FREQ}\n"
Expand Down

0 comments on commit 55a2df8

Please sign in to comment.