aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-07-22 17:57:22 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:34 +0100
commitb4e5f07f7340637403abe012df7427a8d0a0fc0e (patch)
tree0ee7df21c23092b06ab3f408f97b06e544faba3b /tests
parent380e2fe1497642ee393e3379360efbeca73f6960 (diff)
Add left coset decomposition
Diffstat (limited to 'tests')
-rw-r--r--tests/symmetry_check.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/symmetry_check.c b/tests/symmetry_check.c
index 5a2c91d5..6934a3d9 100644
--- a/tests/symmetry_check.c
+++ b/tests/symmetry_check.c
@@ -65,6 +65,28 @@ static void check_pg_props(const char *pg, int answer, int centro, int *fail)
}
+static void check_subgroup(const char *ssource, const char *starget,
+ int *fail)
+{
+ SymOpList *source;
+ SymOpList *target;
+ SymOpList *twins;
+
+ source = get_pointgroup(ssource);
+ target = get_pointgroup(starget);
+ if ( (source == NULL) || (target == NULL) ) {
+ *fail = 1;
+ return;
+ }
+
+ twins = get_ambiguities(source, target);
+ describe_symmetry(twins);
+
+ free_symoplist(target);
+ free_symoplist(source);
+}
+
+
int main(int argc, char *argv[])
{
int fail = 0;
@@ -127,5 +149,7 @@ int main(int argc, char *argv[])
check_pg_props( "m-3m", 48, 1, &fail);
STATUS("\n");
+ check_subgroup("2/m", "m", &fail);
+
return fail;
}