[gmx-developers] scale total force
David
spoel at xray.bmc.uu.se
Fri Jul 9 19:50:30 CEST 2004
On Fri, 2004-07-09 at 19:43, Nguyen Hoang Phuong wrote:
> Dear all,
>
> I would like to multiply the total force which acts on each particle by a
> factor c. To do this, at the end of the force.c routine I added this
> part:
>
> for(i=0; natoms; i++){
>
> for (m=0; (m<DIM); m++) {
> f[i][m] = f[i][m]*c;
> fr->fshift[i][m] = fr->fshift[i][m]*c;
> }
> }
the fshift array has only 27 entries. It may be that you are overwriting
something.
>
>
> however simulation is run forever with nsteps = 1000
> Do you know where is wrong?
>
> Thanks a lot in advance.
>
> Phuong
>
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
--
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596, 75124 Uppsala, Sweden
phone: 46 18 471 4205 fax: 46 18 511 755
spoel at xray.bmc.uu.se spoel at gromacs.org http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the gromacs.org_gmx-developers
mailing list