Commit 9c34a0bf authored by Thomas White's avatar Thomas White
Browse files

process_hkl: Show information about symmetry

parent 7cb53822
......@@ -442,6 +442,13 @@ int main(int argc, char *argv[])
rewind(fh);
STATUS("There are %i patterns to process\n", n_total_patterns);
/* Show useful symmetry information */
const char *holo = get_holohedral(sym);
int np = num_general_equivs(holo) / num_general_equivs(sym);
STATUS("Resolving from point group %s to %s (%i possibilities)\n",
holo, sym, np);
n_patterns = 0;
f0_valid = 0;
do {
......
......@@ -57,7 +57,7 @@ static int check_cond(signed int h, signed int k, signed int l, const char *sym)
}
static int num_general_equivs(const char *sym)
int num_general_equivs(const char *sym)
{
/* Triclinic */
if ( strcmp(sym, "1") == 0 ) return 1;
......
......@@ -25,6 +25,8 @@ extern void get_asymm(signed int h, signed int k, signed int l,
extern int num_equivs(signed int h, signed int k, signed int l,
const char *sym);
extern int num_general_equivs(const char *sym);
extern void get_equiv(signed int h, signed int k, signed int l,
signed int *he, signed int *ke, signed int *le,
const char *sym, int idx);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment