How to extract force?

Please keep the list in the message loop.

If the dumped force is zero, then when you extract it some
other way it will be zero. If you want force (e.g. due
to other atoms) before you zero it in your
script, then look at fix store/force, and extract the
values it stores.