Please help me debug fix_wall_bounceback

Hi,dear Lammps users.
I am trying to write my own program. After I put the .cpp and .h files into the lammps src software package and type "make linux". The following error information occurs:

../fix_wall_bounceback.cpp(124): error: identifier "list" is undefined
    list = ptr;
    ^

../fix_wall_bounceback.cpp(168): error: identifier "list" is undefined
    inum = list->inum;
           ^

compilation aborted for ../fix_wall_bounceback.cpp (code 2)
make[1]: *** [fix_wall_bounceback.o] Error 2

Could someone tell me how to define "list"?

2013-11-26

lixiaojun305

fix_wall_bounceback.cpp (12.2 KB)

fix_wall_bounceback.h (2.33 KB)

Hi,dear Lammps users.
I am trying to write my own program. After I put the .cpp and .h files into
the lammps src software package and type "make linux". The following error
information occurs:

../fix_wall_bounceback.cpp(124): error: identifier "list" is undefined
    list = ptr;
    ^

../fix_wall_bounceback.cpp(168): error: identifier "list" is undefined
    inum = list->inum;
           ^

compilation aborted for ../fix_wall_bounceback.cpp (code 2)
make[1]: *** [fix_wall_bounceback.o] Error 2
Could someone tell me how to define "list"?

i don't understand. if you don't know what it does and how to define
it, why did you put it there in the first place?

you are not likely to find somebody to look at code that doesn't even compile.

axel.