diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-16 08:12:54 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-01-16 08:12:54 (GMT) |
commit | e041780f50eacac25956eee49b813c5a744e25f8 (patch) | |
tree | c00d508eb59b808f184187c38ff8e1673df547f1 /src | |
parent | ab946d2ddef6fb090c85de269f84eaa96f6ab01b (diff) |
Minor name fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 8 | ||||
-rw-r--r-- | src/lib/tng_io.h | 28 | ||||
-rw-r--r-- | src/tests/md_openmp.c | 3 | ||||
-rw-r--r-- | src/tests/tng_parallel_read.c | 2 |
4 files changed, 24 insertions, 17 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index fd20180..88e2130 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -6160,8 +6160,8 @@ tng_function_status tng_trajectory_destroy(tng_trajectory_t *tng_data_p) return(TNG_SUCCESS); } -tng_function_status tng_trajectory_copy(tng_trajectory_t src, - tng_trajectory_t *dest_p) +tng_function_status tng_trajectory_init_from_src(tng_trajectory_t src, + tng_trajectory_t *dest_p) { tng_trajectory_frame_set_t frame_set; tng_trajectory_t dest; @@ -6976,9 +6976,9 @@ tng_function_status tng_num_frame_sets_get(const tng_trajectory_t tng_data, tng_function_status tng_current_frame_set_get (tng_trajectory_t tng_data, - tng_trajectory_frame_set_t *frame_set) + tng_trajectory_frame_set_t *frame_set_p) { - *frame_set = &tng_data->current_trajectory_frame_set; + *frame_set_p = &tng_data->current_trajectory_frame_set; return(TNG_SUCCESS); } diff --git a/src/lib/tng_io.h b/src/lib/tng_io.h index 38c9d43..c535b5b 100644 --- a/src/lib/tng_io.h +++ b/src/lib/tng_io.h @@ -10,6 +10,13 @@ * Each block can contain MD5 hashes to verify data integrity and the file * can be signed by the user to ensure that the origin is correct. * + * This is version 1.0 of the TNG API. The intention is that this version of + * the API and ABI should be stable, but it is still possible that future + * changes might make that impossible, in which case that will be clarified. + * + * The API and all examples are released without any warranties. Use them at + * your own risk. + * * @section authors_sec Authors * * The TNG trajectory format is developed by: @@ -353,7 +360,7 @@ tng_function_status tng_trajectory_destroy_(tng_trajectory_t *tng_data_p) /** * @brief Copy a trajectory data container (dest is setup as well). - * @details This does not copy all data - only what is absolute necessary for + * @details This initialises dest and copies only what is absolute necessary for * parallel i/o. This can be used inside pragma omp for setting up a thread * local copy of src. It can be freed (using tng_trajectory_destroy at the * end of the parallel block. @@ -363,12 +370,12 @@ tng_function_status tng_trajectory_destroy_(tng_trajectory_t *tng_data_p) * @return TNG_SUCCESS (0) if successful or TNG_CRITICAL (2) if a major * error has occured. */ -tng_function_status tng_trajectory_copy(tng_trajectory_t src, - tng_trajectory_t *dest_p); -tng_function_status tng_trajectory_copy_(tng_trajectory_t src, - tng_trajectory_t *dest_p) +tng_function_status tng_trajectory_init_from_src(tng_trajectory_t src, + tng_trajectory_t *dest_p); +tng_function_status tng_trajectory_init_from_src_(tng_trajectory_t src, + tng_trajectory_t *dest_p) { - return(tng_trajectory_copy(src, dest_p)); + return(tng_trajectory_init_from_src(src, dest_p)); } /** @@ -964,17 +971,18 @@ tng_function_status tng_num_frame_sets_get_ /** * @brief Get the current trajectory frame set. * @param tng_data is the trajectory from which to get the frame set. - * @param frame_set is pointing to the memory position of the found frame set. + * @param frame_set_p will be set to point at the memory position of + * the found frame set. * @return TNG_SUCCESS (0) if successful. */ tng_function_status tng_current_frame_set_get (tng_trajectory_t tng_data, - tng_trajectory_frame_set_t *frame_set); + tng_trajectory_frame_set_t *frame_set_p); tng_function_status tng_current_frame_set_get_ (tng_trajectory_t tng_data, - tng_trajectory_frame_set_t *frame_set) + tng_trajectory_frame_set_t *frame_set_p) { - return(tng_current_frame_set_get(tng_data, frame_set)); + return(tng_current_frame_set_get(tng_data, frame_set_p)); } /** diff --git a/src/tests/md_openmp.c b/src/tests/md_openmp.c index cc5d790..4398d7b 100644 --- a/src/tests/md_openmp.c +++ b/src/tests/md_openmp.c @@ -689,13 +689,12 @@ void timestamp ( void ) static char time_buffer[TIME_SIZE]; const struct tm *tm; - size_t len; time_t now; now = time ( NULL ); tm = localtime ( &now ); - len = strftime ( time_buffer, TIME_SIZE, "%d %B %Y %I:%M:%S %p", tm ); + strftime ( time_buffer, TIME_SIZE, "%d %B %Y %I:%M:%S %p", tm ); printf ( "%s\n", time_buffer ); diff --git a/src/tests/tng_parallel_read.c b/src/tests/tng_parallel_read.c index 8078753..64abb64 100644 --- a/src/tests/tng_parallel_read.c +++ b/src/tests/tng_parallel_read.c @@ -85,7 +85,7 @@ default(none) { /* Each tng_trajectory_t keeps its own file pointers and i/o positions. * Therefore there must be a copy for each thread. */ - tng_trajectory_copy(traj, &local_traj); + tng_trajectory_init_from_src(traj, &local_traj); #pragma omp for for(i = 0; i < n_frame_sets; i++) { |