<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
GMX Developers,<br>
<span class="Apple-tab-span" style="white-space: pre; "></span>I have a long simulation, and I noticed that at some point the timestamp in the xtc file gets rounded. &nbsp;For sufficiently long simulations, this leads to many frames having the same timestamp. Here
 is a sample output from g_dist<br>
<br>
15689440.0000000 &nbsp;&nbsp;&nbsp;4.1125884 &nbsp;&nbsp;-0.8720000 &nbsp;&nbsp;-3.9099998 &nbsp;&nbsp;&nbsp;0.9300003<br>
15689441.0000000 &nbsp;&nbsp;&nbsp;4.0926588 &nbsp;&nbsp;-0.8410001 &nbsp;&nbsp;-3.8730006 &nbsp;&nbsp;&nbsp;1.0209999<br>
15689441.0000000 &nbsp;&nbsp;&nbsp;4.0091296 &nbsp;&nbsp;-0.8900001 &nbsp;&nbsp;-3.7840004 &nbsp;&nbsp;&nbsp;0.9809999<br>
15689442.0000000 &nbsp;&nbsp;&nbsp;3.9852955 &nbsp;&nbsp;-0.8520000 &nbsp;&nbsp;-3.7909999 &nbsp;&nbsp;&nbsp;0.8860002<br>
15689443.0000000 &nbsp;&nbsp;&nbsp;3.9080644 &nbsp;&nbsp;-0.8450000 &nbsp;&nbsp;-3.6969995 &nbsp;&nbsp;&nbsp;0.9440002<br>
15689443.0000000 &nbsp;&nbsp;&nbsp;3.8975551 &nbsp;&nbsp;-0.8559999 &nbsp;&nbsp;-3.6749997 &nbsp;&nbsp;&nbsp;0.9760003<br>
15689444.0000000 &nbsp;&nbsp;&nbsp;3.9498629 &nbsp;&nbsp;-0.8680000 &nbsp;&nbsp;-3.7300005 &nbsp;&nbsp;&nbsp;0.9670000<br>
15689444.0000000 &nbsp;&nbsp;&nbsp;3.9664337 &nbsp;&nbsp;-0.9370000 &nbsp;&nbsp;-3.7350001 &nbsp;&nbsp;&nbsp;0.9510002<br>
<br>
<br>
I then use g_energy for the edr file from the same run:<br>
<br>
15689440.200000 &nbsp;-68.322456<br>
15689440.800000 &nbsp;-24.153179<br>
15689441.400000 &nbsp;-172.497147<br>
15689442.000000 &nbsp;-143.456650<br>
15689442.600000 &nbsp;-225.489212<br>
15689443.200000 &nbsp;-185.056137<br>
15689443.800000 &nbsp;-192.895752<br>
<br>
<br>
I checked gmx_dist.c, and it appears to not be performing any rounding, so it looks like the timestamp is rounded before it is saved to the xtc. Though, perhaps I am misunderstanding the code.<br>
<br>
Additionally, when I run gmxcheck on the xtc file, I get many errors, similar to:<br>
<br>
Reading frame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 time 15689440.000 &nbsp;&nbsp;<br>
Reading frame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2 time 15689441.000 &nbsp;&nbsp;<br>
Timesteps at t=1.56894e&#43;07 don't match (1, 0)<br>
Reading frame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3 time 15689442.000 &nbsp;&nbsp;<br>
Timesteps at t=1.56894e&#43;07 don't match (0, 1)<br>
Reading frame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5 time 15689443.000 &nbsp;&nbsp;<br>
Timesteps at t=1.56894e&#43;07 don't match (1, 0)<br>
Reading frame &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;6 time 15689444.000 &nbsp;&nbsp;<br>
<br>
<br>
In later runs, this gets worse, and it appears to round to the nearest 2 ps, and not 1 ps.<br>
<br>
These errors seem consistent with my impression that the timestamp is rounded before it is saved to the xtc.<br>
<br>
Is there a need for this rounding? &nbsp;I'm having trouble finding the source of it, so I'm also not sure how to disable it. &nbsp;If you can point me to the right lines, that would be great.<br>
<br>
Your help is much appreciated.<br>
<br>
Paul Whitford<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<br class="Apple-interchange-newline">
-------------------------------------------------------</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Paul Whitford,&nbsp;Assistant Professor</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Department of Physics</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Dana Research Center, Room 123</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Northeastern University</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Boston, MA 02115</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Office: 617-373-2952</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
Email:&nbsp;<a href="mailto:p.whitford@neu.edu">p.whitford@neu.edu</a></div>
</div>
<br>
</body>
</html>