diff options
author | Thomas White <taw@physics.org> | 2014-03-05 07:57:08 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2014-03-05 07:57:08 +0100 |
commit | 82e03c74e1f054d885b1572b73a719583c364985 (patch) | |
tree | cba80e12688b1b667afb2003a0fd7459cce7f15b /src | |
parent | 9127ee2452cf5251e257ff338b026bf633ba16f7 (diff) |
Fix progress bar for detwinning
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 2af39e8a..e790eba0 100644 --- a/src/ambigator.c +++ b/src/ambigator.c @@ -240,6 +240,8 @@ static void detwin(struct flist **crystals, int n_crystals, SymOpList *amb, int p = 0; int q = 0; + progress_bar(i, n_crystals-1, "Calculating"); + for ( j=0; j<n_crystals; j++ ) { float cc; @@ -273,8 +275,6 @@ static void detwin(struct flist **crystals, int n_crystals, SymOpList *amb, nch++; } - progress_bar(i, n_crystals-1, "Calculating"); - } STATUS("Mean f = %f, changed %i assignments this time.\n", mf/nmf, nch); |