Bug #2937
tng_num_frames_get reports incorrect num frames
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Affected version - extra info:
Affected version:
Description
I've converted a TRR & TPR to TNG (all attached) using trjconv. There should be 3 frames - tng_num_frames_get says there's 50,001.
I've started digging a little..
https://github.com/gromacs/tng/blob/master/src/lib/tng_io.c#L10295
n_frames here is 50,000, which is the MD step number of the final frame.
I'm not sure if this is a bug with creating the TNG file (ie it's written wrong by trjconv), or if it's being read incorrectly.