Segmentation Fault

Hi,

I’ve implemented a new pair style (It’s very similar to pair lj smooth in that it has an inner and outer cutoff. My potential between the inner and outer cutoff is just different). My code compiles the same way pair_lj_smooth does. When I run an input file, I get a segmentation fault. I’m wondering if anyone can figure out what might be wrong? Or if you know where I should be looking for problems.

Thanks,
Avik Mondal

P.S. Below I’ll post the input file as well as the full output when I run it.

INPUT FILE

You’ll need to debug your new coding yourself. I suggest using valgrind

on a single proc and running a tiny system, e.g. 2 atoms. That’s a good way to start.

Steve

You'll need to debug your new coding yourself. I suggest using valgrind
on a single proc and running a tiny system, e.g. 2 atoms. That's a good way
to start.

in order to have valgrind report meaningful information or use a
debugger, LAMMPS needs to be compiled and linked with the -g flag. the
stack trace from OpenMPI suggests that that was not done, or the debug
info stripped off after linking. this needs to be corrected first.

axel.