diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-11-20 15:11:43 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-11-20 15:11:43 (GMT) |
commit | 7b19f7b14724558b80117e9749847cc536fc79cd (patch) | |
tree | d60674562840b5d2be10d62cb80f5d0bb6cc3247 /include/tng_io.h | |
parent | 59e4583c15bd26e6a3a3c8972b416829e357a742 (diff) |
Updated docs for util functions for reading box shape.
Diffstat (limited to 'include/tng_io.h')
-rw-r--r-- | include/tng_io.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/tng_io.h b/include/tng_io.h index 1e7f187..748ddba 100644 --- a/include/tng_io.h +++ b/include/tng_io.h @@ -2964,11 +2964,14 @@ tng_function_status DECLSPECDLLEXPORT tng_util_force_read * @param tng_data is the trajectory to read from. * @param box_shape will be set to point at a 1-dimensional array of floats, * which will contain the box shape. The data is stored sequentially in order - * of frames. For each frame the box shape is stored as nine values. The - * variable may point at already allocated memory or be a NULL pointer. + * of frames. The variable may point at already allocated memory or be a NULL pointer. * If the box shape is not modified during the trajectory, but as general data, * that will be returned instead. * @param stride_length will be set to the writing interval of the stored data. + * @details This function should only be used if number of values used to specify + * the box shape is known (by default TNG uses 9 values) since it does not + * return the number of values in the array. It is recommended to use + * tng_data_vector_interval_get() instead. * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) * must be initialised before using it. * @pre \code box_shape != 0 \endcode The pointer to the box_shape array @@ -3157,12 +3160,16 @@ tng_function_status DECLSPECDLLEXPORT tng_util_force_read_range * @param last_frame is the last frame to return position data from. * @param box_shape will be set to point at a 1-dimensional array of floats, * which will contain the box shape. The data is stored sequentially in order - * of frames. For each frame the box shape is stored as nine values. + * of frames. * If the box shape is not modified during the trajectory, but as general data, * that will be returned instead. The * variable may point at already allocated memory or be a NULL pointer. * The memory must be freed afterwards. * @param stride_length will be set to the writing interval of the stored data. + * @details This function should only be used if number of values used to specify + * the box shape is known (by default TNG uses 9 values) since it does not + * return the number of values in the array. It is recommended to use + * tng_data_vector_interval_get() instead. * @pre \code tng_data != 0 \endcode The trajectory container (tng_data) * must be initialised before using it. * @pre \code start_frame_nr <= end_frame_nr \endcode The first frame must be before |