summaryrefslogtreecommitdiff
path: root/src/lib/tng_io.c
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-07 09:49:20 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-07 09:49:20 (GMT)
commit1278186d4fc03d3d7eeae188f2f0f2c38b764390 (patch)
tree73db39b2928ae89e5d8ec94bd0917eac2d07a839 /src/lib/tng_io.c
parentd279b220dc655a5e6c7efd2ea5b06abbec3a2210 (diff)
Added function to set implicit number of particles.
When there is not molecular system the number of particles can now be specified using tng_implicit_num_particles_set().
Diffstat (limited to 'src/lib/tng_io.c')
-rw-r--r--src/lib/tng_io.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 1bb6073..875e093 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -10040,9 +10040,18 @@ tng_function_status DECLSPECDLLEXPORT tng_num_frames_get
return(TNG_SUCCESS);
}
+tng_function_status DECLSPECDLLEXPORT tng_implicit_num_particles_set
+ (tng_trajectory_t tng_data,
+ const int64_t n)
+{
+ tng_data->n_molecules = n;
+
+ return(TNG_SUCCESS);
+}
+
tng_function_status DECLSPECDLLEXPORT tng_num_particles_get
- (const tng_trajectory_t tng_data,
- int64_t *n)
+ (const tng_trajectory_t tng_data,
+ int64_t *n)
{
tng_function_status stat;
contact: Jan Huwald // Impressum