diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 23 | ||||
-rw-r--r-- | src/lib/tng_io.h | 26 |
2 files changed, 8 insertions, 41 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 8f1e137..c9c8658 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -5791,7 +5791,8 @@ tng_function_status tng_trajectory_init(tng_trajectory_t tng_data) tng_data->non_tr_particle_data = 0; tng_data->non_tr_data = 0; - + + frame_set->first_frame = -1; frame_set->contents.n_blocks = 0; frame_set->contents.block_names = 0; frame_set->n_mapping_blocks = 0; @@ -7445,20 +7446,6 @@ tng_function_status tng_particle_data_block_add(tng_trajectory_t tng_data, return(TNG_SUCCESS); } -tng_function_status tng_traj_block_read(tng_trajectory_t tng_data, - int64_t block_id) -{ - /* STUB */ - return(TNG_SUCCESS); -} - -tng_function_status tng_traj_block_write(tng_trajectory_t tng_data, - int64_t block_id) -{ - /* STUB */ - return(TNG_SUCCESS); -} - tng_function_status tng_frame_set_read_nr(tng_trajectory_t tng_data, int64_t frame_set_nr) { @@ -7471,6 +7458,12 @@ tng_function_status tng_frame_read_interval(tng_trajectory_t tng_data, int64_t end_frame_nr) { /* STUB */ + + struct tng_trajectory_frame_set frame_set = + &tng_data->current_trajectory_frame_set; + + if frame_set.frame_set_nr >= 0 + return(TNG_SUCCESS); } diff --git a/src/lib/tng_io.h b/src/lib/tng_io.h index 2a85a2e..b6f6ddf 100644 --- a/src/lib/tng_io.h +++ b/src/lib/tng_io.h @@ -1025,32 +1025,6 @@ tng_function_status tng_particle_data_block_add(tng_trajectory_t tng_data, /** - * @brief Read one trajectory block from the input_file of tng_data. - * @details Not implemented yet! - * @param tng_data is a trajectory data container. tng_data->input_file_path - * specifies which file to read from. If the file (input_file) is not open it - * will be opened. - * @param block_id is the ID of the block to read. - * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error - * has occurred or TNG_CRITICAL (2) if a major error has occured. - */ -tng_function_status tng_traj_block_read(tng_trajectory_t tng_data, - int64_t block_id); - -/** - * @brief Write one trajectory block to the output_file of tng_data. - * @details Not implemented yet! - * @param tng_data is a trajectory data container. tng_data->output_file_path - * specifies which file to write to. If the file (output_file) is not open it - * will be opened. - * @param block_id is the ID of the block to write. - * @return TNG_SUCCESS (0) if successful, TNG_FAILURE (1) if a minor error - * has occurred or TNG_CRITICAL (2) if a major error has occured. - */ -tng_function_status tng_traj_block_write(tng_trajectory_t tng_data, - int64_t block_id); - -/** * @brief Read a requested frame set. * @details Not implemented yet! * @param tng_data is a trajectory data container. |