diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 11:15:03 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-12-05 11:15:03 (GMT) |
commit | 5d6289ae740f08efb383a98ee5100e57175637ae (patch) | |
tree | 90f8f8c07fffed05a59b1e93c3cfc63ec0bdec87 | |
parent | f4712eb38e551707fe71a4a1fdacd1898d818bc7 (diff) |
Further improved reading data from next frame.
-rw-r--r-- | src/lib/tng_io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 67b4c78..9562622 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -16343,7 +16343,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_particle_data_next_frame_read { return(stat); } - if(frame_set->prev_frame_set_file_pos != frame_set_file_pos) + if(frame_set->prev_frame_set_file_pos != frame_set_file_pos && + tng_data->current_trajectory_frame_set_input_file_pos != frame_set_file_pos) { tng_num_frames_get(tng_data, &n_frames); if(i < n_frames) @@ -16497,7 +16498,8 @@ tng_function_status DECLSPECDLLEXPORT tng_util_non_particle_data_next_frame_read { return(stat); } - if(frame_set->prev_frame_set_file_pos != frame_set_file_pos) + if(frame_set->prev_frame_set_file_pos != frame_set_file_pos && + tng_data->current_trajectory_frame_set_input_file_pos != frame_set_file_pos) { tng_num_frames_get(tng_data, &n_frames); if(i < n_frames) |