aboutsummaryrefslogtreecommitdiff
path: root/src/reflist-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-26 18:02:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:34 +0100
commite62b303c7cdb32deecf94e29cf4a8369a9c805b7 (patch)
treee25cf76ce7ee8ecb72bdc2c1cb47ddf855f1642a /src/reflist-utils.c
parent2653e2f84c9886c27af4f0b4b54d159882a366a1 (diff)
Documentation and comments
Diffstat (limited to 'src/reflist-utils.c')
-rw-r--r--src/reflist-utils.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/reflist-utils.c b/src/reflist-utils.c
index 191c4bd9..a572faf7 100644
--- a/src/reflist-utils.c
+++ b/src/reflist-utils.c
@@ -263,7 +263,7 @@ void write_reflections_to_file(FILE *fh, RefList *list, UnitCell *cell)
* The resulting list can be read back with read_reflections_from_file() or
* read_reflections().
*
- * This is a convenience function which simply opens @file and then calls
+ * This is a convenience function which simply opens @filename and then calls
* write_reflections_to_file.
*
* Returns: zero on success, non-zero on failure.
@@ -375,6 +375,18 @@ RefList *read_reflections(const char *filename)
}
+/**
+ * asymmetric_indices:
+ * @in: A %RefList
+ * @sym: A %SymOpList
+ *
+ * This function creates a newly allocated copy of @in, but indexed using the
+ * asymmetric indices according to @sym instead of the original indices. The
+ * original indices are stored and can be retrieved using
+ * get_symmetric_indices() if required.
+ *
+ * Returns: the new %RefList, or NULL on failure.
+ **/
RefList *asymmetric_indices(RefList *in, const SymOpList *sym)
{
Reflection *refl;