[lammps-users] Issue with API compatibility of PLUMED

Hello.

I am trying to use the 'fix plumed' available through the package
'USER-PLUMED'. For this, I have installed PLUMED version 2.5.2. After
linking plumed with lammps (version 19Jul19), I tested the example provided
at the location (/lammps-19Jul19/examples/USER/plumed). When I run this
example, I get the following error for the 'fix plumed'.

ERROR: Incompatible API version for PLUMED in fix plumed

The documentation (
3.7. Packages with extra build options — LAMMPS documentation) indicates that
2.4.x, 2.5.x, and 2.6.x have been tested to work with lammps. I am unable
to figure out why I get the above error although I use the plumed version
of 2.5.2.

Following is what I did to install and link plumed to lammps.

Installing plumed:
./configure --enable-modules:crystallization
--prefix=/home/darshan/instPlumed252
make -j 4
make install

Linking and installing lammps:
make lib-plumed args="-p /home/darshan/instPlumed252 -m shared"
make yes-user-plumed
make mpi

I would appreciate it if you can point to what I am missing or error that I
am making.

Thank you.

Best regards,
Manoj

The online documentation always reflects the state of the latest development/patch release of LAMMPS and that version (8 April 2021) is compatible with your plumed 2.5.2 version (and 2.6.x and 2.7.x and 2.4.x). Your LAMMPS version has a bug that was fixed only in Feb 2020 that prevents it from being working with plumed 2.5.x.

Axel.

Thanks, Axel. I will use the correct versions.

Best,
Manoj