summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/tng_io.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 364df13..850c4ef 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -9849,6 +9849,18 @@ tng_function_status DECLSPECDLLEXPORT tng_num_particles_get
return(TNG_SUCCESS);
}
+tng_function_status DECLSPECDLLEXPORT tng_num_molecule_types_get
+ (const tng_trajectory_t tng_data,
+ int64_t *n)
+{
+ TNG_ASSERT(tng_data, "TNG library: Trajectory container not properly setup.");
+ TNG_ASSERT(n, "TNG library: n must not be a NULL pointer");
+
+ *n = tng_data->n_molecules;
+
+ return(TNG_SUCCESS);
+}
+
tng_function_status DECLSPECDLLEXPORT tng_num_molecules_get
(const tng_trajectory_t tng_data,
int64_t *n)
contact: Jan Huwald // Impressum