[lammps-users] (no subject)

Dear all,

I have added two new styles to Lammps: one angle style and another compute style. I added this in lammps-3Mar,2020 version. I need to install these files in the latest version of lammps. When I try to build the latest version including the new styles, I find the following errors:

error: no member named ‘bounds’ in 'LAMMPS_NS::Force’

force->bounds(FLERR,arg[0],atom->nangletypes,ilo,ihi);

*~~~~~ ^*

1 error generated.

make[2]: *** [CMakeFiles/lammps.dir/Users/postdoc/lammps/lammps-29Oct20/src/MOLECULE/angle_bending.cpp.o] Error 1

make[1]: *** [CMakeFiles/lammps.dir/all] Error 2

make: *** [all] Error 2

(base) postdoc@Postdocs-iMac build % cmake --build .

lammps/lammps-29Oct20/src/compute_tgt_atom.cpp:54:17: error: no member named ‘numeric’ in 'LAMMPS_NS::Force’

fstr = force->numeric(FLERR,arg[3]);

I see that numeric and bounds were defined in the force.h files of the 3rd Mar version. However, these two are not defined in the force.h file of the latest version. How to fix this issue?

Best regards,

Chandana

when in doubt, always consult the documentation!
for example this page: https://docs.lammps.org/Developer_utils.html
or compare existing files similar to yours between the old and the new version.

Axel.