Fix orbit building
Former-commit-id: eff33b43a5f7f4994e56cd2ef83be5fe10db6cfb
This commit is contained in:
parent
04a181ae9b
commit
431c8b9933
|
@ -374,6 +374,9 @@ static void add_orbit_type(qpms_scatsys_t *ss, const qpms_ss_orbit_type_t *ot_cu
|
||||||
#ifdef DUMP_ORBIT_ACTION
|
#ifdef DUMP_ORBIT_ACTION
|
||||||
fprintf(stderr, "Orbit action:\n");
|
fprintf(stderr, "Orbit action:\n");
|
||||||
for (qpms_gmi_t gmi = 0; gmi < ss->sym->order; ++gmi) {
|
for (qpms_gmi_t gmi = 0; gmi < ss->sym->order; ++gmi) {
|
||||||
|
const qpms_quat4d_t q = qpms_quat_4d_from_2c(ss->sym->rep3d[gmi].rot);
|
||||||
|
fprintf(stderr, "%+d[%g %g %g %g] ", (int)ss->sym->rep3d[gmi].det,
|
||||||
|
q.c1, q.ci, q.cj, q.ck);
|
||||||
fprintf(stderr, "%s\t", (ss->sym->permrep && ss->sym->permrep[gmi])?
|
fprintf(stderr, "%s\t", (ss->sym->permrep && ss->sym->permrep[gmi])?
|
||||||
ss->sym->permrep[gmi] : "");
|
ss->sym->permrep[gmi] : "");
|
||||||
for (qpms_ss_orbit_pi_t pi = 0; pi < ot_new->size; ++pi)
|
for (qpms_ss_orbit_pi_t pi = 0; pi < ot_new->size; ++pi)
|
||||||
|
@ -581,7 +584,7 @@ qpms_scatsys_t *qpms_scatsys_apply_symmetry(const qpms_scatsys_t *orig, const qp
|
||||||
ss->p[ss->p_count] = newparticle;
|
ss->p[ss->p_count] = newparticle;
|
||||||
++(ss->p_count);
|
++(ss->p_count);
|
||||||
}
|
}
|
||||||
ss->p_sym_map[gmi + pi * sym->order] = pi;
|
ss->p_sym_map[gmi + pi * sym->order] = pj;
|
||||||
|
|
||||||
if (new_orbit) {
|
if (new_orbit) {
|
||||||
// Now check whether the particle (result of the symmetry op) is already in the current orbit
|
// Now check whether the particle (result of the symmetry op) is already in the current orbit
|
||||||
|
|
Loading…
Reference in New Issue