[gmx-users] Again: Non-integer charges in tpr-files
K.A. Feenstra
Feenstra at chem.vu.nl
Thu Oct 17 09:19:25 CEST 2002
Erik Lindahl wrote:
>
> > *qt += n*atoms->atom[i].q;
> >
> > qt is *double, but t_atom.q is a float. Is the increment then done in
> > double or single precision? Or is that not defined?
>
> Double according to ANSI C. All intermediary results in C are double,
> even if _all_ operands are float (although you can sometimes override
> the standard with compiler flags).
OK. We're out of luck on this, then...
--
Groetjes,
Anton
________ ___________________________________________________________
| | Anton Feenstra |
| . | Dept. of Pharmacochemistry - Vrije Universiteit Amsterdam |
| |---- | De Boelelaan 1083 - 1081 HV Amsterdam - The Netherlands |
| |---- | Tel: +31 20 44 47608 - Fax: +31 20 44 47610 |
| ' __ | Feenstra at chem.vu.nl - http://www.chem.vu.nl/afdelingen/FAR|
| / \ |-----------------------------------------------------------|
| ( ) | Dept. of Biophysical Chemistry - University of Groningen |
| \__/ | Nijenborgh 4 - 9747 AG Groningen - The Netherlands |
| __ | Tel +31 50 363 4327 - Fax +31 50 363 4800 |
| / \ | K.A.Feenstra at chem.rug.nl - http://md.chem.rug.nl/~anton |
| ( ) |-----------------------------------------------------------|
| \__/ | "If You See Me Getting High, Knock Me Down" |
| | (Red Hot Chili Peppers) |
|________|___________________________________________________________|
More information about the gromacs.org_gmx-users
mailing list