diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-09-26 11:13:01 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2014-10-23 14:39:13 (GMT) |
commit | ecc151baf427059195de31881889455133b11e2f (patch) | |
tree | 0d52b8892b66e521ee7e8e6dd5440b8cd8632470 | |
parent | fe0628c358e7129df7e7d70ba300913ea46a66d9 (diff) |
Added tng_util_num_frames_with_data_of_block_id_get()
The function already existed in the tng_io.c, but has now
been exposed through the API. Basic code for testing it was
added as well.
Version bumped to 1.7.0
Change-Id: I369678a69787223b7a979feb749dff4ef0ee4717
-rw-r--r-- | src/tests/tng_io_testing.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/tng_io_testing.c b/src/tests/tng_io_testing.c index 3d790f4..28f8f47 100644 --- a/src/tests/tng_io_testing.c +++ b/src/tests/tng_io_testing.c @@ -1074,6 +1074,14 @@ tng_function_status tng_test_utility_functions(tng_trajectory_t traj, const char return(stat); } + tng_num_frames_per_frame_set_get(traj, &n_frames_per_frame_set); + + stat = tng_util_num_frames_with_data_of_block_id_get(traj, TNG_TRAJ_POSITIONS, &n_frames); + if(stat != TNG_SUCCESS || n_frames != n_frames_per_frame_set * N_FRAME_SETS) + { + return(stat); + } + tng_num_particles_get(traj, &n_particles); stat = tng_util_pos_read_range(traj, 1, n_frames_to_read, &positions, &stride_len); |