[gmx-users] Again: Non-integer charges in tpr-files

K.A. Feenstra Feenstra at chem.vu.nl
Tue Oct 8 07:42:06 CEST 2002


Erik Lindahl wrote:
> 
> Won't work, since we don't request that all charge groups are strictly
> neutral. It's only with cutoffs that the neutrality is important, but
> the concept of charge groups still speeds up neighborsearching quite a lot.

Ok, then what about this (you probably thought about this also, but 
anyway): in sum_q in topio.c, the charges are summed as follows:

    *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?


-- 
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