anyuzx / Lammps_brownian

custom LAMMPS fix used for Brownian Dynamics Simulation (Overdamped Langevin)
18 stars 9 forks source link

fix_bd.o error #5

Open m-vanitha opened 3 years ago

m-vanitha commented 3 years ago

HI, I am trying to simulate a chromatin system in the overdamped regime using BD simulation. I have uploaded the fix_bd and fix_bd_baob.cpp and the corresponding header files in the src folder. While building Lammps I am getting the following error: Can you help me where it goes wrong .It seems force -> numeric is the issue. How to fix this and didnt get much help in google for this

../fix_bd.cpp:45:21: error: ‘class LAMMPS_NS::Force’ has no member named ‘numeric’ t_target = force->numeric(FLERR,arg[3]); // set temperature ^~~ ../fix_bd.cpp:46:21: error: ‘class LAMMPS_NS::Force’ has no member named ‘numeric’ t_period = force->numeric(FLERR,arg[4]); // same as t_period in fix_langevin_overdamp.cpp ^~~ ../fix_bd.cpp:47:17: error: ‘class LAMMPS_NS::Force’ has no member named ‘inumeric’ seed = force->inumeric(FLERR,arg[5]); //seed for random number generator. integer ^~~~ Makefile:109: recipe for target 'fix_bd.o' failed make[1]: [fix_bd.o] Error 1 make[1]: Leaving directory '/home/vanitha/Downloads/lammps-29oct20/src/Obj_serial' Makefile:195: recipe for target 'serial' failed make: [serial] Error 2

anyuzx commented 2 years ago

Hi, Sorry for the late response. I haven't tested this fix in the recent version of LAMMPS. I suspect that this is due to the code changes. Fortunately, LAMMPS now officially has a BD fix https://docs.lammps.org/fix_brownian.html. I suggest that you just use that.