aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-07-13 20:05:27 +0200
committerThomas White <taw@physics.org>2012-02-22 15:26:53 +0100
commit7cb53822927c4035fa2a83b9176305706e3ffc40 (patch)
tree9c728ef0b9359db08e14567a2cecd048701904e4
parent22fa298d8495b89ec65605dcc7bfe869b77aefe7 (diff)
Add useful comment
-rw-r--r--src/symmetry.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/symmetry.c b/src/symmetry.c
index 595f3a72..614114d2 100644
--- a/src/symmetry.c
+++ b/src/symmetry.c
@@ -155,6 +155,11 @@ void get_general_equiv(signed int h, signed int k, signed int l,
}
+/* Given a reflection and a point group, this returns (by reference) the indices
+ * of the "idx"th equivalent reflection, taking special positions into account.
+ * It returns "idx" if successful. Otherwise, it returns the number of
+ * equivalents for the particular reflection (taking special positions into
+ * account). Therefore, set idx=-1 to get the number of equivalents. */
static int special_position(signed int hs, signed int ks, signed int ls,
signed int *hp, signed int *kp, signed int *lp,
const char *sym, signed int idx)