summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-12 10:49:05 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-12 10:49:05 (GMT)
commita589bcf9e8719dab420a7dd995e3e7e2c55686ba (patch)
tree1841ab8f534930dc8ffac3d0715a2e8025e812a1
parentd8992187ed95fd6161466d173c0856c7ba46ac1e (diff)
More modifications to tng_util_trajectory_molecules_get()
-rw-r--r--include/tng_io.h2
-rw-r--r--src/lib/tng_io.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/tng_io.h b/include/tng_io.h
index 3ad8aaf..107e2d0 100644
--- a/include/tng_io.h
+++ b/include/tng_io.h
@@ -2703,7 +2703,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
(tng_trajectory_t tng_data,
int64_t *n_mols,
int64_t **molecule_cnt_list,
- tng_molecule_t *mols);
+ tng_molecule_t **mols);
/*
// tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecule_add
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c
index 21d1d9a..01ef8f0 100644
--- a/src/lib/tng_io.c
+++ b/src/lib/tng_io.c
@@ -14366,7 +14366,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
(tng_trajectory_t tng_data,
int64_t *n_mols,
int64_t **molecule_cnt_list,
- tng_molecule_t *mols)
+ tng_molecule_t **mols)
{
tng_trajectory_frame_set_t frame_set;
@@ -14385,7 +14385,7 @@ tng_function_status DECLSPECDLLEXPORT tng_util_trajectory_molecules_get
*molecule_cnt_list = tng_data->molecule_cnt_list;
}
- mols = &tng_data->molecules;
+ *mols = &tng_data->molecules;
return(TNG_SUCCESS);
}
contact: Jan Huwald // Impressum