force->numeric(FLERR, arg[n])

Why are all the arguments put through this command when they are defined in coeff()?
What is the numeric function? I don’t see it’s definition in force.h (the numeric function
there takes three parameters, this only has two).

The function is defined in force.cpp. FLERR is a #define that

expands into 2 args. Did you look in pointers.h where it is


This function is called everywhere in LAMMPS to insure the

input script (or data file) has valid numbers for params that

are supposed to be numbers.