summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2012-12-19 16:27:34 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2012-12-19 16:27:34 (GMT)
commit808823a7aaeb3e7a1f1610eef677d9ae81906ebc (patch)
treea14f14fdc345d99d62d4a9b1654158ca2473fa38
parent698d34f4a1195f9fc591877bb933dfc269eda1e8 (diff)
Removed two unimplemented functions from the API (reading and writing frame ranges).
-rw-r--r--src/lib/tng_io.c35
-rw-r--r--src/lib/tng_io.h41
2 files changed, 0 insertions, 76 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 066b1ad..99dfa5e 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -7996,41 +7996,6 @@ tng_function_status tng_particle_data_block_add(tng_trajectory_t tng_data,
return(TNG_SUCCESS);
}
-tng_function_status tng_frame_read_interval(tng_trajectory_t tng_data,
- const int64_t start_frame_nr,
- const int64_t end_frame_nr,
- const tng_hash_mode hash_mode)
-{
- /* STUB */
-// tng_function_status stat;
-// tng_trajectory_frame_set_t frame_set =
-// &tng_data->current_trajectory_frame_set;
-
-// if(frame_set.frame_set_nr < 0)
-// {
-// stat = tng_frame_set_read_next(tng_data, hash_mode);
-// if(stat != TNG_SUCCESS)
-// {
-// printf("Error reading frame set. %s: %d\n", __FILE__, __LINE__);
-// return(stat);
-// }
-// }
-
-
-
- return(TNG_SUCCESS);
-}
-
-tng_function_status tng_frame_write_interval
- (tng_trajectory_t tng_data,
- const int64_t start_frame_nr,
- const int64_t end_frame_nr,
- const tng_hash_mode hash_mode)
-{
- /* STUB */
- return(TNG_SUCCESS);
-}
-
tng_function_status tng_data_values_free(union data_values **values,
const int64_t n_frames,
const int64_t n_values_per_frame,
diff --git a/src/lib/tng_io.h b/src/lib/tng_io.h
index 894f399..d17ce85 100644
--- a/src/lib/tng_io.h
+++ b/src/lib/tng_io.h
@@ -816,47 +816,6 @@ tng_function_status tng_particle_data_block_add(tng_trajectory_t tng_data,
/**
- * @brief Read a number of consecutive trajectory frames 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 start_frame_nr is the index number of the first frame to read.
- * @param end_frame_nr is the index number of the last frame to read.
- * @param hash_mode is an option to decide whether to use the md5 hash or not.
- * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be
- * compared to the md5 hash of the read contents to ensure valid data.
- * @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_frame_read_interval(tng_trajectory_t tng_data,
- const int64_t start_frame_nr,
- const int64_t end_frame_nr,
- const tng_hash_mode hash_mode);
-
-/**
- * @brief Write a number of consecutive trajectory frames 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 start_frame_nr is the index number of the first frame to write.
- * @param end_frame_nr is the index number of the last frame to write.
- * @param hash_mode is an option to decide whether to use the md5 hash or not.
- * If hash_mode == TNG_USE_HASH the written md5 hash in the file will be
- * compared to the md5 hash of the read contents to ensure valid data.
- * @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_frame_write_interval(tng_trajectory_t tng_data,
- const int64_t start_frame_nr,
- const int64_t end_frame_nr,
- const tng_hash_mode hash_mode);
-
-/**
* @brief Free data is an array of values (2D).
* @param values is the 2D array to free and will be set to 0 afterwards.
* @param n_frames is the number of frames in the data array.
contact: Jan Huwald // Impressum