How to update LAMMPS to the latest version?

Dear All,

I have two questions regarding using reset_atoms command in old LAMMPS versions and also updating the LAMMPS version.

I am following Simon tutorial on unbreakable bonds for Carbon nanotube elongation:
https://lammpstutorials.github.io/sphinx/build/html/tutorials/level1/breaking-a-carbon-nanotube.html

I am getting the error:

Unknown command: reset_atoms id sort yes (src/input.cpp:279)
Last command: reset_atoms id sort yes

My LAMMPS version is 23 Jun 2022 and I guess the error is because the command is new, So I want to update my lammps to the newest version.
(1. Is there any other way that this command is defind in 2022 version that I can use for now without updating the LAMMPS?)
(2. I used “brew install lammps” according to the lammps tutorial, and ran my input file again, but it still shows LAMMPS version 23 Jun 2022 and it did not install the new version. Could you please help me how to update my LAMMPS version to the newest ?)

Thanks a lot

Please see the information here: 5.15. Removed commands and packages — LAMMPS documentation
and consult the documentation for your version (not the online version) to get the syntax of the previous versions of the commands before they were consolidated into the current command.

This is not a LAMMPS problem, but an issue of the “Homebrew” software packaging community. The LAMMPS developers have no influence over when and how packaging is done. People that do packaging make their own choices and it can easily happen that a person that started preparing a package stops maintaining it (e.g. because their interests change or because it becomes too much work).

The only “packaging” done by (one of) the LAMMPS developers are the packages attached to the release pages on GitHub: Releases · lammps/lammps · GitHub and the Windows installer packages: LAMMPS Windows Installer Repository

1 Like