-
Hello there! I'm starting to use MDAnalysis and so far it's working very well, thanks to all the people who have contributed to this project! My question is about outputting atom coordinates in double precision. I have atom XYZ coordinates in double precision (16 decimal places) and would like to convert them to TRR files with full precision for use in Gromacs simulations. I hope someone can help, thanks for reading! Paul |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @paul31, MDAnalysis doesn't currently support full While we do acknowledge the need to improve our support for different precision, my question to you would be what exactly do you need all that precision for? It is many times unnecessary to compute things in full precision, differing on a case by case basis. If you really want to do this I would say you would probably need to write a program in C to read them, e.g with this C file and corresponding header. https://github.com/MDAnalysis/mdanalysis/blob/develop/package/MDAnalysis/lib/formats/src/xdrfile_trr.c, but may be a challenge. |
Beta Was this translation helpful? Give feedback.
Hi @paul31, MDAnalysis doesn't currently support full
double
precision for timesteps or in the low level interface in libmdaxdr, instead requiring 32 bit float precision only however this is something we are planning on working on for MDAnalysis 3.0 . See issue #3703, #3874 for discussion.While we do acknowledge the need to improve our support for different precision, my question to you would be what exactly do you need all that precision for? It is many times unnecessary to compute things in full precision, differing on a case by case basis.
If you really want to do this I would say you would probably need to write a program in C to read them, e.g with this C file and corresponding head…