summaryrefslogtreecommitdiff
path: root/src/tests/tng_io_read_pos.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-01-11 09:41:45 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-01-11 09:41:45 (GMT)
commit9ae17016f5ebd5607e6906b2afc290cf333733eb (patch)
tree4ccd85881d8c29dea26527775d3894be4ab29aae /src/tests/tng_io_read_pos.c
parent881dd64fcda884e36ac6d3e5acc88b72d639bf8e (diff)
Fix frame indexing bug
Diffstat (limited to 'src/tests/tng_io_read_pos.c')
-rw-r--r--src/tests/tng_io_read_pos.c4
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)
contact: Jan Huwald // Impressum