computing addforce

Please keep the list in the loop.

the result was: avefx=0.5 and sumfx=50 NOTE that the total number of atoms
in the group "all" was 100.

Why do you think that isn't correct? 50/100 = 0.5 for sum versus ave.

Steve