[lammps-users] wish for help

Hi lammps comunity

(My first try to use lammps mail list, don’t know whether the website i sent is right.)

When i recompile using “make mpi” after i ‘configure’,‘make’, ‘make install’ a package, it went wrong as below, and the make progress was interupted. Could anyone tell me how to fix it?

my version is lammps-29Oct20

…/fix_gfc.cpp:47: warning: “MAX” redefined
#define MAX(a,b) ((a) > (b) ? (a) : (b))

In file included from …/atom.h:17,
from …/fix_gfc.cpp:29:
…/pointers.h:40: note: this is the location of the previous definition
#define MAX(A,B) ((A) > (B) ? (A) : (B))

…/fix_gfc.cpp: In constructor ‘LAMMPS_NS::FixGFC::FixGFC(LAMMPS_NS::LAMMPS*, int, char**)’:
…/fix_gfc.cpp:54:76: error: no matching function for call to ‘LAMMPS_NS::Error::all(const char [49])’
if (narg<7) error->all(“Illegal fix gfc command: number of arguments < 7”);
^
In file included from …/fix_gfc.cpp:32:
…/error.h:33:23: note: candidate: ‘void LAMMPS_NS::Error::all(const string&, int, const string&)’
[[ noreturn ]] void all(const std::string &, int, const std::string &);
^~~
…/error.h:33:23: note: candidate expects 3 arguments, 1 provided
…/fix_gfc.cpp:57:56: error: no matching function for call to ‘LAMMPS_NS::Error::all(const char [24])’
if (nevery <= 0) error->all(“Illegal fix gfc command”);

…/error.h:34:23: note: candidate expects 3 arguments, 1 provided
…/fix_gfc.cpp: In destructor ‘virtual LAMMPS_NS::FixGFC::~FixGFC()’:
…/fix_gfc.cpp:245:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(RIloc);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp:246:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(RIall);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp:247:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(Rsort);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp:248:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(Rnow);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp:249:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(Rsum);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp:250:11: error: ‘class LAMMPS_NS::Memory’ has no member named ‘destroy_2d_double_array’; did you mean ‘destroy2d_offset’?
memory->destroy_2d_double_array(surfbasis);
^~~~~~~~~~~~~~~~~~~~~~~
destroy2d_offset
…/fix_gfc.cpp: In member function ‘virtual int LAMMPS_NS::FixGFC::setmask()’:
…/fix_gfc.cpp:281:11: error: ‘END_OF_STEP’ was not declared in this scope
mask |= END_OF_STEP;
^~~~~~~~~~~
…/fix_gfc.cpp:281:11: note: suggested alternative:
In file included from …/fix_gfc.h:23,
from …/fix_gfc.cpp:33:
…/fix.h:257:20: note: ‘LAMMPS_NS::FixConst::END_OF_STEP’
static const int END_OF_STEP = 1<<9;
^~~~~~~~~~~
…/fix_gfc.cpp: In member function ‘virtual void LAMMPS_NS::FixGFC::init()’:
…/fix_gfc.cpp:292:75: error: no matching function for call to ‘LAMMPS_NS::Error::warning(const char [30])’
count > 1 && me == 0) error->warning(“More than one fix gfc defined”); // just warn, but allowed.
^

In file included from …/fix_gfc.cpp:32:
…/error.h:35:8: note: candidate: ‘void LAMMPS_NS::Error::warning(const string&, int, const string&, int)’
void warning(const std::string &, int, const std::string &, int = 1);
^~~~~~~
…/error.h:35:8: note: candidate expects 4 arguments, 1 provided
…/fix_gfc.cpp: In member function ‘virtual int LAMMPS_NS::FixGFC::modify_param(int, char**)’:
…/fix_gfc.cpp:456:58: error: no matching function for call to ‘LAMMPS_NS::Error::all(const char [27])’
if (narg < 2) error->all(“Illegal fix_modify command”);
^
In file included from …/fix_gfc.cpp:32:
…/error.h:33:23: note: candidate: ‘void LAMMPS_NS::Error::all(const string&, int, const string&)’
[[ noreturn ]] void all(const std::string &, int, const std::string &);
^~~

…/error.h:34:23: note: candidate expects 3 arguments, 1 provided
…/fix_gfc.cpp:982:110: error: no matching function for call to ‘LAMMPS_NS::Error::one(const char [48])’
(0.,0.)) error->one(“FixGFC: Singular matrix in complex GaussJordan!”);
^

In file included from …/fix_gfc.cpp:32:
…/error.h:34:23: note: candidate: ‘void LAMMPS_NS::Error::one(const string&, int, const string&)’
[[ noreturn ]] void one(const std::string &, int, const std::string &);
^~~
…/error.h:34:23: note: candidate expects 3 arguments, 1 provided
Makefile:116: recipe for target ‘fix_gfc.o’ failed
make[1]: *** [fix_gfc.o] Error 1
make[1]: Leaving directory ‘/home/dlc/LAMMPS/lammps-29Oct20/src/Obj_mpi’
Makefile:195: recipe for target ‘mpi’ failed
make: *** [mpi] Error 2

Kind Regards,

Deng Lichuan

error0809 (26.7 KB)

There is no fix gfc in the LAMMPS distribution.

That file was apparently written for a different LAMMPS version. You have to contact its author for help.