diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-12 19:59:18 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-11-12 19:59:18 +0100 |
| commit | e864e23e3ec315d5969281c51f24521cde30792a (patch) | |
| tree | 3b25152fc4a645b26a4c82f9b0b350b766b8b7f6 /src/symcoord.c | |
| parent | 89268e911e51a7b1c413cfae1520b2db6e60086f (diff) | |
| download | nissy-e864e23e3ec315d5969281c51f24521cde30792a.tar.gz nissy-e864e23e3ec315d5969281c51f24521cde30792a.zip | |
I tried to remove the dependence on antindex in order to get rid of them
once and for all. I successfully removed from the pruning table generation
part by using an alternative (slower) method, but then I realized that I also
use antindexes when generating symmetry data. So I reverted to the original
pruning table computation method, but I left the alternative way there, commented.
Diffstat (limited to '')
| -rw-r--r-- | src/symcoord.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/symcoord.c b/src/symcoord.c index 97a8d9a..e9374d7 100644 --- a/src/symcoord.c +++ b/src/symcoord.c | |||
| @@ -257,7 +257,16 @@ gensym(SymData *sd) | |||
| 257 | 257 | ||
| 258 | for (i = 0; i < sd->coord->max; i++) { | 258 | for (i = 0; i < sd->coord->max; i++) { |
| 259 | if (sd->class[i] == sd->coord->max + 1) { | 259 | if (sd->class[i] == sd->coord->max + 1) { |
| 260 | |||
| 261 | /* | ||
| 262 | * TODO: this is the only unavoidable use of | ||
| 263 | * antindexes. I also use them in genptable() (see | ||
| 264 | * pruning.c), but there I can do without (see | ||
| 265 | * commented functions in that file. | ||
| 266 | * Removing this would allow for a great simplification | ||
| 267 | */ | ||
| 260 | c = sd->coord->cube(i); | 268 | c = sd->coord->cube(i); |
| 269 | |||
| 261 | sd->rep[nreps] = c; | 270 | sd->rep[nreps] = c; |
| 262 | for (j = 0; j < sd->ntrans; j++) { | 271 | for (j = 0; j < sd->ntrans; j++) { |
| 263 | d = apply_trans(sd->trans[j], c); | 272 | d = apply_trans(sd->trans[j], c); |
