compiling lammps with MC package

Dear lammpsers,

I have encountered a problem while compiling lammps with a MC package... Does anyone have experience with sorting this out?

pair_dsmc.cpp(211): error #165: too few arguments in function call
     max_cell_size = force->numeric(arg[0]);
                                          ^

pair_dsmc.cpp(212): error #165: too few arguments in function call
     seed = force->inumeric(arg[1]);
                                  ^

pair_dsmc.cpp(213): error #165: too few arguments in function call
     weighting = force->numeric(arg[2]);
                                      ^

pair_dsmc.cpp(214): error #165: too few arguments in function call
     T_ref = force->numeric(arg[3]);
                                  ^

pair_dsmc.cpp(215): error #165: too few arguments in function call
     recompute_vsigmamax_stride = force->inumeric(arg[4]);
                                                        ^

pair_dsmc.cpp(216): error #165: too few arguments in function call
     vsigmamax_samples = force->inumeric(arg[5]);
                                               ^

pair_dsmc.cpp(250): error #165: too few arguments in function call
     double sigma_one = force->numeric(arg[2]);
                                             ^

pair_dsmc.cpp(253): error #165: too few arguments in function call
     if (narg == 4) cut_one = force->numeric(arg[3]);
                                                   ^

compilation aborted for pair_dsmc.cpp (code 2)
make[1]: *** [pair_dsmc.o] Error 2
make[1]: Leaving directory `/home/al614/lammps-14Mar13/src/Obj_darwin'
make: *** [darwin] Error 2

with best wishes,
Anna

force->numeric requires three arguments, the first two are wrapped in the macro FLERR, so the correct way to call it would be force->numeric(FLERR,arg[3]) etc…

How old is your LAMMPS installation?

1 Like