Multiple successive addforce calls

From: Benjamin Bouvier (benjamin.bouvier_at_sophia.inria.fr)
Date: Thu Jun 05 2008 - 08:18:16 CDT

Hi all,

I'm using TCLforces to compute custom forces on a group of atoms. The
force on a given atom (say, $i) is a sum of several terms (say, $x1, $x2
and $x3).
Is it OK to use:

addforce $i $x1
addforce $i $x2
addforce $i $x3

or should I do the sum myself, ie:
addforce $i [vecadd $x1 $x2 $x3]

I'm looking through the code right now, but if anybody knows the answer
and would like to spare me some work...

Thanks,

Benjamin

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:49:32 CST