I have two compiled versions of lammps in Ubuntu 22.04 and 24.04 machines. Both are the lammps featured release from 11 Feb 2026. The 24.04 runs without problems, but the 22.04 gives the error: Illegal pair_style command (src/MANYBODY/pair_eam.cpp:362).
The pair style definition is:
pair_style hybrid/overlay eam/alloy coul/ctip 0.3 12.
pair_coeff * * coul/ctip TiO.ctip O Ti
pair_coeff * * eam/alloy HfNbZrTiTaO.eam.alloy O Ti
For both installations, I have MANYBODY, QEQ, and EXTRA-PAIR packages installed. I used lmp -h to check the installed packages and pair styles. The pair style eam/alloy is present in both installations, but the pair style coul/ctip is absent in the running lammps for UBUNTU 22.04.
I checked the line src/MANYBODY/pair_eam.cpp:362, but I have no clue about the problem.
I appreciate any tip that may help me solve this situation.
This is impossible without having more information.
For starters, you could provide the output of lmp -h for the two different executables up to the point of where the individual styles are listed. There are loads of useful details in them. Here would be the equivalent output of my current development executable:
I found my mistake. As is very usual, a stupid one. I was compiling Lammps in a computer with an old version. I deleted the old version and it is running.