diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-11 09:41:45 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-11 09:41:45 (GMT) |
commit | 9ae17016f5ebd5607e6906b2afc290cf333733eb (patch) | |
tree | 4ccd85881d8c29dea26527775d3894be4ab29aae | |
parent | 881dd64fcda884e36ac6d3e5acc88b72d639bf8e (diff) |
Fix frame indexing bug
-rw-r--r-- | src/tests/tng_io_read_pos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/tng_io_read_pos.c b/src/tests/tng_io_read_pos.c index 6163e7c..edd85ae 100644 --- a/src/tests/tng_io_read_pos.c +++ b/src/tests/tng_io_read_pos.c @@ -61,9 +61,9 @@ int main(int argc, char **argv) else { // Print the positions of the wanted particle (zero based) - for(i=first_frame; i<=last_frame; i++) + for(i=0; i<n_frames; i++) { - printf("%d", i); + printf("%d", first_frame + i); for(j=0; j<n_values_per_frame; j++) { switch(data_type) |