From ecc151baf427059195de31881889455133b11e2f Mon Sep 17 00:00:00 2001 From: Magnus Lundborg Date: Fri, 26 Sep 2014 13:13:01 +0200 Subject: 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 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); -- cgit v0.10.1