summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-29 10:50:55 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-10-29 10:50:55 (GMT)
commitbb465175362766009433696506dab621c854bc78 (patch)
tree6cf6cbd1d58dde512671e8da87743b2bce450959 /include
parent04b40aa7c3cf21bad6dada99b2f8911efbfd1695 (diff)
Added function to get residue ID of an atom.
Diffstat (limited to 'include')
-rw-r--r--include/tng_io.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/tng_io.h b/include/tng_io.h
index e9f2ec5..1b29fbf 100644
--- a/include/tng_io.h
+++ b/include/tng_io.h
@@ -1464,6 +1464,21 @@ tng_function_status DECLSPECDLLEXPORT tng_residue_name_of_particle_nr_get
int max_len);
/**
+ * @brief Get the residue name of real particle number (number in mol system).
+ * @param tng_data is the trajectory data container containing the atom.
+ * @param nr is the real number of the particle in the molecular system.
+ * @param name is a string, which is set to the name of the residue. Memory
+ * must be reserved beforehand.
+ * @param max_len is the maximum length of name.
+ * @return TNG_SUCCESS (0) if successful or TNG_FAILURE (!) if a minor error
+ * has occured.
+ */
+tng_function_status DECLSPECDLLEXPORT tng_residue_id_of_particle_nr_get
+ (const tng_trajectory_t tng_data,
+ const int64_t nr,
+ int64_t *id);
+
+/**
* @brief Get the atom name of real particle number (number in mol system).
* @param tng_data is the trajectory data container containing the atom.
* @param nr is the real number of the particle in the molecular system.
contact: Jan Huwald // Impressum