Modifying Morse potential file

Dear LAMMPS users,

I am trying to use modified potential to my simulation.

I’ve modified morse potential files (pair_morse.cpp, pair_morse.h), and created them with new names “pair_ctm.cpp, pair_ctm.h” so that I can use “pair_style ctm” as pair command.

Now I want to try if these files are working or not. But I am not sure where I need to put those files.

I downloaded “LAMMPS 64-bit 20130913” package, but I couldn’t find right folder to put them.

I got morse potential files from “lammps-2Feb13.tar”.

Please help.

Thank you.

Sungae Lee

Dear LAMMPS users,

I am trying to use modified potential to my simulation.

I’ve modified morse potential files (pair_morse.cpp, pair_morse.h), and
created them with new names “pair_ctm.cpp, pair_ctm.h” so that I can use
“pair_style ctm” as pair command.

Now I want to try if these files are working or not. But I am not sure where
I need to put those files.

I downloaded “LAMMPS 64-bit 20130913” package, but I couldn’t find right
folder to put them.

I got morse potential files from “lammps-2Feb13.tar”.

i don't understand your question. if you modify source code, you need
to (re)compile the executable, but it looks as if you downloaded a
precompiled executable. you cannot simply add a new source to that,
you have to compile and link the entire executable.

please talk to somebody local that can explain compilation to you.

axel.