[gmx-developers] mtop structure

Anton Feenstra feenstra at few.vu.nl
Wed Feb 25 09:15:21 CET 2009


Alexander Malafeev wrote:
> I am uderstand how to use fields in this structure and what it means, 
> but I am not understand how to initialize and read this structure from 
> trajectory.

Not sure if I understand you well, but it seems you may be a bit 
off-track here.

As Mark explained, mtop holds your molecules, as per the [ molecules ] 
section in the topology file.

Therefore, it is not stored in the trajectory (that holds only the 
coordinates), but in the topology file. There are a number of topology 
reading routines in the library, which also get used by many analysis 
tools. Check for one that has a tpr file as obligatory input (ngmx 
springs to mind), and see how that code works.


-- 
Groetjes,

Anton
  _____________ _______________________________________________________
|             |                                                       |
|  _   _  ___,| K. Anton Feenstra                                     |
| / \ / \'| | | IBIVU/Bioinformatics - Free University  Amsterdam     |
|(   |   )| | | De Boelelaan 1083A - 1081 HV Amsterdam - Netherlands  |
| \_/ \_/ | | | Tel +31 20 59 87783 - Fax +31 20 59 87653 - Room P136 |
|             | Feenstra at few.vu.nl - www.few.vu.nl/~feenstra/         |
|             | "You Could Be a Shadow" (The Breeders)                |
|_____________|_______________________________________________________|



More information about the gromacs.org_gmx-developers mailing list