I have modified morse potential, but I couldn’t recompile lammps with modified file.
Attached files are .cpp and .h file that I modified.
Can you help me find problems in the code?
pair_ctm.cpp (11.4 KB)
pair_ctm.h (1.82 KB)
I doubt anyone is going to debug your modified code.
If you post the compiler error message and the
line of offending code, someone might
have an idea. But more generally, figuring out how
to make a piece of code compile successfully is the
job of the person who writes the code.