Compilation Error When Making LIGGGHTS

Submitted by johnjiang on Fri, 07/19/2013 - 12:41

Dear guys:

I am new to this forum, and I would like to seek some help in the compilation of LIGGGHTS

When I compiled LIGGGHTS using "make openmpi", I encounter the following error messages:

fix_gravity_omp.cpp: In member function virtual void LAMMPS_NS::FixGravityOMP::post_force(int):
fix_gravity_omp.cpp:48: error: dt was not declared in this scope
fix_gravity_omp.cpp:48: error: phigrad was not declared in this scope
fix_gravity_omp.cpp:50: error: thetagrad was not declared in this scope
fix_gravity_omp.cpp:56: error: dt was not declared in this scope
fix_gravity_omp.cpp:56: error: thetagrad was not declared in this scope

I think I have got all the settings in the Makefile.openmpi correctly set (as only a few blanks need to be filled), but I cannot figure out what caused the errors shown above. I tried to grep the keywords "dt","phigrad" and "thetagrad", latter two seem to have appeared only in the file fix_gravity_omp.cpp.

Could anybody give me a hand? Many thanks!!

regards