[lammps-users] fene bond

Hi Steve,
I did add r0 and rlogarg to be printed out in the error messade and here is what I got.

Finding 1-2 1-3 1-4 neighbors …
12 = max # of 1-2 neighbors
132 = max # of 1-3 neighbors
1532 = max # of 1-4 neighbors
126 = max # of special neighbors
Setting up run …
WARNING: FENE bond too long: 0 1 4 0.999849 0 -inf
ERROR on proc 0: Bad FENE bond

r0 is given by me in the input file which is 1.5 right?
In the code I added sprintf…,…,…,…sqrt(r0),logarg)

below is the piece of code

if (rlogarg < 0.1) {
char str[128];
sprintf(str,“FENE bond too long: %d %d %d %g %g %g”,
update->ntimestep,atom->tag[i1],atom->tag[i2],sqrt(rsq),sqrt(r0sq),rlogarg);

Any help would be appreciated.
Thanks
Venkat