diff options
author | Thomas White <taw@physics.org> | 2021-09-07 16:29:43 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-09-07 16:29:43 +0200 |
commit | b5d11b3ce90ae746e534c1160f6b4541fbf1dd4f (patch) | |
tree | 3499559db721c6093f83eefa06dc8f4ba1480521 /src | |
parent | 0533223051101f087797cc6543ee0e286376fd5e (diff) |
ambigator: Remove crystal list from detwin()
It's not used anywhere, and in fact is freed before being passed in.
Diffstat (limited to 'src')
-rw-r--r-- | src/ambigator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ambigator.c b/src/ambigator.c index a7ec0eae..fe4d5fa1 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -614,7 +614,7 @@ static struct cc_list *calc_ccs(struct flist **crystals, int n_crystals, static void detwin(struct cc_list *ccs, int n_crystals, int *assignments, - FILE *fh, struct flist **crystals) + FILE *fh) { int i; int nch = 0; @@ -1427,7 +1427,7 @@ int main(int argc, char *argv[]) free(crystals); for ( j=0; j<n_iter; j++ ) { - detwin(ccs, n_crystals, assignments, fgfh, crystals); + detwin(ccs, n_crystals, assignments, fgfh); } if ( corr_matrix_fn != NULL ) { |