Dear LAMMPS Developers:
I have a possible bug related to the pair style of hybrid to report.
To be short, the simulation results will be different if simply swich the order to sub-styles given by pair_style hybrid.
For your convenience, two almost same input files(only the line with this pair_style hybrid differ) are prepared as attached. You can easily reproduce the problem by following the brief instruction in README.txt.
How to reproduce this bug:
step 1. go to test1 run ‘Run.sh’ if you have ‘lmp_mpi’ installed (LAMMPS (16 Feb 2016))
step 2. go to test2 run ‘Run.sh’ if you have ‘lmp_mpi’ installed (LAMMPS (16 Feb 2016))
NOTE: the ONLY difference between test1/run.in and test2/run.in is from the 5th line, where the order of the sub_styles are switched.
test1 has “pair_style hybrid lj/cut/coul/long 13.0 lj/cut 13.0”, lj/cut/coul/long appear first
test2 has “pair_style hybrid lj/cut 13.0 lj/cut/coul/long 13.0”, lj/cut appear first
step 3. plot the second column (temp) against the step by file test1/log.screen and test2/log.screen, you will have a figure as given in this folder.
Actually, It was expected that there would be no difference between these two cases, however, after 10,000 steps, visiable difference occur.
This problem can be reproduced by lammps version of ‘LAMMPS (16 Feb 2016)’.
Thank you for your attention!
Best.,
BugTest.tar.gz (118 KB)